Reputation: 8339
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.
Upvotes: 4
Views: 1677
Reputation: 643
If you want to disable New Relic for all applications you can do the following:
<configuration xmlns="urn:newrelic-config"
agentEnabled="false”
maxStackTraceLines="50"
timingPrecision="high">
Make sure to run an iisreset after making either change to make sure the change is picked up.
Upvotes: 3
Reputation: 2910
You can use this tag:
<add key="NewRelic.AgentEnabled" value="true" />
Hope this helps
Upvotes: 13