Skip to content

Decouple otel propagator from span map #1221

@linear-code

Description

@linear-code

The current implementation of the otel propagator, for the span processor otel integration, limits are ability to reuse the propagator for OTLP.

The propagator currently fetches the trace and baggage headers by fetching an active span from the span map. The correct approach should be to follow this spec and store the dsc on context, so that the propagator can fetch it from there and not rely on span map.

This is also an improvement in making the propagator itself work lock-free.

To make the propagator reusable the otlp package should be under sentry-go/otel/otlp and the propagator should be under sentry-go/otel/internal/common .

Metadata

Metadata

Assignees

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