Skip to content

Conversation

@thompson-tomo
Copy link
Contributor

@thompson-tomo thompson-tomo commented Nov 7, 2025

Fixes #1981

Changes

Adds in the code attributes to the exception event as opt-in

Important

Pull requests acceptance are subject to the triage process as described in Issue and PR Triage Management.
PRs that do not follow the guidance above, may be automatically rejected and closed.

Merge requirement checklist

  • CONTRIBUTING.md guidelines followed.
  • Change log entry added, according to the guidelines in When to add a changelog entry.
    • If your PR does not need a change log, start the PR title with [chore]
  • Links to the prototypes or existing instrumentations (when adding or changing conventions)

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

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

  • exceptions

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 Nov 7, 2025
@thompson-tomo
Copy link
Contributor Author

@joaopgrassi can this be reopened. The issue has been accepted but pr still got closed.

Comment on lines +17 to +24
- ref: code.function.name
requirement_level: opt_in
- ref: code.file.path
requirement_level: opt_in
- ref: code.line.number
requirement_level: opt_in
- ref: code.column.number
requirement_level: opt_in
Copy link
Member

Choose a reason for hiding this comment

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

will this be the code where the exception was originally thrown? or the user code where it was captured?

cc @open-telemetry/browser-approvers since related to #1942

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My preference would be the code which threw the exception if the language provides it.

@thompson-tomo thompson-tomo force-pushed the feature/#1981_AddCodeToExceptions branch from 3d891aa to 1fd9c35 Compare November 28, 2025 02: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.

Add opt-in code attributes to exception event

4 participants