Skip to content

Commit 8130c16

Browse files
committed
small renames
1 parent 033766e commit 8130c16

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/replay/src/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const SLOW_CLICK_SCROLL_TIMEOUT = 300;
4646
/** When encountering a total segment size exceeding this size, stop the replay (as we cannot properly ingest it). */
4747
export const REPLAY_MAX_EVENT_BUFFER_SIZE = 20_000_000; // ~20MB
4848

49-
/** Replays must be min. 4s long before we send them. */
50-
export const MIN_REPLAY_DURATION = 4_000;
49+
/** Replays must be min. 5s long before we send them. */
50+
export const MIN_REPLAY_DURATION = 4_999;
5151
/* The max. allowed value that the minReplayDuration can be set to. */
52-
export const MIN_REPLAY_DURATION_MAX = 15_000;
52+
export const MIN_REPLAY_DURATION_LIMIT = 15_000;

packages/replay/src/integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
DEFAULT_FLUSH_MAX_DELAY,
77
DEFAULT_FLUSH_MIN_DELAY,
88
MIN_REPLAY_DURATION,
9-
MIN_REPLAY_DURATION_MAX,
9+
MIN_REPLAY_DURATION_LIMIT,
1010
} from './constants';
1111
import { ReplayContainer } from './replay';
1212
import type { RecordingOptions, ReplayConfiguration, ReplayPluginOptions, SendBufferedReplayOptions } from './types';
@@ -133,7 +133,7 @@ export class Replay implements Integration {
133133
this._initialOptions = {
134134
flushMinDelay,
135135
flushMaxDelay,
136-
minReplayDuration: Math.min(minReplayDuration, MIN_REPLAY_DURATION_MAX),
136+
minReplayDuration: Math.min(minReplayDuration, MIN_REPLAY_DURATION_LIMIT),
137137
stickySession,
138138
sessionSampleRate,
139139
errorSampleRate,

0 commit comments

Comments
 (0)