Skip to content

Commit 87ee11b

Browse files
committed
ref(replay): Remove unused initialFlushDelay option
This is not in use anymore - we always flush immediately on load.
1 parent b83e7e1 commit 87ee11b

File tree

6 files changed

+4
-11
lines changed

6 files changed

+4
-11
lines changed

packages/integration-tests/suites/replay/captureReplayViaBrowser/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as Sentry from '@sentry/browser';
33
window.Sentry = Sentry;
44
window.Replay = new Sentry.Replay({
55
flushMinDelay: 200,
6-
initialFlushDelay: 200,
6+
flushMaxDelay: 200,
77
});
88

99
Sentry.init({

packages/integration-tests/suites/replay/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Replay } from '@sentry/replay';
44
window.Sentry = Sentry;
55
window.Replay = new Replay({
66
flushMinDelay: 200,
7-
initialFlushDelay: 200,
7+
flushMaxDelay: 200,
88
});
99

1010
Sentry.init({

packages/integration-tests/suites/replay/sampling/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Replay } from '@sentry/replay';
44
window.Sentry = Sentry;
55
window.Replay = new Replay({
66
flushMinDelay: 200,
7-
initialFlushDelay: 200,
7+
flushMaxDelay: 200,
88
});
99

1010
Sentry.init({

packages/replay/src/integration.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export class Replay implements Integration {
4343
public constructor({
4444
flushMinDelay = DEFAULT_FLUSH_MIN_DELAY,
4545
flushMaxDelay = DEFAULT_FLUSH_MAX_DELAY,
46-
initialFlushDelay = INITIAL_FLUSH_DELAY,
4746
stickySession = true,
4847
useCompression = true,
4948
sessionSampleRate,
@@ -73,7 +72,6 @@ export class Replay implements Integration {
7372
flushMinDelay,
7473
flushMaxDelay,
7574
stickySession,
76-
initialFlushDelay,
7775
sessionSampleRate: DEFAULT_SESSION_SAMPLE_RATE,
7876
errorSampleRate: DEFAULT_ERROR_SAMPLE_RATE,
7977
useCompression,

packages/replay/src/replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class ReplayContainer implements ReplayContainerInterface {
178178
this._updateSessionActivity();
179179

180180
this.eventBuffer = createEventBuffer({
181-
useCompression: Boolean(this._options.useCompression),
181+
useCompression: this._options.useCompression,
182182
});
183183

184184
this._addListeners();

packages/replay/src/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@ export interface ReplayPluginOptions extends SessionOptions {
8585
*/
8686
flushMaxDelay: number;
8787

88-
/**
89-
* The amount of time to buffer the initial snapshot
90-
*/
91-
initialFlushDelay: number;
92-
9388
/**
9489
* Attempt to use compression when web workers are available
9590
*

0 commit comments

Comments
 (0)