sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Implement exception groups (AggregateError)

Open krystofwoldrich opened this issue 1 year ago • 1 comments

Description

React Native SDK currently supports linked exceptions using cause but doesn't support AggregateError.

### 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

{
	"message": "Third",
	"cause": {
		"message": "Second",
		"cause": {
			"message": "First",
		}
	}	
}

Not implemented at the moment

{
	"message": "Third",
	"errors": [
		{
			"message": "First",
		},
		{
			"message": "Second",
		},
	]
}

krystofwoldrich avatar Feb 05 '24 10:02 krystofwoldrich

  • https://github.com/getsentry/sentry/issues/59679#issuecomment-1920193704

krystofwoldrich avatar Feb 09 '24 13:02 krystofwoldrich