Skip to content

Commit

Permalink
call reportstarted
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Borcsik committed Nov 13, 2024
1 parent 2f967c0 commit 84f2392
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ type SessionStartReason =
| 'linked_flag_override'
| 'sampling'
| 'session_id_changed'
| 'url_trigger_match'
| 'event_trigger_match'

const BASE_ENDPOINT = '/s/'

Expand Down Expand Up @@ -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}`)
}
Expand Down

0 comments on commit 84f2392

Please sign in to comment.