-
Notifications
You must be signed in to change notification settings - Fork 895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Control baggage propagation in automatic instrumentation libraries #3957
Comments
@jsuereth this seems related to what we talked about in the past that the propagation API is not sufficient (believe lambda propagation was the context of that conversation). There are definitely some cases in which the instrumentation has knowledge required in order to make effective propagation decisions. |
I have added this to the Tuesday, April 9 Specification SIG agenda. |
We should see if we can accomplish this purely through the W3C Baggage Propagator. The issue with having this be an instrumentation level configuration is that it will be difficult / impossible to enforce standard configuration for instrumentation which lives outside the OpenTelemetry org, which is something we expect more of as time goes by. In theory, the W3C baggage propagator should be able to access the current client span from the context, and enable / disable propagation based on the contents, including the URL. |
Is this not an issue for all propagators (not only W3C Baggage)? |
During the Spec call of April 9th there was initial agreement on the need to support this, hence marking this as valid. |
Would #1633 be a more general issue to discuss this as something needed to be supported on the Propagators API to stop all context being propagated, not only baggage? |
This is a followup to #3799 ; in that thread it was decided that context should always be propagated, but baggage is potentially a problem.
What are you trying to achieve?
Given an application that uses an instrumentation for an HTTP or RPC client library (e.g. for the Python
requests
library), any baggage set by the primary application will also be sent to a third party, even if it is only intended for internal use. This has the potential to leak internal private data. Opentelemetry may want to adopt a pattern that allows baggage to only be sent for some urls, similar to theOTEL_PYTHON_REQUESTS_EXCLUDED_URLS
environment variable.Additional context.
That this happens was added to the documentation in open-telemetry/opentelemetry.io#3530 and there was also discussion in #1633 .
In the system I'm working on we wouldn't be able both baggage and instrumentation libraries at the same time, because we need the
client
spans to properly debug and trace outgoing API calls, but we cannot allow baggage to be sent to these external APIs.The text was updated successfully, but these errors were encountered: