Skip to content

feat: Add event_name field to Logs#2077

Open
kaylareopelle wants to merge 1 commit intoopen-telemetry:mainfrom
kaylareopelle:add-name-to-logs
Open

feat: Add event_name field to Logs#2077
kaylareopelle wants to merge 1 commit intoopen-telemetry:mainfrom
kaylareopelle:add-name-to-logs

Conversation

@kaylareopelle
Copy link
Copy Markdown
Contributor

@kaylareopelle kaylareopelle commented Apr 7, 2026

This field on a log record enables users to create OpenTelemetry events. A log record with a non-empty event_name is an Event. The event_name field is optional has a type of String. The event_name should identify the class/type of the Event.

Events are intended to be used by OpenTelemetry instrumentation. It is not a requirement that all log records are formatted as events.

Sources:
https://opentelemetry.io/docs/specs/otel/logs/data-model/#events https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-eventname

This field on a log event enables users to create OpenTelemetry events.
A log record with a non-empty event_name is an Event. The event_name
field is optional has a type of String. The event_name should
identify the class/type of the Event.

Events are intended to be used by OpenTelemetry instrumentation.
It is not a requirement that all LogRecords are formatted as Events.

Sources:
https://opentelemetry.io/docs/specs/otel/logs/data-model/#events
https://opentelemetry.io/docs/specs/otel/logs/data-model/#field-eventname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants