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 {
895
895
segmentId : segment_id ,
896
896
includeReplayStartTimestamp,
897
897
eventContext,
898
+ timestamp = new Date ( ) . getTime ( ) ,
898
899
} : SendReplay ) : Promise < void | TransportMakeRequestResponse > {
899
900
const recordingData = createRecordingData ( {
900
901
events,
@@ -905,8 +906,6 @@ export class ReplayContainer implements ReplayContainerInterface {
905
906
906
907
const { urls, errorIds, traceIds, initialTimestamp } = eventContext ;
907
908
908
- const currentTimestamp = new Date ( ) . getTime ( ) ;
909
-
910
909
const hub = getCurrentHub ( ) ;
911
910
const client = hub . getClient ( ) ;
912
911
const scope = hub . getScope ( ) ;
@@ -921,7 +920,7 @@ export class ReplayContainer implements ReplayContainerInterface {
921
920
// @ts -ignore private api
922
921
type : REPLAY_EVENT_NAME ,
923
922
...( includeReplayStartTimestamp ? { replay_start_timestamp : initialTimestamp / 1000 } : { } ) ,
924
- timestamp : currentTimestamp / 1000 ,
923
+ timestamp,
925
924
error_ids : errorIds ,
926
925
trace_ids : traceIds ,
927
926
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