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

temp: add dd trace to celery #612

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading