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.