Skip to content

Expose addConsoleInstrumentationFilter from @sentry/core #6140

Description

@antonis

Problem

Currently, the SDK captures console breadcrumbs via the breadcrumbsIntegration with a simple console: true/false toggle — all or nothing. Users cannot selectively filter which console calls are recorded as breadcrumbs (e.g., skip console.debug but keep console.error).

Solution

@sentry/core v10.53.0 added addConsoleInstrumentationFilter (getsentry/sentry-javascript#20790) which allows granular filtering of console instrumentation.

We should re-export this utility so React Native users can use it.

References

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions