Skip to content

✨[RUM-15126] Allow updates of error.handling_stack#4357

Merged
bcaudan merged 3 commits intomainfrom
bcaudan/scrub-error.handling_stack
Mar 20, 2026
Merged

✨[RUM-15126] Allow updates of error.handling_stack#4357
bcaudan merged 3 commits intomainfrom
bcaudan/scrub-error.handling_stack

Conversation

@bcaudan
Copy link
Copy Markdown
Collaborator

@bcaudan bcaudan commented Mar 19, 2026

Motivation

Similarly to RUM errors error.stack attribute, allow error.handling_stack to be updated by customers before being sent.

Changes

  • Update rum-events-format
  • Add error.handling_stack to error modifiable fields
  • Remove sandbox DD_FLAGGING global

Test instructions

Updating the value through beforeSend:

{
  beforeSend: (event) => {
    if (event.error?.handling_stack) {
      event.error.handling_stack = 'test'
    }
  }
},

And sending a custom error:

DD_RUM.addError('test')

The handling_stack value should be updated:

Screenshot 2026-03-19 at 13 28 51

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 77.29% (-0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 82a455c | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

@bcaudan bcaudan marked this pull request as ready for review March 19, 2026 13:02
@bcaudan bcaudan requested a review from a team as a code owner March 19, 2026 13:02
@bcaudan bcaudan merged commit ec8e4d2 into main Mar 20, 2026
21 checks passed
@bcaudan bcaudan deleted the bcaudan/scrub-error.handling_stack branch March 20, 2026 13:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants