DataDog / datadog-go

go dogstatsd client library for datadog
MIT License
353 stars 132 forks source link

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

Closed iksaif closed 1 year ago

iksaif commented 1 year ago

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