@@ -6,7 +6,7 @@ import { Collector } from '../../api/Collector';
6
6
import { ContinuousCapture } from './SessionReplayOptions' ;
7
7
8
8
export default class ContinuousReplay implements Collector {
9
- private _telemetry ?: Recorder ;
9
+ private _destination ?: Recorder ;
10
10
// TODO: Use a better buffer. (SDK-972)
11
11
private _buffer : eventWithTime [ ] = [ ] ;
12
12
private _stopper ?: ( ) => void ;
@@ -39,13 +39,13 @@ export default class ContinuousReplay implements Collector {
39
39
}
40
40
41
41
register ( recorder : Recorder , sessionId : string ) : void {
42
- this . _telemetry = recorder ;
42
+ this . _destination = recorder ;
43
43
this . _sessionId = sessionId ;
44
44
}
45
45
46
46
unregister ( ) : void {
47
47
this . _stopper ?.( ) ;
48
- this . _telemetry = undefined ;
48
+ this . _destination = undefined ;
49
49
document . removeEventListener ( 'visibilitychange' , this . _visibilityHandler ) ;
50
50
clearInterval ( this . _timerHandle ) ;
51
51
}
@@ -62,8 +62,8 @@ export default class ContinuousReplay implements Collector {
62
62
private _recordCapture ( ) : void {
63
63
// Telemetry and sessionId should always be set at the same time, but check both
64
64
// for correctness.
65
- if ( this . _telemetry && this . _sessionId ) {
66
- this . _telemetry . captureSession ( {
65
+ if ( this . _destination && this . _sessionId ) {
66
+ this . _destination . captureSession ( {
67
67
events : [ ...this . _buffer ] ,
68
68
index : this . _index ,
69
69
} ) ;
0 commit comments