You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,7 +69,7 @@ export class Instrument extends InstrumentBase {
69
69
/**
70
70
* This func is use for early pre-load recording prior to replay feature (agg) being loaded onto the page. It should only setup once, including if already called and in-progress.
71
71
*/
72
-
async #preloadStartRecording (){
72
+
async #preloadStartRecording (trigger){
73
73
if(this.#alreadyStarted)return
74
74
this.#alreadyStarted =true
75
75
@@ -78,7 +78,7 @@ export class Instrument extends InstrumentBase {
78
78
79
79
// If startReplay() has been used by this point, we must record in full mode regardless of session preload:
80
80
// Note: recorder starts here with w/e the mode is at this time, but this may be changed later (see #apiStartOrRestartReplay else-case)
81
-
this.recorder??=newRecorder({ ...this,mode: this.#mode,agentRef: this.#agentRef,timeKeeper: this.#agentRef.runtime.timeKeeper})// if TK exists due to deferred state, pass it
81
+
this.recorder??=newRecorder({ ...this,mode: this.#mode,agentRef: this.#agentRef,trigger,timeKeeper: this.#agentRef.runtime.timeKeeper})// if TK exists due to deferred state, pass it
82
82
this.recorder.startRecording()
83
83
this.abortHandler=this.recorder.stopRecording
84
84
}catch(err){
@@ -95,7 +95,7 @@ export class Instrument extends InstrumentBase {
0 commit comments