Skip to content

Commit

Permalink
Fixed statsd histogram implementation (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanny24 authored Nov 7, 2018
1 parent dd5ca01 commit 2f42109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public StatsDHistogram(final StatsDClient client, final String name) {

@Override
public void update(final long value) {
// TODO: client.histogram() supports sample rate, what is recordSetValue?
client.recordSetValue(name, String.valueOf(value));
client.histogram(name, value);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public void testSendsValues() {
histogram.update(10);
}

verify(client, times(5)).recordSetValue(name, "10");
verify(client, times(5)).histogram(name, 10);
}
}

0 comments on commit 2f42109

Please sign in to comment.