Description
Problem Statement
Javascript errors/events can be very noisy - and our SDK today send a lot of data.
We have simple mechanisms in place like InboundFilters
to remove specific errors that and not worth sending.
Tho this is not enough and still a lot of clutter reaches Sentry, from weird chrome extension errors to other edge cases of low quality events that are just noise (no good message / no stacktrace)
Solution Brainstorm
What if we add a very simple internal "Quality Score" for an error/event in the SDK and only if it reaches a certain value, we actually send it.
For example:
new Error(undefined)
& no message & no stack trace
-> Drop
No exception, no stack trace, no message
-> Drop
Weird edge cases we identified ourselves by looking at Sentry Events
-> Drop
A stack trace with no message and only one single frame with <anonymous>
-> Drop
It could operate on the payload/JSON level to make it relatable to what enters Sentry.