-
Notifications
You must be signed in to change notification settings - Fork 111
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
Resource as an argument to starting the tracer provider #569
Resource as an argument to starting the tracer provider #569
Conversation
Instead of setting the global tracer to noop on shutdown of the SDK we rely on the fact the API already handles the SDK being gone. Not setting the tracer to noop saves a global GC from the persistent term update that could negatively impact users.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #569 +/- ##
==========================================
+ Coverage 38.13% 38.17% +0.04%
==========================================
Files 61 61
Lines 3598 3599 +1
==========================================
+ Hits 1372 1374 +2
+ Misses 2226 2225 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
9301557
to
62f6c94
Compare
Eh.. this may be wrong, it requires making the resource type available in the API. Rethinking. |
fd3494d
to
da9f663
Compare
this better follows the spec
da9f663
to
6d71b71
Compare
7ed076c
to
2300d09
Compare
68e5c6c
to
41844ab
Compare
41844ab
to
b2da332
Compare
Also a commit to remove the setting of the global tracer to
noop
when the SDK stops. I think this makes it safer to not potentially drastically harm performance for users on shutdown. The hope would be it is the last thing done but since this can't be guaranteed and technically could be stopped at anytime, so not having a global GC happen seems best.