diff --git a/registrar/celery.py b/registrar/celery.py index a33f0ce6..650e922f 100644 --- a/registrar/celery.py +++ b/registrar/celery.py @@ -5,6 +5,15 @@ 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') app.conf.task_protocol = 1