Skip to content

distro: override otlp exporters user agent headers #363

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xrmx
Copy link
Member

@xrmx xrmx commented Aug 14, 2025

What does this pull request do?

For GRPC we leverage the recently added channel_options, for HTTP we temporarily need to monkey patch the exporter default headers in the meantime we have an sdk where we can override them.

Related issues

For GRPC we leverage the recently added channel_options, for HTTP we
temporarily need to monkey patch the exporter default headers in the
meantime we have an sdk where we can override them.
@xrmx xrmx force-pushed the override-otlp-exporters-user-agents branch from dcad635 to 1915a58 Compare August 18, 2025 09:18
And add a test for http otlp exporter user-agent. The http server
requires to bind to a random port for each test because as it won't
unbind it until process exit.
And SO_REUSEPORT does not seem to help either.
@xrmx xrmx force-pushed the override-otlp-exporters-user-agents branch from 1915a58 to a5e6609 Compare August 18, 2025 10:43
@xrmx xrmx marked this pull request as ready for review August 18, 2025 12:10
@xrmx xrmx requested a review from a team as a code owner August 18, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants