Browse Source

chore: update datadog to v0.49.1 (#68644)

We have seen cases where datadog is a performance bottleneck in several
celery tasks.

Ref: https://github.com/getsentry/team-processing/issues/144

---------

Co-authored-by: anthony sottile <103459774+asottile-sentry@users.noreply.github.com>
Yagiz Nizipli 11 months ago
parent
commit
4942519319

+ 1 - 1
requirements-base.txt

@@ -9,7 +9,7 @@ click>=8.1
 confluent-kafka>=2.3.0
 croniter>=1.3.10
 cssselect>=1.0.3
-datadog>=0.44
+datadog>=0.49
 django-crispy-forms>=1.14.0
 django-csp>=3.8
 django-pg-zero-downtime-migrations>=0.13

+ 1 - 1
requirements-dev-frozen.txt

@@ -36,7 +36,7 @@ croniter==1.3.10
 cryptography==42.0.4
 cssselect==1.0.3
 cssutils==2.9.0
-datadog==0.44.0
+datadog==0.49.1
 distlib==0.3.8
 distro==1.8.0
 django==5.0.3

+ 1 - 1
requirements-frozen.txt

@@ -30,7 +30,7 @@ croniter==1.3.10
 cryptography==42.0.4
 cssselect==1.0.3
 cssutils==2.9.0
-datadog==0.44.0
+datadog==0.49.1
 distro==1.8.0
 django==5.0.3
 django-crispy-forms==1.14.0

+ 4 - 0
src/sentry/metrics/dogstatsd.py

@@ -15,6 +15,10 @@ class DogStatsdMetricsBackend(MetricsBackend):
         initialize(**kwargs)
         statsd.disable_telemetry()
         statsd.disable_buffering = False
+        # Origin detection is enabled after 0.45 by default.
+        # Disable it since it silently fails.
+        # Ref: https://github.com/DataDog/datadogpy/issues/764
+        statsd._container_id = None
         super().__init__(prefix=prefix)
 
     def incr(