Repository navigation
Description
Environment
SaaS (https://sentry.io/)
What are you trying to accomplish?
When playing a sound, I wrap the code in a try-catch and if I get a NotAllowedError then I catch it and wrap it in my own kind of error, with a more meaningful error message: throw new SgtError('Permission to play sounds not given.', caughtError) (where the constructor will set the cause property to the given error)
In Sentry, I can see the two errors:
Related Exceptions
SgtError: Permission to play sounds not given.
NotAllowedError: Permission was denied
BUT! And here is my problem, all the grouping, fingerprinting and the title and error message of the Sentry issue are all based on the underlying NotAllowedError.
This becomes a problem when in a different part of the code, I try to set the Wake Lock and that operation also throws NotAllowedError and so when I wrap that in a different custom error with a different message, the sound-related issues are all mixed up with the wake-lock issues, since the underlying error is the same, and the 'parent error' is ignored.
How are you getting stuck?
I would like to be able to signal to Sentry to focus on the main error instead of the linked error. Is there a way to do this? I am already using beforeSend to set custom finger prints for these errors, but... it seems clumsy and I can't seem to find a way to fix other things like title and description in the UI.
Where in the product are you?
Unknown
Link
No response
DSN
No response
Version
No response
┆Issue is synchronized with this Jira Improvement by Unito
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsNo status
- StatusShow more project fieldsNo status
Activity
getsantry commentedon Nov 9, 2023
Assigning to @getsentry/support for routing ⏲️
getsantry commentedon Nov 9, 2023
Routing to @getsentry/product-owners-unknown for triage ⏲️
getsantry commentedon Nov 14, 2023
Routing to @getsentry/product-owners-issues for triage ⏲️
40 remaining items
lobsterkatie commentedon Jan 31, 2024
After more investigation, @AbhiPrasad and I agreed that the change actually should come in the SDK.
It's currently marking linked errors as exception groups, when that designation should be reserved for instances of
AggregateError(as confirmed in our event schema here). When grouping events, we ignore the top error of an exception group because it's just a container, and since the top error in a chain of errors is getting designated incorrectly, we're therefore incorrectly ignoring it.We'll post an update when we have news on that fix.
andrewmclagan commentedon Feb 26, 2024
@lobsterkatie Will second how crippling this issue is, considering this is a costly paid service and this issue renders the service almost pointless. I would expect this issue to receive a very high priority, its been open for months.
AbhiPrasad commentedon Feb 26, 2024
Hey folks - we've been busy working on our new major version for the JS SDK, which has been our primary focus.
Apologies for the delay, we'll bump this up in priority
AbhiPrasad commentedon Mar 4, 2024
We've released a fix for this as part of JS SDK release https://github.com/getsentry/sentry-javascript/releases/tag/7.104.0.