11

I'm running an MVC app in VS 2015. During debug mode, everything is work just fine until when I try to create new user.

The create form works also the save button. But the new data is not showing in the index but the new edit/details/delete is the index.

The output tell: Application Insights Telemetry (reconfigured):

{"name":"Microsoft.ApplicationInsights.Dev.PerformanceCounter","time":"2016-04-20T10:41:44.1380123+08:00","tags":{"ai.internal.sdkVersion":"1.2.3.490","ai.device.roleInstance":"KL-PT-049.icarasia.local","ai.application.ver":"Unknown","ai.device.type":"PC","ai.device.id":"KL-PT-049.icarasia.local","ai.device.oemName":"Hewlett-Packard","ai.device.model":"HP ProBook 4440s","ai.device.network":"Wireless80211","ai.device.language":"en-MY"},"data":{"baseType":"PerformanceCounterData","baseData":{"ver":2,"categoryName":"Processor","counterName":"% Processor Time","instanceName":"_Total","value":23.789436340332,"properties":{"DeveloperMode":"true"}}}}

I wonder is there any relation between create user and application insight telemetry? Thanks

Click here for picture

Prabhat Sinha
  • 1,500
  • 20
  • 32
Botski
  • 195
  • 2
  • 3
  • 13

1 Answers1

17

No, it is not related. You enabled Application Insights by installing nuget nuget packages but you did not configure it by providing an instrumentation key.

So in debug Application Insights telemetry is collected (in your case it is a performance counter) but it is not sent anywhere.

Application Insights Hub in VS 2015 listens to these events and provides nice UI for analyzing the events (View ->Other Windows->Application Insights Search).

If you like insights that provides you should create Azure resource and add iKey to application insights config (Getting Started). If you do not find it useful - uninstall nuget packages.

ΩmegaMan
  • 29,542
  • 12
  • 100
  • 122
Anastasia Black
  • 1,890
  • 9
  • 21
  • Yea, you're right. After couple times tracing from debug mode, it turns out the problem come from my stored procedure. Thanks – Botski Apr 21 '16 at 01:56
  • 1
    do you know what happens when App insights are enable but instrumentation key is not provided? is this dangerous in anyway? will the events / telemetry be simply dropped or will there be some buffer growing? Cannot find any definitive documentation on this... – Greg Bala Feb 08 '22 at 20:52
  • I had a similar issue I had hit the quota.. "Data collection stopped due to daily limit of free data reached" – Chris Lamothe Aug 09 '23 at 18:51