pub fn name_for_attributes(attributes: &Attributes) -> Option<String>Expand description
Constructs a name attribute for a V2 span, based on its attributes.
If the attributes contain SENTRY__ORIGIN with the value "manual",
the description (contained in SENTRY__DESCRIPTION) is used as the name.
Otherwise, the name is constructed following the rules defined in sentry-conventions.
If no rule in sentry-conventions matches the span’s SENTRY__OP, the op is
returned as the name.
Finally, if the span doesn’t have an op, None is returned.