Skip to content

Extract OTel-based span data inference from captureSpan #21638

@Lms24

Description

@Lms24

We added span name inference for OTel-based spans directly into the captureSpan pipeline. This is a bit suboptimal because it increases browser bundle size that also uses captureSpan despite these spans never going through a browser SDK.

Instead, we can use the client.on('processSpan') hook in the Sentry SpanProcessor to use the already existing parseSpanDescription logic from @sentry/opentelementry.

Metadata

Metadata

Assignees

Labels

javascriptPull requests that update javascript code
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions