Skip to content
This repository was archived by the owner on Nov 14, 2020. It is now read-only.
This repository was archived by the owner on Nov 14, 2020. It is now read-only.

Support beforeSend #42

@mm-spiio

Description

@mm-spiio

Is there a way to support the beforeSend option? I don't want to log things when developing locally... Something like this:

Sentry.init(
    { dsn: "DSN", beforeSend: (event, hint) => { 
        if (IS_DEBUG) { 
            console.error(hint.originalException || hint.syntheticException || event); 
            return null; 
        } 
        return event; 
    }
}); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions