File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
tracer/src/Datadog.Trace.BenchmarkDotNet Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -216,12 +216,12 @@ private static void SetEnvironmentVariables(DiagnoserActionParameters parameters
216216
217217        if  ( ! environment . TryGetValue ( ConfigurationKeys . Environment ,  out  _ ) ) 
218218        { 
219-             environment [ ConfigurationKeys . Environment ]  =  tracer . Settings . Environment ; 
219+             environment [ ConfigurationKeys . Environment ]  =  tracer . CurrentTraceSettings . Settings . Environment ; 
220220        } 
221221
222222        if  ( ! environment . TryGetValue ( ConfigurationKeys . ServiceVersion ,  out  _ ) ) 
223223        { 
224-             environment [ ConfigurationKeys . ServiceVersion ]  =  tracer . Settings . ServiceVersion ; 
224+             environment [ ConfigurationKeys . ServiceVersion ]  =  tracer . CurrentTraceSettings . Settings . ServiceVersion ; 
225225        } 
226226
227227        const  string  ProfilerId  =  "{846F5F1C-F9AE-4B07-969E-05C26BC060D8}" ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments