Skip to content

Commit

Permalink
Add Application Insights telemetry (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbeaugrand authored Feb 7, 2022
1 parent ff42985 commit 8d84fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<ItemGroup>
<PackageReference Include="Azure.Data.Tables" Version="12.4.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.10.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.20.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.1" />
<PackageReference Include="Microsoft.Azure.Devices" Version="1.37.0" />
<PackageReference Include="Microsoft.Azure.Devices.Provisioning.Service" Version="1.18.1" />
Expand Down
2 changes: 2 additions & 0 deletions src/AzureIoTHub.Portal/Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8d84fb0

Please sign in to comment.