Skip to content
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

Merged
merged 3 commits into from
Dec 24, 2015
Merged

Scale #294

merged 3 commits into from
Dec 24, 2015

Conversation

jozic
Copy link
Contributor

@jozic jozic commented Dec 1, 2015

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

@dpsoft
Copy link
Contributor

dpsoft commented Dec 4, 2015

@jozic looks good to me! @ivantopo WDYT?

@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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?

@ivantopo
Copy link
Contributor

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!

@jozic
Copy link
Contributor Author

jozic commented Dec 15, 2015

no problem @ivantopo :)
i will send a PR with updates for docs soon

@jozic
Copy link
Contributor Author

jozic commented Dec 19, 2015

@ivantopo ping

dpsoft added a commit that referenced this pull request Dec 24, 2015
@dpsoft dpsoft merged commit 09ad0ba into kamon-io:master Dec 24, 2015
@dpsoft
Copy link
Contributor

dpsoft commented Dec 24, 2015

hey @jozic!!! Again, thanks for such a great job! and we discussed with @ivantopo and we think that the PR is really good, then we will merge...

BTW: waiting for docs.

@jozic jozic deleted the scale branch December 24, 2015 17:03
dpsoft added a commit that referenced this pull request Dec 4, 2016
ivantopo pushed a commit that referenced this pull request Mar 9, 2020
ivantopo pushed a commit that referenced this pull request Mar 29, 2020
ivantopo pushed a commit that referenced this pull request Mar 29, 2020
ivantopo pushed a commit that referenced this pull request Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow kamon-statsd and kamon-datadog users to define a scale value when reporting data.
3 participants