Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/changelog/v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
});
```

Expand Down
2 changes: 1 addition & 1 deletion packages/replay-internal/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/replay-internal/src/types/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down