Skip to content

Conversation

@rewinfrey
Copy link

This patch relaxes the Int type constraints on gauge and histogram reporting functions. As far as I can tell, there is no reason to confine these reporting metrics to Int, as statsd does not impose a type restriction on the value of those metrics.

I've left count and timing unchanged, as those use cases seem to rely on Int and Millisecond respectively, and it's not immediately clear what relaxing those type constraints might have on statsd operations.

Rick Winfrey added 2 commits February 1, 2017 11:12
- Count could also be made generic over Num instances, but left it as
is.
- Statsd supports Num instances for the various types.
- Motivating use case for this patch is wanting to send float values
for a gauge metric.
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.

1 participant