How to decrease event requests to my sentry server in React JS? #6835
-
|
I'm using react js SDK |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @mvahedii. You can use We don't recommend you sample your error events heavily though as it might reduce visibility into low volume errors. Sentry.init({
tracesSampleRate: 0.2,
sampleRate: 0.7,
});We also send session data to Sentry for our release health product. You can set the Sentry.init({
autoSessionTracking: false // default: true
}); |
Beta Was this translation helpful? Give feedback.
Hey @mvahedii. You can use
tracesSampleRateto control the sampling of your performance events, andsampleRateto control the volume of your error events. See https://docs.sentry.io/platforms/javascript/configuration/sampling/ for more details.We don't recommend you sample your error events heavily though as it might reduce visibility into low volume errors.
We also send session data to Sentry for our release health product. You can set the
autoSessionTrackingin yourSentry.inittofalseto disable this feature.