diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 97d6b29..1841039 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -100,6 +100,14 @@ builder.Services.AddOpenTelemetryMetrics(metrics => .AddHttpClientInstrumentation(); }); +builder.Logging.AddOpenTelemetry(logging => +{ + logging.AddAzureMonitorLogExporter(o => + { + o.ConnectionString = azureMonitorConnectionString; + }); +}); + var app = builder.Build(); await EnsureDbAsync(app.Services);