DataDog / dogstatsd-csharp-client

A DogStatsD client for C#/.NET
datadoghq.com
Other
94 stars 62 forks source link

statsd: support sending counters and gauges with timestamp. #185

Closed remeh closed 2 years ago

remeh commented 2 years ago

This PR adds the timestamp parameter to Gauge() and Counter().

Metrics sent with a timestamp to the DogStatsD server will be directly sent to the intake with no aggregation done server-side.

Even if the client side aggregation is enabled, metrics submitted with a timestamp won't go through any aggregation, they will be written in the serialization buffer as-is.