Skip to content

Add errorsSampler for Sentry config to match functionality with tracesSampler #4800

Closed
@JohnDuncanScott

Description

@JohnDuncanScott

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions