There’s other agents that support some variety of launch parameters and/or environmental variable conformance as to whether the New Relic agent runs or not.
.NET core relies on reading a XML file.
It should read from this in a tiered structure (similar to how AWS would get credentials), with the environment variable overriding the configuration file.
For anyone reading and wanting a workaround - we ultimately decided on it was easier to completely bypass the agent installation on envs that we did not want the agent running.
New Relic Edit
- I want this too
- I have more info to share (reply below)
- I have a solution for this
We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.