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 @@ -906,6 +906,7 @@ export class ReplayContainer implements ReplayContainerInterface {
906
906
segmentId : segment_id ,
907
907
includeReplayStartTimestamp,
908
908
eventContext,
909
+ timestamp = new Date ( ) . getTime ( ) ,
909
910
} : SendReplay ) : Promise < void | TransportMakeRequestResponse > {
910
911
const recordingData = createRecordingData ( {
911
912
events,
@@ -916,8 +917,6 @@ export class ReplayContainer implements ReplayContainerInterface {
916
917
917
918
const { urls, errorIds, traceIds, initialTimestamp } = eventContext ;
918
919
919
- const currentTimestamp = new Date ( ) . getTime ( ) ;
920
-
921
920
const hub = getCurrentHub ( ) ;
922
921
const client = hub . getClient ( ) ;
923
922
const scope = hub . getScope ( ) ;
@@ -932,7 +931,7 @@ export class ReplayContainer implements ReplayContainerInterface {
932
931
// @ts -ignore private api
933
932
type : REPLAY_EVENT_NAME ,
934
933
...( includeReplayStartTimestamp ? { replay_start_timestamp : initialTimestamp / 1000 } : { } ) ,
935
- timestamp : currentTimestamp / 1000 ,
934
+ timestamp,
936
935
error_ids : errorIds ,
937
936
trace_ids : traceIds ,
938
937
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