Skip to content
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

OTLP exporter for metrics isn't setting the user agent string #4474

Closed
codeboten opened this issue Mar 11, 2025 · 0 comments · Fixed by #4475
Closed

OTLP exporter for metrics isn't setting the user agent string #4474

codeboten opened this issue Mar 11, 2025 · 0 comments · Fixed by #4475
Labels
bug Something isn't working

Comments

@codeboten
Copy link
Contributor

Describe your environment

OS: n/a
Python version: 3.11
SDK version: 1.30.0
API version: 1.30.0

What happened?

Emitting metrics using the OTLP exporter results in the User-Agent being incorrectly set to python-requests/version instead of the expected "OTel-OTLP-Exporter-Python/" + __version__,

Steps to Reproduce

Used the example flask app from opentelemetry.io and exported metrics to a backend

Expected Result

User agent to match OTel-OTLP-Exporter-Python/1.30.0

Actual Result

User agent was python-requests/2.32.3

Additional context

No response

Would you like to implement a fix?

Yes

@codeboten codeboten added the bug Something isn't working label Mar 11, 2025
codeboten added a commit to codeboten/opentelemetry-python that referenced this issue Mar 11, 2025
@xrmx xrmx closed this as completed in fcb5e21 Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant