File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Datadog.Trace.BenchmarkDotNet
Datadog.Trace.Tools.Runner Expand file tree Collapse file tree 2 files changed +3
-3
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}" ;
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ public static async Task<AgentConfiguration> CheckAgentConnectionAsync(string ag
417417
418418 var settings = new TracerSettings ( configurationSource , new ConfigurationTelemetry ( ) , new OverrideErrorLog ( ) ) ;
419419
420- Log . Debug ( "Creating DiscoveryService for: {AgentUri}" , settings . Exporter . AgentUri ) ;
420+ Log . Debug ( "Creating DiscoveryService for: {AgentUri}" , settings . MutableSettings . AgentUri ) ;
421421 var discoveryService = DiscoveryService . Create (
422422 settings . Exporter ,
423423 tcpTimeout : TimeSpan . FromSeconds ( 5 ) ,
You can’t perform that action at this time.
0 commit comments