hashicorp / go-metrics

A Golang library for exporting performance and runtime metrics to external metrics systems (i.e. statsite, statsd)
MIT License
1.46k stars 177 forks source link

Add GaugeFloat64 API #151

Closed biazmoreira closed 1 year ago

biazmoreira commented 1 year ago

This adds a new API to send and store gauge metrics as float64s. Previously, they were being stored as float32s which isn't enough precision for storing unix timestamps.

Related issue: https://github.com/hashicorp/vault/issues/19594 and https://github.com/hashicorp/go-metrics/issues/150

heatherezell commented 1 year ago

Fixes https://github.com/hashicorp/vault/issues/19594