correctly extract uri from config for Jaeger

pull/178/head
Chet Husk 2022-11-04 13:39:07 -05:00
parent d563d7732d
commit 4bde9a0882
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ builder.Services.AddOpenTelemetryTracing(b =>
.SetResourceBuilder(serviceResource)
.AddJaegerExporter(o =>
{
o.Endpoint = builder.Configuration["Jaeger"]["Endpoint"];
o.Endpoint = new Uri(builder.Configuration.GetSection("Jaeger").GetValue<string>("Endpoint"));
})
.AddAzureMonitorTraceExporter(o =>
{