File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -895,6 +895,7 @@ export class ReplayContainer implements ReplayContainerInterface {
895895 segmentId : segment_id ,
896896 includeReplayStartTimestamp,
897897 eventContext,
898+ timestamp = new Date ( ) . getTime ( ) ,
898899 } : SendReplay ) : Promise < void | TransportMakeRequestResponse > {
899900 const recordingData = createRecordingData ( {
900901 events,
@@ -905,8 +906,6 @@ export class ReplayContainer implements ReplayContainerInterface {
905906
906907 const { urls, errorIds, traceIds, initialTimestamp } = eventContext ;
907908
908- const currentTimestamp = new Date ( ) . getTime ( ) ;
909-
910909 const hub = getCurrentHub ( ) ;
911910 const client = hub . getClient ( ) ;
912911 const scope = hub . getScope ( ) ;
@@ -921,7 +920,7 @@ export class ReplayContainer implements ReplayContainerInterface {
921920 // @ts -ignore private api
922921 type : REPLAY_EVENT_NAME ,
923922 ...( includeReplayStartTimestamp ? { replay_start_timestamp : initialTimestamp / 1000 } : { } ) ,
924- timestamp : currentTimestamp / 1000 ,
923+ timestamp,
925924 error_ids : errorIds ,
926925 trace_ids : traceIds ,
927926 urls,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface SendReplay {
1515 segmentId : number ;
1616 includeReplayStartTimestamp : boolean ;
1717 eventContext : PopEventContext ;
18+ timestamp ?: number ;
1819}
1920
2021export type InstrumentationTypeBreadcrumb = 'dom' | 'scope' ;
You can’t perform that action at this time.
0 commit comments