-
Notifications
You must be signed in to change notification settings - Fork 28
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
"Nothing to send" spam #10
Comments
Curious about this, too. I'm filtering it in |
This makes sense. Can you guys show me code that would make this more elegant? If we get into agreement on the API that should be exposed I would take a pull request (if appropriately tested and documented) thoughts? |
IMO the best approach is to simply remove the message. I don't think it's particularly useful. If you do think it's useful though, then perhaps add an |
Sam, if you implement this and send a pull request I'll merge it. Please keep the default behavior as is, since it's good to keep stability Reopen as a PR. Closed. |
Hey guys, I was working with Lynx and came across this same issue. After looking at the implementation of The way I'm interpreting the flow is that stats are sent through sampling no matter what (387), and then returned if they do not contain a sample (582). In the case of samples, they are either an empty object(585), or the actual stat with sample to be sent to statsd (596). So this error is thrown when there is no stat being sent to statsd whether or not it is sampled data (398). This is where my confusion with the implementation comes into play. I could understand in some cases where you are sending non sampled data, you may want to log that it has What I was hoping to gain here was some insight into the edge cases where you would want
All of which would need a bit of background on the types of use cases you are trying to support with Lynx. Is it important that consumers know when data was not sent? If users are sending their data via UDP then they are already taking the risk that their data may not reach the destination, and if they are using TCP then they will most likely be looking for some sort of handshake anyway. All in all, I would love to help resolve this, I'm just trying to make sense of the situations where you would want this to throw an error, and then use that information to put forth a solution. Thanks! |
Why is it considered an error if there's no stats to send? If you're sending metrics with a sample rate lower than 1.0, you end up with the message "Nothing to send" spamming console.log. Sure, I could set on_error to a no-op, or manually filter out this error, but it seems extraneous. Can we remove it?
The text was updated successfully, but these errors were encountered: