From 84f2392ad29c2000317f37006a7ac847f2378895 Mon Sep 17 00:00:00 2001 From: Richard Borcsik Date: Wed, 13 Nov 2024 16:05:01 +0100 Subject: [PATCH] call reportstarted --- src/extensions/replay/sessionrecording.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/extensions/replay/sessionrecording.ts b/src/extensions/replay/sessionrecording.ts index 68384c944..2ebc2975b 100644 --- a/src/extensions/replay/sessionrecording.ts +++ b/src/extensions/replay/sessionrecording.ts @@ -51,6 +51,8 @@ type SessionStartReason = | 'linked_flag_override' | 'sampling' | 'session_id_changed' + | 'url_trigger_match' + | 'event_trigger_match' const BASE_ENDPOINT = '/s/' @@ -1239,6 +1241,7 @@ export class SessionRecording { if (this.triggerStatus === 'trigger_pending') { this.triggerStatus = 'trigger_activated' this._tryAddCustomEvent(`${triggerType} trigger activated`, {}) + this._reportStarted(triggerType === 'url' ? 'url_trigger_match' : 'event_trigger_match') this._flushBuffer() logger.info(LOGGER_PREFIX + ` recording triggered by ${triggerType}`) }