-
Notifications
You must be signed in to change notification settings - Fork 599
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
Account for ProxyTracerProvider #399
Account for ProxyTracerProvider #399
Conversation
RequestsInstrumentor().instrument( | ||
tracer_provider=self.original_tracer_provider | ||
tracer_provider=trace._DefaultTracerProvider |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the intention was to ensure that the instrumentation works with noop tracers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is trace.__DefaultTracerProvider
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also should probably remove original_tracer_provider
from TestBase
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not directly used but I think might still be useful as it remembers the registered provider before a test case runs and automatically restores it back after a test case finishes running.
255488d
to
b44af68
Compare
791da6b
to
1064da4
Compare
Updated tests that relied on unset tracer being a noop tracer instead of a proxy tracer
1064da4
to
e51cce2
Compare
Description
Updated tests that relied on unset tracer being a noop tracer instead of a proxy tracer.
Includes changes from #400 to make the tests pass.
Fixes #405
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.