DataDog / datadog-go

go dogstatsd client library for datadog
MIT License
351 stars 134 forks source link

aggregator: avoid extra-locking in bufferedMetric.sample() #288

Closed iksaif closed 10 months ago

iksaif commented 10 months ago

We need to take the lock only if the metric doesn't exist, this should remove a lot of extra contention.