-
Notifications
You must be signed in to change notification settings - Fork 735
Permit to override default OTLP HTTP exporter headers #4634
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
base: main
Are you sure you want to change the base?
Conversation
exporter/opentelemetry-exporter-otlp-proto-grpc/tests/test_otlp_metrics_exporter.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if instead of that we should make the default headers substituted via an entry point (or even make them a param for the init functions called by _initialize_components) so that we have a different mechanism that the user cannot easily override. This is because otherwise users setting OTEL_EXPORTER_OTLP_HEADERS will always override what distro sets.
dadd176
to
6f3b497
Compare
6f3b497
to
68776af
Compare
So this updates the otlp http exporters to match what the grpc ones are doing wrt channel_options that is that users are able to override the defaults but not remove them. |
Related to this the specs is being updated for allowing the update of users of the user agent: open-telemetry/opentelemetry-specification#4560 |
Description
We would like being able to use a specific user agent on our distro in order to discriminate OTLP traffic between our distro and upstream. At the moment this is not possible because HTTP exporters always override the passed headers with the default ones.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Contrib Repo Change?
Checklist: