Import name: sentry_sdk.integrations.celery.CeleryIntegration

The celery integration adds support for the Celery Task Queue System.

Just add CeleryIntegration() to your integrations list. The integration does not accept any arguments and will automatically report errors from all Celery tasks:

import sentry_sdk
from sentry_sdk.integrations.celery import CeleryIntegration


Additionally, the Sentry Python SDK will set the transaction on the event to the task name, and it will improve the grouping for global Celery errors such as timeouts.

In this guide