File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -893,6 +893,7 @@ export class ReplayContainer implements ReplayContainerInterface {
893
893
segmentId : segment_id ,
894
894
includeReplayStartTimestamp,
895
895
eventContext,
896
+ timestamp = new Date ( ) . getTime ( ) ,
896
897
} : SendReplay ) : Promise < void | TransportMakeRequestResponse > {
897
898
const recordingData = createRecordingData ( {
898
899
events,
@@ -903,8 +904,6 @@ export class ReplayContainer implements ReplayContainerInterface {
903
904
904
905
const { urls, errorIds, traceIds, initialTimestamp } = eventContext ;
905
906
906
- const currentTimestamp = new Date ( ) . getTime ( ) ;
907
-
908
907
const hub = getCurrentHub ( ) ;
909
908
const client = hub . getClient ( ) ;
910
909
const scope = hub . getScope ( ) ;
@@ -919,7 +918,7 @@ export class ReplayContainer implements ReplayContainerInterface {
919
918
// @ts -ignore private api
920
919
type : REPLAY_EVENT_NAME ,
921
920
...( includeReplayStartTimestamp ? { replay_start_timestamp : initialTimestamp / 1000 } : { } ) ,
922
- timestamp : currentTimestamp / 1000 ,
921
+ timestamp : timestamp / 1000 ,
923
922
error_ids : errorIds ,
924
923
trace_ids : traceIds ,
925
924
urls,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export interface SendReplay {
15
15
segmentId : number ;
16
16
includeReplayStartTimestamp : boolean ;
17
17
eventContext : PopEventContext ;
18
+ timestamp ?: number ;
18
19
}
19
20
20
21
export type InstrumentationTypeBreadcrumb = 'dom' | 'scope' ;
You can’t perform that action at this time.
0 commit comments