From 4d36c3ebc3756f1f91ff4ce2c32fbbf5229960bf Mon Sep 17 00:00:00 2001 From: connorhaugh <49422820+connorhaugh@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:50:07 -0400 Subject: [PATCH] temp: add dd trace to celery --- registrar/celery.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/registrar/celery.py b/registrar/celery.py index a33f0ce64..aec535557 100644 --- a/registrar/celery.py +++ b/registrar/celery.py @@ -4,6 +4,14 @@ from celery import Celery +# TEMP: This code will be removed by ARCH-BOM on 4/22/24 +# ddtrace allows celery task logs to be traced by the dd agent. +# TODO: remove this code. +try: + from ddtrace import patch + patch(celery=True) +except ImportError: + pass app = Celery('registrar')