Add azure monitor logging as well
parent
98185546d9
commit
ff0e668fc6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue