datadog-go icon indicating copy to clipboard operation
datadog-go copied to clipboard

statsd: support sending metrics with timestamp.

Open remeh opened this issue 3 years ago • 0 comments

Adds two methods GaugeWithTimestamp and CountWithTimestamp in the ClientInterface to support sending gauge and count with timestamp, for users aggregating metrics on their side and who can provide a timestamp for a given metric.

Metrics sent using GaugeWithTimestamp and CountWithTimestamp to the DogStatsD server will be directly sent to the intake with no aggregation done server-side.

If the client is created using WithClientSideAggregation(), no aggregation will be performed on metrics submitted with timestamp, they will be written in the serialization buffer as-is.

remeh avatar Jul 28 '22 09:07 remeh