Skip to content

Commit 4adf9b8

Browse files
committed
chore: update change logs
1 parent 8686f32 commit 4adf9b8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

opentelemetry-sdk/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- `id_generator`, `should_sample`
88

99
[3227]: https://github.com/open-telemetry/opentelemetry-rust/pull/3227
10+
- Fixed Sum and PrecomputedSum not to accept negative values if monotonic
11+
[#3260](https://github.com/open-telemetry/opentelemetry-rust/pull/3260)
1012

1113
## 0.31.0
1214

opentelemetry/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- `trace_id`, `span_id`, `end_time`, `status`, `sampling_result`
88
- `with_trace_id`, `with_span_id`, `with_end_time`, `with_status`, `with_sampling_result`
99
- **Added** `#[must_use]` attribute to `opentelemetry::metrics::AsyncInstrumentBuilder` to add compile time warning when `.build()` is not called on observable instrument builders, preventing silent failures where callbacks are never registered and metrics are never reported.
10+
- **Documentation** Enhanced documentation for `Counter` and `ObservableCounter` to clarify monotonic behavior:
11+
- Updated `Counter` and `ObservableCounter` struct documentation to explicitly state they are monotonic instruments that only accept non-negative values
12+
- Enhanced `Counter::add()` method documentation to specify that negative values violate the monotonic contract and will be dropped by the SDK
13+
- Updated `InstrumentProvider` trait method documentation for counter creation methods to clarify monotonic behavior
1014

1115
[3227]: https://github.com/open-telemetry/opentelemetry-rust/pull/3227
1216

0 commit comments

Comments
 (0)