How to disable NewRelic by configuration in .NET

Documentation NewRelic agent for .NET reports

You can also configure two parameters in the application configuration file: the name of the application and the logical flag to enable or disable the agent.

The first parameter is simple and documented:

<appSettings>
  <add key="NewRelic.AppName" value="MyApplicationName" />
</appSettings>

But I can not find the name of the parameter that is used to disable the agent.

+4
source share
2 answers

You can use this tag:

<add key="NewRelic.AgentEnabled" value="true" />

Hope this helps

+13
source

If you want to disable the new relic for all applications, you can do the following:

<configuration xmlns="urn:newrelic-config"
  agentEnabled="false"
  maxStackTraceLines="50"
  timingPrecision="high">

Be sure to run iisreset after making any change to make sure the changes are selected.

+3

All Articles