-
Notifications
You must be signed in to change notification settings - Fork 327
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
Scale #294
Scale #294
Conversation
@@ -33,6 +33,7 @@ object Counter { | |||
trait Snapshot extends InstrumentSnapshot { | |||
def count: Long | |||
def merge(that: InstrumentSnapshot, context: CollectionContext): Counter.Snapshot | |||
def scale(from: UnitOfMeasurement, to: UnitOfMeasurement): Counter.Snapshot |
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.
Not sure if this should be part of InstrumentSnapshot... I clearly see histograms and gauges being scaled depending on their units, but min-max-counters and regular counters shouldn't be scaled.. wdyt?
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.
can't one have, say, regular counters with Memory or Time units?
hey @jozic! Again, thanks for such a great job! There are just a few things to settle but you got the right approach :).. I'm sorry that I have been a bit away (well, more than a bit to be honest), but let's get this done! |
no problem @ivantopo :) |
@ivantopo ping |
supersedes #288 and fixes #111
@ivantopo @dpsoft please review
if this looks okay, i will send another pr to kamon-io/kamon.io to update docs for statsd and datadog