Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
temp: add dd trace to celery (#612)
Browse files Browse the repository at this point in the history
* temp: add dd trace to celery

* feat: lint
  • Loading branch information
connorhaugh authored Apr 23, 2024
1 parent dc9a59a commit 14992ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions registrar/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14992ba

Please sign in to comment.