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(
657657  options ?: {  url ?: string ;  isRedirect ?: boolean  } , 
658658) : Span  |  undefined  { 
659659  const  {  url,  isRedirect }  =  options  ||  { } ; 
660-   client . emit ( 'beforeStartNavigationSpan' ,  spanOptions ) ; 
660+   client . emit ( 'beforeStartNavigationSpan' ,  spanOptions ,   {  isRedirect  } ) ; 
661661  client . emit ( 'startNavigationSpan' ,  spanOptions ,  {  isRedirect } ) ; 
662662
663663  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> {
607607   * A hook for triggering right before a navigation span is started. 
608608   * @returns  {() => void } A function that, when executed, removes the registered callback. 
609609   */ 
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 ; 
611614
612615  /** 
613616   * 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> {
791794  /** 
792795   * Emit a hook event for triggering right before a navigation span is started. 
793796   */ 
794-   public  emit ( hook : 'beforeStartNavigationSpan' ,  options : StartSpanOptions ) : void ; 
797+   public  emit ( 
798+     hook : 'beforeStartNavigationSpan' , 
799+     options : StartSpanOptions , 
800+     navigationOptions ?: {  isRedirect ?: boolean  } , 
801+   ) : void ; 
795802
796803  /** 
797804   * 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