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
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhaugh committed Apr 22, 2024
1 parent dc9a59a commit 4d36c3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions registrar/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 4d36c3e

Please sign in to comment.