@@ -6,7 +6,7 @@ import { Collector } from '../../api/Collector';
66import { ContinuousCapture } from './SessionReplayOptions' ;
77
88export default class ContinuousReplay implements Collector {
9- private _telemetry ?: Recorder ;
9+ private _destination ?: Recorder ;
1010 // TODO: Use a better buffer. (SDK-972)
1111 private _buffer : eventWithTime [ ] = [ ] ;
1212 private _stopper ?: ( ) => void ;
@@ -39,13 +39,13 @@ export default class ContinuousReplay implements Collector {
3939 }
4040
4141 register ( recorder : Recorder , sessionId : string ) : void {
42- this . _telemetry = recorder ;
42+ this . _destination = recorder ;
4343 this . _sessionId = sessionId ;
4444 }
4545
4646 unregister ( ) : void {
4747 this . _stopper ?.( ) ;
48- this . _telemetry = undefined ;
48+ this . _destination = undefined ;
4949 document . removeEventListener ( 'visibilitychange' , this . _visibilityHandler ) ;
5050 clearInterval ( this . _timerHandle ) ;
5151 }
@@ -62,8 +62,8 @@ export default class ContinuousReplay implements Collector {
6262 private _recordCapture ( ) : void {
6363 // Telemetry and sessionId should always be set at the same time, but check both
6464 // for correctness.
65- if ( this . _telemetry && this . _sessionId ) {
66- this . _telemetry . captureSession ( {
65+ if ( this . _destination && this . _sessionId ) {
66+ this . _destination . captureSession ( {
6767 events : [ ...this . _buffer ] ,
6868 index : this . _index ,
6969 } ) ;
0 commit comments