Skip to content

Allow overriding sampling rate for events #1127

@darrell-roberts

Description

@darrell-roberts

Problem Statement

Most event capture will use the sampling rate for the client, however there are some events we consider high priority we want to always send. This would require a user defined function that allows use to set something on the event that we could check for by-passing the sampling rate.

Solution Brainstorm

Add a user defined function to ClientOptions that receives an event and checks if it qualifies for ignoring the configured sampling rate.
Have prepare_event check for user defined sampling override and check if sampling rate should be ignored.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions