-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I disable these UI lifecycle logs but not Device events and App lifecycle events in the react native app? #4398
Comments
Hello @Nehal-Zeller 👋
You can find more in the documentation on filtering events and using breadcrumbs. Also please note that we're winding down for the holidays, so responses will be slower than usual. |
Thank you @antonis 🙏🏽 |
Also,
will filtering out with type exclude react navigation logs too? |
I can't seem to find |
ended up using
|
Thank you, I did the same :) |
Thank you both for iterating on this 🙇
You could use the
|
What React Native libraries do you use?
React Navigation
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
6.1.0
How does your development environment look like?
OS: iOS
Node: 18.20.0
yarn: 4.1.0
react: 18.2.0
react-native: 0.75.4
hermesEnabled: yes
newArchENabled: false
Sentry.init()
Sentry.init({
dsn: env.SENTRY_DNS,
environment: env.SENTRY_ENV,
enableNative: true,
tracesSampleRate: 0.5,
integrations: [SENTRY_ROUTING_INSTRUMENTATION, SENTRY_BREADCRUMB_INSTRUMENTATION]
})
const SENTRY_ROUTING_INSTRUMENTATION = Sentry.reactNavigationIntegration(
{
enableTimeToInitialDisplay: true,
}
);
const SENTRY_BREADCRUMB_INSTRUMENTATION = Sentry.breadcrumbsIntegration({
console: false,
fetch: false,
xhr: false,
});
Steps to Reproduce
Navigating through the app
Expected Result
Don't want to see UI lifecycle events in sentry log, these are redundant logs and I don't want to see them in my sentry log.
How do I disable these UI lifecycle logs but not Device events and App lifecycle events?
Actual Result
The text was updated successfully, but these errors were encountered: