Skip to content

Time unit mismatch in statsd metrics Observe() #608

@esenac

Description

@esenac

Hi @peterbourgon!
We are using statsd for metrics, and it seems we found a mismatch in time units between metrics/statsd.Timingand metrics.Timer.
Timer's ObserveDuration method calculate the elapsed time in seconds and passes it to the underlying Histogram's Observe method, that in case of statsd.Timing requires the parameter in milliseconds.
It would be nice to have the chance to specify the time unit measure for ObserveDuration in Timer constructor or at least to be compliant with the underlying method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions