Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn off Application Insights

I'm working on a web application which is sending thousands of requests with application insights.

Where is Application Insights turned on and off from?

like image 220
Bryan Avatar asked Aug 28 '15 06:08

Bryan


People also ask

How do I disable dependency tracking in Insights?

If you want to switch off the standard dependency tracking module, remove the reference to DependencyTrackingTelemetryModule in ApplicationInsights. config for ASP.NET applications.

What is Azure application Insights?

Application Insights is an extension of Azure Monitor and provides Application Performance Monitoring (also known as “APM”) features. APM tools are useful to monitor applications from development, through test, and into production in the following ways: Proactively understand how an application is performing.

How do I enable applications Insights NET application?

Open your project in Visual Studio. Go to Project > Add Application Insights Telemetry. Choose Azure Application Insights, then select Next. Choose your subscription and Application Insights instance (or create a new instance with Create new), then select Next.


1 Answers

Where is exactly turned on I don't know, but I guess that you are looking for a way to feature toggle application insights, and to do so in your Application_Start you could do:

TelemetryConfiguration.Active.DisableTelemetry = true;

Doing this you'll stop sending telemetry info.

I hope this help, if it doesn't please let us know what you tried so I could have a better understanding of your question.

For more information you can check their documentation here. The section about Custom Initializers is also quite interesting and maybe will help you as well.

like image 106
Pliyo Avatar answered Nov 15 '22 23:11

Pliyo