Skip to content

Commit

Permalink
HttpContextAccessor was not added resulting in User Agent Telemetry I…
Browse files Browse the repository at this point in the history
…nitializer to not run. (#3309)
  • Loading branch information
PTaladay authored May 23, 2023
1 parent f3df7c4 commit 53f5e06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Microsoft.Health.Fhir.Shared.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ private void AddApplicationInsightsTelemetry(IServiceCollection services)

if (!string.IsNullOrWhiteSpace(instrumentationKey))
{
services.AddHttpContextAccessor();
services.AddApplicationInsightsTelemetry(instrumentationKey);
services.AddSingleton<ITelemetryInitializer, CloudRoleNameTelemetryInitializer>();
services.AddSingleton<ITelemetryInitializer, UserAgentHeaderTelemetryInitializer>();
Expand Down

0 comments on commit 53f5e06

Please # to comment.