Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to to disable NewRelic by configuration in.NET

Tags:

.net

newrelic

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.

like image 455
Mac Avatar asked Dec 04 '22 08:12

Mac


1 Answers

You can use this tag:

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

Hope this helps

like image 50
felipekm Avatar answered Jan 03 '23 10:01

felipekm