File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -657,7 +657,7 @@ export function startBrowserTracingNavigationSpan(
657
657
options ?: { url ?: string ; isRedirect ?: boolean } ,
658
658
) : Span | undefined {
659
659
const { url, isRedirect } = options || { } ;
660
- client . emit ( 'beforeStartNavigationSpan' , spanOptions ) ;
660
+ client . emit ( 'beforeStartNavigationSpan' , spanOptions , { isRedirect } ) ;
661
661
client . emit ( 'startNavigationSpan' , spanOptions , { isRedirect } ) ;
662
662
663
663
const scope = getCurrentScope ( ) ;
Original file line number Diff line number Diff line change @@ -607,7 +607,10 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
607
607
* A hook for triggering right before a navigation span is started.
608
608
* @returns {() => void } A function that, when executed, removes the registered callback.
609
609
*/
610
- public on ( hook : 'beforeStartNavigationSpan' , callback : ( options : StartSpanOptions ) => void ) : ( ) => void ;
610
+ public on (
611
+ hook : 'beforeStartNavigationSpan' ,
612
+ callback : ( options : StartSpanOptions , navigationOptions ?: { isRedirect ?: boolean } ) => void ,
613
+ ) : ( ) => void ;
611
614
612
615
/**
613
616
* A hook for browser tracing integrations to trigger a span for a navigation.
@@ -791,7 +794,11 @@ export abstract class Client<O extends ClientOptions = ClientOptions> {
791
794
/**
792
795
* Emit a hook event for triggering right before a navigation span is started.
793
796
*/
794
- public emit ( hook : 'beforeStartNavigationSpan' , options : StartSpanOptions ) : void ;
797
+ public emit (
798
+ hook : 'beforeStartNavigationSpan' ,
799
+ options : StartSpanOptions ,
800
+ navigationOptions ?: { isRedirect ?: boolean } ,
801
+ ) : void ;
795
802
796
803
/**
797
804
* Emit a hook event for browser tracing integrations to trigger a span for a navigation.
You can’t perform that action at this time.
0 commit comments