Skip to content

Commit

Permalink
Use event.name as attribute key for exporting Log event name (open-te…
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Aug 26, 2024
1 parent b24bb9c commit 322c985
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions opentelemetry-otlp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

## vNext

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

## v0.17.0

Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-proto/src/transform/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub mod tonic {
if let Some(event_name) = &log_record.event_name {
let mut attributes_with_name = attributes;
attributes_with_name.push(KeyValue {
key: "name".into(),
key: "event.name".into(),
value: Some(AnyValue {
value: Some(Value::StringValue(event_name.to_string())),
}),
Expand Down

0 comments on commit 322c985

Please sign in to comment.