-
Notifications
You must be signed in to change notification settings - Fork 637
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
aiopg instrumentation creating nested traces #336
Comments
@sartx I saw you worked on this implementation (open-telemetry/opentelemetry-python#801). Can you please check this issue? |
Hello, I have an idea why it is broken. In previous versions of opentelemetry If you want to check it you may try to call new request after previous is ended. |
Thanks for jumping in. The requests are not running in parallel, they are sequential. Some reference is being kept around in the process, and it will keep nesting. |
Describe your environment
Python 3.6.12
Macos 11.1
opentelemetry-python-contrib: Tried released version, as well as
main
.aiohttp==3.7.3
aiopg==1.1.0
Describe any aspect of your environment relevant to the problem, including your Python version, platform, version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main.
Steps to reproduce
I am trying the
aiopg
instrumentation. I am using it along aiohttp. This may be an usage issue, but I have created a minimal example in here (Just install requirements, run, and visitlocalhost:4000
...you will need a postgres database named test and jaeger running somewhere).The trace will keep growing with every request, nesting new traces every time:
What is the expected behavior?
Every connection has a single trace (no nesting)
What is the actual behavior?
Every time a request is made, a new trace is nested and sends the whole stack to jaeger
Notes
This may be a bad usage issue. If that is the case, please let me know what may be causing it and how to use this properly.
The text was updated successfully, but these errors were encountered: