-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make TracerProvider not allow to register a SpanProcessor after shutdown #3845
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3845 +/- ##
=====================================
Coverage 81.7% 81.7%
=====================================
Files 170 170
Lines 12915 12915
=====================================
+ Hits 10562 10564 +2
+ Misses 2134 2132 -2
Partials 219 219
|
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.
Please add a changelog entry (IMO in Fixed section).
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.
- Needs tests
- Should be separated into two PRs
41c7941
to
5b5740e
Compare
Can you also double check if it fixes #3890? |
@pellared I don't think it does. I don't want to couple two fixes in a single PR to be honest. Especially with reviews being so slow, I'd rather open a separate PR. |
5b5740e
to
353a79f
Compare
353a79f
to
259301d
Compare
Currently
isShutdown
is not set whenspanProcessors
is empty. It must always be set because it influences how other methods behave e.g.RegisterSpanProcessor()
.