getsentry / getsentry/sentry-react-native

Implement exception groups (AggregateError)

Open
#3,579 1 comment 0 reactions 0 assignees View on GitHub
Blocked Errors Feature React-Native
Dominant language
TypeScript
Stars
1.8k
Forks
366
Avg merge
1d 9h
Merged PRs (30d)
89

Description

### Description

React Native SDK currently supports linked exceptions using [`cause`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause) but doesn't support [AggregateError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError).

```[tasklist]
### Blocked by
- [ ] https://github.com/getsentry/sentry/issues/59679#issuecomment-1920193704
```

### Related information

- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError
- https://github.com/getsentry/rfcs/blob/main/text/0079-exception-groups.md#example-event
- https://github.com/getsentry/sentry-javascript/pull/8463

### Notes

- Implementing this might likely change grouping so it should be done in a major version.

### Works
```json
{
"message": "Third",
"cause": {
"message": "Second",
"cause": {
"message": "First",
}
}
}
```

### Not implemented at the moment
```json
{
"message": "Third",
"errors": [
{
"message": "First",
},
{
"message": "Second",
},
]
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.