Revert "Revert "temp: trace celery tasks in dd"" (#34563)

* Revert "Revert "temp: trace celery tasks in dd (#34537)" (#34553)"

This reverts commit a7b441690d.

* docs: Update removal date on temporary celery flag.
This commit is contained in:
Diana Huang
2024-04-22 11:05:50 -04:00
committed by GitHub
parent ef7fbf4c43
commit ebe36a2957

View File

@@ -19,6 +19,15 @@ over older code, and there is probably a better mechanism to be had.)
from celery import Celery
# TEMP: This code will be removed by ARCH-BOM on 4/23/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
# WARNING: Do not refer to this unless you are cms.celery or
# lms.celery. See module docstring!
APP = Celery('proj')