Added Application Insights Telemetry

This commit is contained in:
Brett Hewitson 2023-03-07 21:39:23 +10:00
parent 33af7cf391
commit 0449c3a43f
5 changed files with 52 additions and 10 deletions

View file

@ -57,6 +57,7 @@ public class Startup
});
services.AddHealthChecks();
services.AddApplicationInsightsTelemetry(Configuration);
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
@ -67,7 +68,6 @@ public class Startup
app.UseDeveloperExceptionPage();
}
var enableSwagger = Configuration.GetValue<bool>("EnableSwagger");
if (enableSwagger)
{