-
Notifications
You must be signed in to change notification settings - Fork 693
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
Auto-instrumentation not working #4101
Comments
Are you getting an error like this when running the
|
Oh, actually, I did, yeah... then I uninstalled the module that was throwing it and it works fine now. Well, I guess we can close this issue then, sorry for the hassle. |
Just FYI, we fixed this in open-telemetry/opentelemetry-python-contrib#2750 |
Ah, nice, thanks man! By the way, I spent hours trying to figure out why it wasn't working with an experiment I'm doing with FastAPI, but I finally figured it out: it doesn't work when running with |
Describe your environment
OS: Arch Linux
Python version: 3.12
SDK version: 1.26.0
API version: 1.26.0
What happened?
Auto-instrumentation with
opentelemetry-instrument
is not working for me anymore, even using examples from the project itself - for example, https://github.com/open-telemetry/opentelemetry-python/blob/main/docs/examples/auto-instrumentation/server_automatic.py . Only manual instrumentation is working and producing traces. I found this out because auto-instrumentation isn't working with a private project I have, either.Steps to Reproduce
Install dependencies, run the auto-instrumentation above with
opentelemetry-instrument --traces_exporter console --metrics_exporter none python server_automatic.py
, then run the client from the same example folder withpython client.py testing
.Expected Result
Traces being spit out to the console, like they do with the manual example.
Actual Result
No traces are being spit to the console.
Additional context
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: