pub fn otel_to_sentry_span_v2(
otel_span: Span,
resource: Option<&Resource>,
scope: Option<&InstrumentationScope>,
) -> SpanV2Expand description
Transform an OTEL span to a Sentry span V2.
This uses attributes in the OTEL span to populate various fields in the Sentry span.
- The Sentry span’s
namefield may be set based ondborhttpattributes if the OTEL span’snameis empty. - The Sentry span’s
sentry.descriptionattribute may be set based ondborhttpattributes if the OTEL span’ssentry.descriptionattribute is empty.
All other attributes are carried over from the OTEL span to the Sentry span.