Skip to content

Wrap all SDK user callbacks in a try catch #3072

Description

@sl0thentr0py
Callback On exception
before_send Logs internal error, drops event
before_send_transaction Logs internal error, drops event
before_send_log Logs internal error, drops log
before_send_metric Logs internal error, drops metric
before_send_span Logs internal error, emits span
before_breadcrumb Logs internal error, drops breadcrumb
error_sampler Logs internal error, falls back to sample_rate
traces_sampler Logs internal error, falls back to traces_sample_rate
profiles_sampler Logs internal error, falls back to profiles_sample_rate
event_processor Logs internal error, drops event
and potentially more 🙈

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions