Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewqian2001datadog committed Dec 12, 2024
1 parent 3725fca commit 2f8c3fe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions datadog/dogstatsd/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def _flush_thread_loop(self, flush_interval):
if not self._disable_aggregation:
self.flush_aggregated_metrics()
# Histograms, Distribution and Timing metrics are not aggregated
self.flush_buffered_metrics()
# self.flush_buffered_metrics()
if not self._disable_buffering:
self.flush_buffered_metrics()
self._flush_thread = threading.Thread(
Expand Down Expand Up @@ -1129,10 +1129,12 @@ def _report(self, metric, metric_type, value, tags, sample_rate, timestamp=0):
)

# Send it
if metric_type in {MetricType.DISTRIBUTION, MetricType.HISTOGRAM, MetricType.TIMING}:
self._send_to_buffer(payload)
else:
self._send(payload)
# if metric_type in {MetricType.DISTRIBUTION, MetricType.HISTOGRAM, MetricType.TIMING}:
# self._send_to_buffer(payload)
# else:
# self._send(payload)

self._send(payload)

def _reset_telemetry(self):
self.metrics_count = 0
Expand Down

0 comments on commit 2f8c3fe

Please sign in to comment.