-
Notifications
You must be signed in to change notification settings - Fork 624
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
Suppress botocore downstream instrumentation like urllib3 #563
Suppress botocore downstream instrumentation like urllib3 #563
Conversation
Does |
@lzchen Yes as far as I am aware! A quick dive into the
And in our instrumentation we do the following for the Lines 141 to 145 in bf97e17
So the trace is recording twice. |
@lzchen That's a fair ask, I see that the Lines 220 to 224 in bf97e17
Further |
Not a blocker for this pr, but we should probably move the context variable to a common location like here. |
Description
I noticed that if I instrument both
urllib3
andbotocore
that I will get 2 traces (e.g. S3 and s3.amazon.com) when I should only get 1.Before this fix:
After this fix:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
The first way I thought to write a test for this would be to create an instance of the
urllib3
Instrumentor
and prove that only 1 trace gets created, but since this is a common pattern among all the instrumentation libraries I didn't add it.Let me know if this would be useful though!
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.
- [] Unit tests have been added- [ ] Documentation has been updated