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

feat: temp instrument celery with DD #258

Closed
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion ecommerce_worker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""init"""

__version__ = '3.3.5'
__version__ = '3.3.6'
9 changes: 9 additions & 0 deletions ecommerce_worker/celery_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
from ecommerce_worker.configuration import CONFIGURATION_MODULE


# 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

# Set the default configuration module, if one is not aleady defined.
os.environ.setdefault(CONFIGURATION_MODULE, 'ecommerce_worker.configuration.local')

Expand Down
Loading