Actually, there is no local AI instance
. By default, the data you see in visual studio -> Application Insights Search window
is from the current debug session
, the screenshot is as below:
Another thing is that if you specify a valid InstrumentationKey
, the data are always sending to application insights in azure portal(unless you setup firewall rule to block them).
For Angular web App, there is no way to just show the data in visual studio, but not sending to AI instance in azure.
Here are some suggestions just for your reference, but they cannot totally meet your requirement:
Solution 1: Sending data from Angular web App to AI instance in azure, then you can fetch these data from azure to visual studio locally. To do that, in the visual studio -> Application Insights Search window
, change the Debug session telemetry
to the AI instance in azure. Like below:
Solution 2: If you just don't want to send the data to Azure, you can use an invalid
InstrumentationKey
, and then open tools like fiddler
to see these telemetry data.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…