-
Notifications
You must be signed in to change notification settings - Fork 62
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
Output on console #33
Comments
Thanks for reporting @davidebettio, Could you confirm that this was not the case prior to the |
Yes, prior to the version |
I'm seeing the same thing in my console but with |
I think I found the issue. The Release code is compiled using the "TRACE" define: This is telling the low level socket library to output trace information, specifically in the method "SendTo" (https://github.com/DataDog/dogstatsd-csharp-client/blob/master/src/StatsdClient/StatsdUDP.cs#L86) as per the following documentation: https://msdn.microsoft.com/en-us/library/eae4f5y0(v=vs.110).aspx
If you read the documentation, you can see how setting the TRACE constant will enable the tracing: https://msdn.microsoft.com/en-us/library/64yxa344(v=vs.110).aspx The solution is easy enough: remove the "TRACE" from Release builds. I made a PR: #34 I tried the solution by compiling without the trace and linking against my program and it works, no more trace info is being output. |
With versions 2.2.0 every time is there a call to:
DogStatsd.Counter
in console I see these strings:
The text was updated successfully, but these errors were encountered: