Skip to content

Prevent replay being recorded but log error #11155

Answered by AbhiPrasad
freon27 asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at beforeErrorSampling: https://docs.sentry.io/platforms/javascript/session-replay/configuration/

Filter error events which should be skipped for error sampling. Return false if error sampling should be skipped for this error event, or true to sample for this error.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@freon27
Comment options

Answer selected by freon27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants