diff --git a/packages/telemetry/browser-telemetry/package.json b/packages/telemetry/browser-telemetry/package.json index 2b3536421..4b26088a1 100644 --- a/packages/telemetry/browser-telemetry/package.json +++ b/packages/telemetry/browser-telemetry/package.json @@ -44,7 +44,6 @@ "url": "https://github.com/launchdarkly/js-core/issues" }, "dependencies": { - "rrweb": "2.0.0-alpha.4", "tracekit": "^0.4.6" }, "devDependencies": { diff --git a/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts b/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts index 41ce9a351..9e030dbe9 100644 --- a/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts +++ b/packages/telemetry/browser-telemetry/src/BrowserTelemetryImpl.ts @@ -130,6 +130,7 @@ export default class BrowserTelemetryImpl implements BrowserTelemetry { this._pendingEvents.forEach((event) => { this._client?.track(event.type, event.data); }); + this._pendingEvents = []; } inspectors(): LDInspection[] {