-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
8.10.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
const client = SentrySDK.getClient()
const options = client.getOptions()
options.replaysSessionSampleRate = 0
options.replaysOnErrorSampleRate = 1.0
const replay = SentrySDK.replayIntegration({
minReplayDuration: 3000,
})
client.addIntegration(replay)Steps to Reproduce
- Initialize Replay with
replaysSessionSampleRate = 0andreplaysOnErrorSampleRate = 1.0 - Call
Sentry.getReplay().flush()and it will upload a new video recording even if replaysSessionSampleRate is 0
Expected Result
It should not record a video when calling flush if replaysSessionSampleRate = 0
Actual Result
It is recording a video when calling flush when replaysSessionSampleRate = 0.
ant1m4tt3r
Metadata
Metadata
Assignees
Labels
Projects
Status
No status