File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 22The Celery integration will trace all tasks that are executed in the
33background. Functions and class based tasks are traced only if the Celery API
44is used, so calling the function directly or via the ``run()`` method will not
5- generate traces. On the other hand , calling ``apply()``, ``apply_async()`` and ``delay()``
5+ generate traces. However , calling ``apply()``, ``apply_async()`` and ``delay()``
66will produce tracing data. To trace your Celery application, call the patch method::
77
88 import celery
@@ -22,13 +22,7 @@ def run(self):
2222
2323To change Celery service name, you can use the ``Config`` API as follows::
2424
25- from ddtrace import Pin
26-
27- app = celery.Celery()
28-
29- @app.task
30- def compute_stats():
31- pass
25+ from ddtrace import config
3226
3327 # change service names for producers and workers
3428 config.celery['producer_service_name'] = 'task-queue'
You can’t perform that action at this time.
0 commit comments