Skip to content

Commit e347879

Browse files
committed
Fix more usages
1 parent 93e8ded commit e347879

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tracer/src/Datadog.Trace.BenchmarkDotNet/DatadogDiagnoser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}";

tracer/src/Datadog.Trace.Tools.Runner/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)