File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const DEFAULT_CLIENT_REPORT_FLUSH_INTERVAL_MS = 60_000; // 60s was chosen arbitr
1515/** A client for using Sentry with Node & OpenTelemetry. */ 
1616export  class  NodeClient  extends  ServerRuntimeClient < NodeClientOptions >  { 
1717  public  traceProvider : BasicTracerProvider  |  undefined ; 
18-   public  asyncLocalStroageLookup : AsyncLocalStorageLookup  |  undefined ; 
18+   public  asyncLocalStorageLookup : AsyncLocalStorageLookup  |  undefined ; 
1919
2020  private  _tracer : Tracer  |  undefined ; 
2121  private  _clientReportInterval : NodeJS . Timeout  |  undefined ; 
Original file line number Diff line number Diff line change @@ -60,10 +60,8 @@ function startPolling(
6060  integrationOptions : Partial < ThreadBlockedIntegrationOptions > , 
6161) : IntegrationInternal  |  undefined  { 
6262  if  ( client . asyncLocalStroageLookup )  { 
63-     registerThread ( { 
64-       asyncLocalStorage : client . asyncLocalStroageLookup . asyncLocalStorage , 
65-       stateLookup : [ '_currentContext' ,  client . asyncLocalStroageLookup . contextSymbol ] , 
66-     } ) ; 
63+     const  {  asyncLocalStorage,  contextSymbol }  =  client . asyncLocalStroageLookup ; 
64+     registerThread ( {  asyncLocalStorage,  stateLookup : [ '_currentContext' ,  contextSymbol ]  } ) ; 
6765  }  else  { 
6866    registerThread ( ) ; 
6967  } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments