-
Notifications
You must be signed in to change notification settings - Fork 523
fix: make shutdown
&self
in span processor
#1836
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1836 +/- ##
=======================================
- Coverage 73.8% 73.8% -0.1%
=======================================
Files 122 122
Lines 19503 19503
=======================================
- Hits 14406 14404 -2
- Misses 5097 5099 +2 ☔ View full report in Codecov by Sentry. |
@@ -26,6 +26,8 @@ | |||
asynchronously, it should clone the log data to ensure it can be safely processed without | |||
lifetime issues. | |||
|
|||
- **Breaking** [1836](https://github.com/open-telemetry/opentelemetry-rust/pull/1836) `SpanProcessor::shutdown` now takes an immutable reference to self. Any reference can call shutdown on the processor. After the first call to `shutdown` the processor will not process any new spans. |
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.
I use Rewrap to keep comments wrapped!
This will allow us to add an explicit Shutdown method in TracerProvider, just like LoggerProvider? |
ok got the answer here -#1801 (comment) |
Related #1801
Changes
SpanProcessor::shutdown
now takes a&self
instead of&mut self
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes