Add azure monitor logging as well

pull/178/head
David Fowler 2022-11-05 13:35:05 -07:00
parent 98185546d9
commit ff0e668fc6
1 changed files with 8 additions and 0 deletions

View File

@ -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);