That source is an activty source, we don't have any

pull/178/head
David Fowler 2022-11-06 21:06:37 -08:00
parent 3e1fd4bd73
commit 5358abca48
1 changed files with 2 additions and 3 deletions

View File

@ -72,9 +72,8 @@ var serviceResource =
var azureMonitorConnectionString = builder.Configuration.GetConnectionString("AzureMonitor") ?? throw new InvalidOperationException("Missing azure monitor configuration");
builder.Services.AddOpenTelemetryTracing(b =>
b.AddSource("dotnet-podcasts")
.SetResourceBuilder(serviceResource)
builder.Services.AddOpenTelemetryTracing(tracing =>
tracing.SetResourceBuilder(serviceResource)
.AddAzureMonitorTraceExporter(o =>
{
o.ConnectionString = azureMonitorConnectionString;