Skip to content

fix(browser)!: stop tagging DOMException.code on events - #23992

Merged
msonnb merged 2 commits into
getsentry:developfrom
RealBhupesh:fix/domexception-code-tag
Sep 3, 2026
Merged

fix(browser)!: stop tagging DOMException.code on events#23992
msonnb merged 2 commits into
getsentry:developfrom
RealBhupesh:fix/domexception-code-tag

Conversation

@RealBhupesh

@RealBhupesh RealBhupesh commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Stop setting the deprecated DOMException.code as an event tag
  • DOMException.name remains available via error.type on the exception payload

Fixes #10501

Test plan

  • Added regression test in packages/browser/test/eventbuilder.test.ts
  • CI

@RealBhupesh
RealBhupesh requested a review from a team as a code owner September 3, 2026 10:05
@RealBhupesh
RealBhupesh requested review from Lms24 and msonnb and removed request for a team September 3, 2026 10:05
@msonnb msonnb changed the title fix(browser): stop tagging DOMException.code on events fix(browser)!: stop tagging DOMException.code on events Sep 3, 2026

@msonnb msonnb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thanks!

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good cleanup, thanks!

side-note: If by popular demand, we should bring back the code, we should do so as a context, not as a tag, as suggested in #10501 (comment). IMHO it's fine to remove this, given the age and the replacement.

@msonnb
msonnb merged commit bd7482c into getsentry:develop Sep 3, 2026
264 checks passed
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.

Track DOMException.name instead of DOMException.code

3 participants