I have two project Web app and Web API. I have integrated application insight to them simply by right-click on my project and choosing option configure application insight
. I can see my live metrics
working fine but in the Overview
page I don't see any movement in graphs. I have attached the screenshot of the not-working-graph.
I just noticed that when i am integrating application normally as stated above then its working fine but when i am trying to change the application insight by changing the key of application insight at specific location then the issue is creating. Can anyone help me why its working differently just by changing the application key?
CodePudding user response:
In general, The Instrumentation Key is the bridge that binds your application to Application Insights through which you monitor all the changes that occur in your application.
Instrumentation Key is the key integration point between your application and the Application Insights. If you create the Application Insights directly using Visual Studio; Visual Studio takes care of linking between your application and the key.
So changing the Instrumentation key from Application insights can make the live metrics work differently since the link is broken. If you are trying to add another resource's i.e., Application insights' instrumentation key (depending upon your business requirement), then you can see that the metrics get logged in that resource.
REFERENCES: ABHIJIT JANA - Instrumentation key in application insights