Skip to content

Commit

Permalink
ref(replay): Remove unused initialFlushDelay option
Browse files Browse the repository at this point in the history
This is not in use anymore - we always flush immediately on load.
  • Loading branch information
mydea committed Jan 19, 2023
1 parent b83e7e1 commit 87ee11b
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 11 deletions.
Expand Up @@ -3,7 +3,7 @@ import * as Sentry from '@sentry/browser';
window.Sentry = Sentry;
window.Replay = new Sentry.Replay({
flushMinDelay: 200,
initialFlushDelay: 200,
flushMaxDelay: 200,
});

Sentry.init({
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/suites/replay/init.js
Expand Up @@ -4,7 +4,7 @@ import { Replay } from '@sentry/replay';
window.Sentry = Sentry;
window.Replay = new Replay({
flushMinDelay: 200,
initialFlushDelay: 200,
flushMaxDelay: 200,
});

Sentry.init({
Expand Down
2 changes: 1 addition & 1 deletion packages/integration-tests/suites/replay/sampling/init.js
Expand Up @@ -4,7 +4,7 @@ import { Replay } from '@sentry/replay';
window.Sentry = Sentry;
window.Replay = new Replay({
flushMinDelay: 200,
initialFlushDelay: 200,
flushMaxDelay: 200,
});

Sentry.init({
Expand Down
2 changes: 0 additions & 2 deletions packages/replay/src/integration.ts
Expand Up @@ -43,7 +43,6 @@ export class Replay implements Integration {
public constructor({
flushMinDelay = DEFAULT_FLUSH_MIN_DELAY,
flushMaxDelay = DEFAULT_FLUSH_MAX_DELAY,
initialFlushDelay = INITIAL_FLUSH_DELAY,
stickySession = true,
useCompression = true,
sessionSampleRate,
Expand Down Expand Up @@ -73,7 +72,6 @@ export class Replay implements Integration {
flushMinDelay,
flushMaxDelay,
stickySession,
initialFlushDelay,
sessionSampleRate: DEFAULT_SESSION_SAMPLE_RATE,
errorSampleRate: DEFAULT_ERROR_SAMPLE_RATE,
useCompression,
Expand Down
2 changes: 1 addition & 1 deletion packages/replay/src/replay.ts
Expand Up @@ -178,7 +178,7 @@ export class ReplayContainer implements ReplayContainerInterface {
this._updateSessionActivity();

this.eventBuffer = createEventBuffer({
useCompression: Boolean(this._options.useCompression),
useCompression: this._options.useCompression,
});

this._addListeners();
Expand Down
5 changes: 0 additions & 5 deletions packages/replay/src/types.ts
Expand Up @@ -85,11 +85,6 @@ export interface ReplayPluginOptions extends SessionOptions {
*/
flushMaxDelay: number;

/**
* The amount of time to buffer the initial snapshot
*/
initialFlushDelay: number;

/**
* Attempt to use compression when web workers are available
*
Expand Down

0 comments on commit 87ee11b

Please sign in to comment.