-
Notifications
You must be signed in to change notification settings - Fork 890
Description
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 visit localhost: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.