Skip to content

Commit

Permalink
add aggregation to increment
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewqian2001datadog committed Jul 29, 2024
1 parent 974e496 commit 79c3937
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datadog/dogstatsd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,10 @@ def increment(
>>> statsd.increment("page.views")
>>> statsd.increment("files.transferred", 124)
"""
self._report(metric, "c", value, tags, sample_rate)
if self._disable_aggregating:
self._report(metric, "c", value, tags, sample_rate)
else:
self.aggregator.count(metric, value, tags, sample_rate)

def decrement(
self,
Expand Down

0 comments on commit 79c3937

Please sign in to comment.