Closed
Description
Problem Statement
Traces can be adjusted with a global sample rate or a tracesSampler for more fine-grained sampling (see https://docs.sentry.io/platforms/javascript/configuration/sampling/). Errors have a global sample rate but no sampler option. Given captureMessage uses the errors budget in Sentry, it is useful to have separate sample rates for, as an example, captureMessage vs captureException. It is not possible to do this with Sentry currently.
Solution Brainstorm
Introduces an errorsSampler hook that works the same way as tracesSampler.