Disable .net agent

We want to implement Elastic APM only for some environments so we need a method to disable the agent.
For dotnet core it's pretty straight-forward since you can skip calling app.UseAllElasticApm(Configuration), but for .NET Framework 4.8 windows services I couldn't find a way to disable it, since for every Elastic.Apm.Agent.Tracer.StartTransaction() it tries to connect to Elastic APM.

Does anybody have an idea on how this can be done?

Thanks,
Radu

Hi @radudami,

right now there isn't a really good way to do it, but I'm actively working on an issue that would solve this.

Here is the plan on how this would work and this is the in-progress PR that implements it.

No promises, but the intention is that this will be in included in the next release.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.