-
Notifications
You must be signed in to change notification settings - Fork 0
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
[receiver/statsdreceiver] Add support for parsing dogstatsd multi value lines #1
base: main
Are you sure you want to change the base?
[receiver/statsdreceiver] Add support for parsing dogstatsd multi value lines #1
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm overall if we want to just unblock stuff, it doesn't seem that the existing code is careful to avoid allocs anyway
return res, nil | ||
} | ||
|
||
func (i *statsDMetricIter) ForEachValue(f func(m statsDMetric)) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Maybe add a reason why both All and ForEachValue exist? (call out that foreachvalue avoids heap allocs?)
Description
dogstatsd v1.1 protocol allows specifying multiple values in a single datagram. This adds support for multiple values, converting them into multiple metrics with a single value each.
Testing
Added unit tests coverage for parsing multiple values
Documentation
None added