Disable Application Insights

I am working on a web application that sends thousands of requests with information about applications.

Where is Insights on and off?

+7
azure-application-insights
source share
5 answers

I don’t know exactly where it is turned on, but I assume that you are looking for a way to show application switching, and you can do this in your Application_Start:

TelemetryConfiguration.Active.DisableTelemetry = true; 

By doing this, you will stop sending telemetry information.

I hope this help, if that does not help, let us know what you tried so that I can better understand your question.

For more information, you can check your documentation here . The section on user initiators is also quite interesting and may help you.

+7
source share

The short answer is that in order to disable Application Insights telemetry, you need to set the DisableTelemetry flag to false.

However, you need to make sure that you set the flag in the correct TelemetryConfiguration instance. Therefore, if you are using TelemetryConfiguration other than TelemetryConfiguration.Active, you need to set a flag on this instance. It is also possible that the TelemetryConfiguration instance is used in the PerformanceCollectorModule telemetry module, which is different from the one your TelemetryClient uses.

Let's clarify a couple of things before moving on:

  • You see only elements related to Microsoft.ApplicationInsights.PerformanceCounter in the output window, or do you also see other elements?

  • How do you customize Application Insights? Are you using ApplicationInsights.config? Do you create your own TelemetryConfiguration instances and TelemetryClient instances? A code snippet demonstrating your initialization process will help a lot.

+3
source share

Does this question arise about how to disable Insight or disable application telemetry> ? Because the two answers above are about how to disable telemetry.

Actually, the application information on the azure portal interacts with your web application through applicationinsights.config. If you want to disable it, just set the key value to blank.

0
source share

To disable Application Insights, remove the module from the System.WebServer / Modules section in Web.config.

If you want to completely remove it, you must remove Application Insight NuGet packages and remove ApplicationInsights.config.

0
source share

I know that I'm late here. But maybe this will help someone else who comes across this thread.

I applied this solution to my project, which is located in ASP.NET MVC Core.

Please note that this disables application logging for all environments (development, production, production, etc.).

Follow the instructions of the attached image. This is easier to understand.

enter image description here

-one
source share

All Articles