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
Problem
Currently, the SDK captures console breadcrumbs via the
breadcrumbsIntegrationwith a simpleconsole: true/falsetoggle — all or nothing. Users cannot selectively filter which console calls are recorded as breadcrumbs (e.g., skipconsole.debugbut keepconsole.error).Solution
@sentry/corev10.53.0 addedaddConsoleInstrumentationFilter(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