Skip to content

Commit 322c985

Browse files
authored
Use event.name as attribute key for exporting Log event name (#2050)
1 parent b24bb9c commit 322c985

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

opentelemetry-otlp/CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
## vNext
44

5-
- **Breaking** [1994](https://github.com/open-telemetry/opentelemetry-rust/pull/1994) The logrecord event-name is added as attribute with
6-
key `name` only if the feature flag `populate-logs-event-name` is enabled.
5+
- **Breaking**
6+
The logrecord event-name is added as an attribute only if the feature flag
7+
`populate-logs-event-name` is enabled. The name of the attribute is changed from
8+
"name" to "event.name".
9+
[1994](https://github.com/open-telemetry/opentelemetry-rust/pull/1994),
10+
[2050](https://github.com/open-telemetry/opentelemetry-rust/pull/2050)
711

812
## v0.17.0
913

opentelemetry-proto/src/transform/logs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub mod tonic {
103103
if let Some(event_name) = &log_record.event_name {
104104
let mut attributes_with_name = attributes;
105105
attributes_with_name.push(KeyValue {
106-
key: "name".into(),
106+
key: "event.name".into(),
107107
value: Some(AnyValue {
108108
value: Some(Value::StringValue(event_name.to_string())),
109109
}),

0 commit comments

Comments
 (0)