Skip to content

Allow event body to represent a display message#3343

Merged
trask merged 9 commits intoopen-telemetry:mainfrom
pellared:evt-body
Feb 17, 2026
Merged

Allow event body to represent a display message#3343
trask merged 9 commits intoopen-telemetry:mainfrom
pellared:evt-body

Conversation

@pellared
Copy link
Copy Markdown
Member

@pellared pellared commented Jan 27, 2026

Fixes #1076 (proposes to use an attribute "event.message" for this, not Body)

Related to #1283

Related to #2064

FWIK some tools use Body for displaying the log/event record.

OTel Rust and OTel .NET use body to represent a display message. In those are two languages nearly every LogRecord is an Event.

It is also worth mentioning that most (maybe even all) log bridges use Body as the log message.

Moreover it follows https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-body:

Can be for example a human-readable string message (including multi-line) describing the event in a free form

@github-actions github-actions Bot added enhancement New feature or request area:event labels Jan 27, 2026
@pellared pellared changed the title Update event body usage guidelines to allow representation of display messages allow event body to represent display message Jan 27, 2026
@pellared pellared changed the title allow event body to represent display message allow event body to represent a display message Jan 27, 2026
@pellared pellared changed the title allow event body to represent a display message Allow event body to represent a display message Jan 27, 2026
@pellared pellared marked this pull request as ready for review January 27, 2026 19:14
@pellared pellared requested review from a team as code owners January 27, 2026 19:14
@pellared
Copy link
Copy Markdown
Member Author

pellared commented Jan 27, 2026

Comment thread docs/general/events.md Outdated
@cijothomas
Copy link
Copy Markdown
Member

@pellared nit: The linked issue #1076 is proposing to use an attribute "event.message" for this, not Body. You may want that clearly stated in the PR description.

Comment thread docs/general/events.md Outdated
@pellared pellared requested a review from trask January 30, 2026 16:30
@pellared pellared requested a review from lmolkova February 12, 2026 10:26
Comment thread docs/general/events.md Outdated
@lmolkova lmolkova moved this from Awaiting codeowners approval to Needs More Approval in Semantic Conventions Triage Feb 16, 2026
@lmolkova lmolkova moved this from Needs More Approval to Blocked in Semantic Conventions Triage Feb 16, 2026
@lmolkova lmolkova moved this from Blocked to Needs More Approval in Semantic Conventions Triage Feb 16, 2026
Comment thread docs/general/events.md Outdated
@pellared pellared requested a review from trask February 17, 2026 11:28
Comment thread docs/general/events.md Outdated
@trask
Copy link
Copy Markdown
Member

trask commented Feb 17, 2026

@cijothomas can you take another look after latest changes? thanks!

@trask trask added this pull request to the merge queue Feb 17, 2026
Merged via the queue into open-telemetry:main with commit 1a7e34b Feb 17, 2026
16 checks passed
@pellared pellared deleted the evt-body branch February 18, 2026 08:17
nagkumar91 pushed a commit to nagkumar91/semantic-conventions that referenced this pull request Feb 24, 2026
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:event enhancement New feature or request

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Add a human-readable message as an attribute representing the event

5 participants