Skip to content

Define HTTP exception events#3414

Merged
trask merged 8 commits intoopen-telemetry:mainfrom
trask:http-exceptions
Feb 12, 2026
Merged

Define HTTP exception events#3414
trask merged 8 commits intoopen-telemetry:mainfrom
trask:http-exceptions

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 9, 2026

Part of migrating from recording exceptions as span events to recording them as logs.

Assigning event names to exceptions which correspond to existing semantic conventions provides an additional level of correlation between the signals, and makes it easy to view these specific sets of exceptions.

The idea would be to also define these for Database, RPC, Messaging (at least).

Prototype at open-telemetry/opentelemetry-java-instrumentation#16049

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 9, 2026

This PR contains changes to area(s) that do not have an active SIG/project and will be auto-closed:

  • http

Such changes may be rejected or put on hold until a new SIG/project is established.

Please refer to the Semantic Convention Areas
document to see the current active SIGs and also to learn how to kick start a new one.

@github-actions github-actions bot closed this Feb 9, 2026
@trask trask reopened this Feb 9, 2026
@trask trask marked this pull request as ready for review February 9, 2026 04:02
@trask trask requested review from a team as code owners February 9, 2026 04:02
Copy link
Copy Markdown
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we'll need to define default severity for these events (before stability) and probably add more attributes, but it can be done incrementally

@trask
Copy link
Copy Markdown
Member Author

trask commented Feb 10, 2026

I believe we'll need to define default severity for these events

👍

Added in 5cc9640

and probably add more attributes

yeah, I'm torn on this (#3414 (comment)), did you have any preliminary thoughts?

@trask
Copy link
Copy Markdown
Member Author

trask commented Feb 10, 2026

Discussed adding more attributes in Log SIG.

Sampling.

Adding attributes later wouldn't be breaking.

error.type is common across signals. In Java at least, in most cases error.type on exception would be same as exception.type.

Instrumentations MAY provide flag to copy all span attributes over to exception.

@trask
Copy link
Copy Markdown
Member Author

trask commented Feb 10, 2026

Instrumentations MAY provide flag to copy all span attributes over to exception.

Added in 2810603

Copy link
Copy Markdown
Member

@lmolkova lmolkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@lmolkova lmolkova moved this from Untriaged to Needs More Approval in Semantic Conventions Triage Feb 11, 2026
@trask trask moved this from Needs More Approval to Ready to be Merged in Semantic Conventions Triage Feb 11, 2026
@trask trask added this pull request to the merge queue Feb 12, 2026
Merged via the queue into open-telemetry:main with commit 1963941 Feb 12, 2026
18 checks passed
@trask trask deleted the http-exceptions branch February 12, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants