According to the documentation, the recommended way to integrate with OpenTelemetry is to completely replace existing propagators using
set_global_textmap(SentryPropagator())
In case of distributed tracing it is not correct behaviour. We have to add the SentryPropagator to the existing ones instead. Opentelemetry provides environment variables as a most common way to configure it. However, propagators added via environment variables must be declared in entry points (ref). And here is an example of how entry points are declared in OpenTelemetry.
Solution Brainstorm
I propose adding entry point for SentryPropagator in setup.py.
Problem Statement
According to the documentation, the recommended way to integrate with OpenTelemetry is to completely replace existing propagators using
In case of distributed tracing it is not correct behaviour. We have to add the
SentryPropagator
to the existing ones instead. Opentelemetry provides environment variables as a most common way to configure it. However, propagators added via environment variables must be declared in entry points (ref). And here is an example of how entry points are declared in OpenTelemetry.Solution Brainstorm
I propose adding entry point for
SentryPropagator
in setup.py.