Search code examples
.netnewrelic

How to to disable NewRelic by configuration in.NET


The NewRelic agent documentation for .NET says

You can also configure two settings in your app's config file: the application's name and a boolean flag to enable or disable the agent.

The first parameter is easy and documented :

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

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


Solution

  • You can use this tag:

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

    Hope this helps