-
Notifications
You must be signed in to change notification settings - Fork 651
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
Added a warning log when the existing TracerProvider and MeterProvider are overridden #856
Added a warning log when the existing TracerProvider and MeterProvider are overridden #856
Conversation
|
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.
Nice thanks for the PR, if you could add a note to the api's changelog, that would be awesome.
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.
LGTM, thanks for taking care of this
* fix: change loglevel for beta closes open-telemetry#578 Signed-off-by: Olivier Albertini <[email protected]> * test: update to new default LogLevel Signed-off-by: Olivier Albertini <[email protected]>
Fixes #840
This PR aims at providing a simple warning message when the TracerProvider and MeterProvider are overridden. Any value other than
None
in the globals is considered a set and warnings are thrown on all subsequent set to these variables.Tests make sure that the relevant log messages are generated when TracerProvider and MeterProvider are overridden.