asp.net mvc - Application Insights not showing data for Server Response Time, Server Requests or Failed Requests -


i have added application insights application.

after time, correctly seeing browser page load times, none of other graphs showing data @ all.

i see this:

missing server data

when expecting along lines of this:

what expecting

these 2 asp.net mvc 5 applications in same solution, , both deployed azure.

in both cases:

  1. i have correct javascript fragment in razor layout (and have verified via page source when viewing website both getting output, , request sent dc.services.visualstudio.com/v2/track);
  2. i have applicationinsights.config in web root;
  3. i setting correct instrumentation key during application startup, in application_start() method of global.asax.cs way of telemetryconfiguration.active.instrumentationkey = "the_key"

please note not have instrumentation key in applicationinsights.config file deploying website multiple times, , setting instrumentation key in accordance this advice.

i've reset (following add application insights sdk monitor asp.net app) still, after @ least 1/2 hour, not seeing server response time, server requests or failed requests.

how fix this?

following offline alex bulankou, i've resolved issue.

it difficult pinpoint precise combination caused issue, suspect due mismatched versions of application insights assemblies, malformed applicationinsights.config file , getting screwed between adding application insights via visual studio command , doing manually.

the ultimate path resolution to:

  1. remove microsoft.applicationinsights.* nuget packages project;
  2. delete existing applicationinsights.config file;
  3. re-add microsoft.applicationinsights.web nuget package only - install required dependencies, including fresh applicationinsights.config file (that doesn't have ikey, wanted - see below)
  4. my existing code set instrumentationkey via global.asax.cs remained unchanged

end result (i fixed @ 7am):

now tracking server requests


Comments