From 8d84fb009c6c317aa25a74397196db11cf8c6d8d Mon Sep 17 00:00:00 2001 From: Kevin BEAUGRAND <9513635+kbeaugrand@users.noreply.github.com> Date: Mon, 7 Feb 2022 19:22:39 +0100 Subject: [PATCH] Add Application Insights telemetry (#212) --- src/AzureIoTHub.Portal/Server/AzureIoTHub.Portal.Server.csproj | 1 + src/AzureIoTHub.Portal/Server/Startup.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/AzureIoTHub.Portal/Server/AzureIoTHub.Portal.Server.csproj b/src/AzureIoTHub.Portal/Server/AzureIoTHub.Portal.Server.csproj index 1b6c7791a..b3f6529c9 100644 --- a/src/AzureIoTHub.Portal/Server/AzureIoTHub.Portal.Server.csproj +++ b/src/AzureIoTHub.Portal/Server/AzureIoTHub.Portal.Server.csproj @@ -13,6 +13,7 @@ + diff --git a/src/AzureIoTHub.Portal/Server/Startup.cs b/src/AzureIoTHub.Portal/Server/Startup.cs index e78cb893b..da63b0a10 100644 --- a/src/AzureIoTHub.Portal/Server/Startup.cs +++ b/src/AzureIoTHub.Portal/Server/Startup.cs @@ -117,6 +117,8 @@ public void ConfigureServices(IServiceCollection services) client.DefaultRequestHeaders.Add("x-functions-key", configuration.LoRaKeyManagementCode); }) .AddPolicyHandler(transientHttpErrorPolicy); + + services.AddApplicationInsightsTelemetry(); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.