Skip to content
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

Merged
merged 7 commits into from
Jun 30, 2020
Merged

Added a warning log when the existing TracerProvider and MeterProvider are overridden #856

merged 7 commits into from
Jun 30, 2020

Conversation

bitspradp
Copy link
Contributor

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.

@bitspradp bitspradp requested a review from a team June 25, 2020 18:50
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 25, 2020

CLA Check
The committers are authorized under a signed CLA.

Copy link
Contributor

@codeboten codeboten left a 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.

Copy link
Member

@hectorhdzg hectorhdzg left a 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

@lzchen lzchen merged commit b56fe2a into open-telemetry:master Jun 30, 2020
cnnradams pushed a commit to cnnradams/opentelemetry-python that referenced this pull request Jul 2, 2020
codeboten pushed a commit that referenced this pull request Jul 7, 2020
srikanthccv pushed a commit to srikanthccv/opentelemetry-python that referenced this pull request Nov 1, 2020
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log a warning when replacing the global Tracer/Meter provider
5 participants