getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.56k stars 333 forks source link

Persistent Sentry Log - Request to Suppress or make conditional(Expo) #4053

Open quememo opened 3 weeks ago

quememo commented 3 weeks ago

(Intended for Expo)

I have a problem regarding Sentry interaction with LogRocket.

In this line of code the message is always being logged. Could this be either removed or made conditional based on a debug flag?

Each time this appears, LogRocket recognizes it as an error and uploads a session recording to their servers, which floods my logs and causes me to reach my quota limit.

LogRocket captured logs that trigger the upload: Image

Related versions:

    "react": "18.2.0",
    "expo": "50.0.19",
    "@sentry/react-native": "5.20.0",
    "@logrocket/react-native": "1.32.0",
quememo commented 3 weeks ago

Asked for help in LogRocket support also already

krystofwoldrich commented 2 weeks ago

Hi @quememo, thank you for the message,

yes this definitely can be guarded by the debug: true.