|
1 | 1 | /* eslint-disable max-lines */ // TODO: We might want to split this file up
|
2 |
| -import { EventType, record } from '@sentry-internal/rrweb'; |
| 2 | +import { EventType, IncrementalSource, record } from '@sentry-internal/rrweb'; |
3 | 3 | import { captureException, getCurrentHub } from '@sentry/core';
|
4 | 4 | import type { Breadcrumb, ReplayRecordingMode } from '@sentry/types';
|
5 | 5 | import { logger } from '@sentry/utils';
|
@@ -203,6 +203,7 @@ export class ReplayContainer implements ReplayContainerInterface {
|
203 | 203 | // Without this, it would record forever, until an error happens, which we don't want
|
204 | 204 | // instead, we'll always keep the last 60 seconds of replay before an error happened
|
205 | 205 | ...(this.recordingMode === 'error' && { checkoutEveryNms: ERROR_CHECKOUT_TIME }),
|
| 206 | + recordCrossOriginIframes: true, |
206 | 207 | emit: this._handleRecordingEmit,
|
207 | 208 | });
|
208 | 209 | } catch (err) {
|
@@ -528,6 +529,10 @@ export class ReplayContainer implements ReplayContainerInterface {
|
528 | 529 | return;
|
529 | 530 | }
|
530 | 531 |
|
| 532 | + if (event.type === EventType.IncrementalSnapshot && event.data.source === IncrementalSource.Input) { |
| 533 | + console.log(JSON.stringify(event)); |
| 534 | + } |
| 535 | + |
531 | 536 | this.addUpdate(() => {
|
532 | 537 | // The session is always started immediately on pageload/init, but for
|
533 | 538 | // error-only replays, it should reflect the most recent checkout
|
@@ -795,7 +800,7 @@ export class ReplayContainer implements ReplayContainerInterface {
|
795 | 800 | // Note this empties the event buffer regardless of outcome of sending replay
|
796 | 801 | const recordingData = await this.eventBuffer.finish();
|
797 | 802 |
|
798 |
| - console.log('RUNNING FLUSH') |
| 803 | + console.log('RUNNING FLUSH', new Date().getTime()) |
799 | 804 | // NOTE: Copy values from instance members, as it's possible they could
|
800 | 805 | // change before the flush finishes.
|
801 | 806 | const replayId = this.session.id;
|
|
0 commit comments