-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NewRelic.Api.Agent.NewRelic.RecordMetric() spams in program debug output #3018
Comments
@Qtax Thank you for bringing this issue to our attention. The decompiled code you found that makes the By default, |
Thanks for clearing up how it's supposed to work. In our case I assume that the agent is not attached. But for development I think this is how we'd want it if possible. (Since most of the work our developers do does not need or relate to New Relic.)
We have not defined any trace listeners. And there are none configured from what I can see in any It seems that by default My guess is that the published Default Here's example of the apps own |
@Qtax Thanks for the additional info and the screenshots, they make it clear was the issue is. I am able to reproduce what you are seeing now (I was previously only looking at the actual console output from a test application run from the command line, not the "Debug" output window in Visual Studio when running the app from VS). We'll try to come up with a workaround. |
This is probably related somehow, if not the root cause of the issue (we can't see that we're setting TRACE enabled in the API assembly project, but it is probably turned on by default and we need to figure out how to disable it): dotnet/sdk#11530 |
Each time
NewRelic.Api.Agent.NewRelic.RecordMetric()
is called, we get a line in our programs output:How do we get rid of this? It gets really spammy and our applications output is getting filled with these.
This is in a .NET Framework MVC app (IIS hosted), with
NewRelic.Agent.Api
version 10.37.0 via NuGet.Below is a screenshot from a clean .NET Framework MVC project with an added
RecordMetric
call:The decompiled implementation of the called
RecordMetric()
is:Which clearly outputs
NewRelic.RecordMetric(name,value)
.We do not want any output when recording metrics.
The text was updated successfully, but these errors were encountered: