File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 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 {
922922 const transport = client && client . getTransport ( ) ;
923923 const dsn = client ?. getDsn ( ) ;
924924
925- if ( ! client || ! scope || ! transport || ! dsn ) {
925+ if ( ! client || ! scope || ! transport || ! dsn || ! this . session || ! this . session . sampled ) {
926926 return ;
927927 }
928928
@@ -936,7 +936,7 @@ export class ReplayContainer implements ReplayContainerInterface {
936936 urls,
937937 replay_id : replayId ,
938938 segment_id,
939- replay_type : this . session ? .sampled ,
939+ replay_type : this . session . sampled ,
940940 } ;
941941
942942 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 {
1010 trace_ids : string [ ] ;
1111 replay_id : string ;
1212 segment_id : number ;
13+ replay_type : 'session' | 'error' ;
1314}
1415
1516/**
You can’t perform that action at this time.
0 commit comments