diff --git a/docs/changelog/v7.md b/docs/changelog/v7.md index ae32f2475956..7c36c7d2dc2f 100644 --- a/docs/changelog/v7.md +++ b/docs/changelog/v7.md @@ -1813,7 +1813,7 @@ We will not send replays that are <5s long anymore. Additionally, we also added ```js new Replay({ - minReplayDuration: 10000, // in ms - note that this is capped at 15s max! + minReplayDuration: 10000, // in ms - note that this is capped at 5 minutes max! }); ``` diff --git a/packages/replay-internal/src/constants.ts b/packages/replay-internal/src/constants.ts index da253a68ec8f..248649e7291e 100644 --- a/packages/replay-internal/src/constants.ts +++ b/packages/replay-internal/src/constants.ts @@ -46,7 +46,7 @@ export const REPLAY_MAX_EVENT_BUFFER_SIZE = 20_000_000; // ~20MB /** Replays must be min. 5s long before we send them. */ export const MIN_REPLAY_DURATION = 4_999; /* The max. allowed value that the minReplayDuration can be set to. */ -export const MIN_REPLAY_DURATION_LIMIT = 15_000; +export const MIN_REPLAY_DURATION_LIMIT = 300_000; // 5 minutes /** The max. length of a replay. */ export const MAX_REPLAY_DURATION = 3_600_000; // 60 minutes in ms; diff --git a/packages/replay-internal/src/types/replay.ts b/packages/replay-internal/src/types/replay.ts index a2c84d6c4bbe..c748d4ba2136 100644 --- a/packages/replay-internal/src/types/replay.ts +++ b/packages/replay-internal/src/types/replay.ts @@ -180,7 +180,7 @@ export interface ReplayPluginOptions extends ReplayNetworkOptions { /** * The min. duration (in ms) a replay has to have before it is sent to Sentry. * Whenever attempting to flush a session that is shorter than this, it will not actually send it to Sentry. - * Note that this is capped at max. 15s. + * Note that this is capped at max. 5 minutes. */ minReplayDuration: number;