File tree 2 files changed +3
-2
lines changed 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -922,7 +922,7 @@ export class ReplayContainer implements ReplayContainerInterface {
922
922
const transport = client && client . getTransport ( ) ;
923
923
const dsn = client ?. getDsn ( ) ;
924
924
925
- if ( ! client || ! scope || ! transport || ! dsn ) {
925
+ if ( ! client || ! scope || ! transport || ! dsn || ! this . session || ! this . session . sampled ) {
926
926
return ;
927
927
}
928
928
@@ -936,7 +936,7 @@ export class ReplayContainer implements ReplayContainerInterface {
936
936
urls,
937
937
replay_id : replayId ,
938
938
segment_id,
939
- replay_type : this . session ? .sampled ,
939
+ replay_type : this . session . sampled ,
940
940
} ;
941
941
942
942
const replayEvent = await getReplayEvent ( { scope, client, event : baseEvent } ) ;
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export interface ReplayEvent extends Event {
10
10
trace_ids : string [ ] ;
11
11
replay_id : string ;
12
12
segment_id : number ;
13
+ replay_type : 'session' | 'error' ;
13
14
}
14
15
15
16
/**
You can’t perform that action at this time.
0 commit comments