Skip to content

Commit bd2eb3a

Browse files
committed
docs: add CHANGELOG entry for SpanProcessor::on_end breaking change
1 parent 2aa314e commit bd2eb3a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

opentelemetry-sdk/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
- Fix ObservableCounter and ObservableUpDownCounter now correctly report only data points from the current measurement cycle, removing stale attribute combinations that are no longer observed. [#3248][3248]
2626
- Fix panic when `SpanProcessor::on_end` calls `Context::current()` ([#3262][3262]).
2727
- Updated `SpanProcessor::on_end` documentation to clarify that `Context::current()` returns the parent context, not the span's context
28+
- **Breaking** `SpanProcessor::on_end` now takes `&mut FinishedSpan` instead of `SpanData`.
29+
Processors that only need to read span data can use the `ReadableSpan` trait without cloning.
30+
Processors that need ownership call `FinishedSpan::consume()` — the last processor receives
31+
ownership via move (zero-copy), earlier processors receive a clone.
32+
Supersedes [#2962](https://github.com/open-telemetry/opentelemetry-rust/pull/2962).
33+
Relates to [#2940](https://github.com/open-telemetry/opentelemetry-rust/issues/2940),
34+
[#2726](https://github.com/open-telemetry/opentelemetry-rust/issues/2726),
35+
[#2939](https://github.com/open-telemetry/opentelemetry-rust/issues/2939).
2836

2937
[3227]: https://github.com/open-telemetry/opentelemetry-rust/pull/3227
3038
[3277]: https://github.com/open-telemetry/opentelemetry-rust/pull/3277

0 commit comments

Comments
 (0)