No data in Application Insights for Sitecore instance?

It is a short article from the series “How is it possible that I missed that rows in the configuration?”

When we use Application Insights in Azure we usually have data about:

  • Logged errors
  • Failed Requests
  • Server response time
  • Server requests
  • etc

But in my instance, I had only information about logged errors and other warnings. My charts with data about requests were empty and it was looking in the following way:

I spent a few hours on searching for the solution. I tried solutions from StackOverflow but in my case, nothing worked.

So after another few hours of checking all the configs, I found out that the issue is a missing module from web.config file.

Rows responsible for adding data to Application Insights are:

<remove name="TelemetryCorrelationHttpModule" />			<add name="TelemetryCorrelationHttpModule" type="Microsoft.AspNet.TelemetryCorrelation.TelemetryCorrelationHttpModule, Microsoft.AspNet.TelemetryCorrelation" preCondition="integratedMode,managedHandler" />
			<remove name="ApplicationInsightsWebTracking" />			<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" />

The bolded one (one which was missing in my configuration) is responsible for telemetry data like number or time of the requests.

The second one is responsible for the errors and logs added to the AI.

After that change, my data appears on the charts!

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Łukasz Mieczkowski
Łukasz Mieczkowski
3 years ago

I know this is a pretty old article but keep in mind that it depends on the Application Insights lib’s version. The Microsoft.ApplicationInsights.Web NuGet package uses the Microsoft.AspNet.TelemetryCorrelation dependency since version 2.4.0.

For example, in Sitecore 8.2 I used Microsoft.ApplicationInsights.Web 2.2.0 and I was able to collect the telemetry data without the mentioned config entry.