From 5358abca48ff02c8e68099b24c15a435126e31da Mon Sep 17 00:00:00 2001 From: David Fowler Date: Sun, 6 Nov 2022 21:06:37 -0800 Subject: [PATCH] That source is an activty source, we don't have any --- src/Services/Podcasts/Podcast.MinimalAPI/Program.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 182fff0..b60adea 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -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;