Skip to content

Commit 58795e7

Browse files
committed
update CHANGELOG
1 parent f165a39 commit 58795e7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

opentelemetry-sdk/CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55
- Update `async-std` dependency version to 1.13
66
- *Breaking* - Remove support for `MetricProducer` which allowed metrics from
77
external sources to be sent through OpenTelemetry.
8-
[#2105](https://github.com/open-telemetry/opentelemetry-rust/pull/2105)
8+
[#2105](https://github.com/open-telemetry/opentelemetry-rust/pull/2105)
9+
- Added Two new methods to the LogRecord struct's public API:
10+
```rust
11+
update_attribute(&Key, &AnyValue) -> Option<AnyValue>
12+
```
13+
- Updates the value of the first occurrence of an attribute with the specified key.
14+
- If the key exists, the old value is returned. If not, the new key-value pair is added, and None is returned.
15+
```rust
16+
delete_attribute(&mut self, key: &Key) -> usize
17+
```
18+
Removes all occurrences of attributes with the specified key and returns the count of deleted attributes.
919

1020
## v0.25.0
1121

0 commit comments

Comments
 (0)