Title: Celery logs filtered out · Issue #5689 · getsentry/sentry-python · GitHub
Open Graph Title: Celery logs filtered out · Issue #5689 · getsentry/sentry-python
X Title: Celery logs filtered out · Issue #5689 · getsentry/sentry-python
Description: How do you use Sentry? Self-hosted/on-premise Version 2.55.0 Steps to Reproduce Set up a Django app using Celery and sentry-sdk, passing enable_logs=True to sentry_sdk.init() Trigger a celery task Observe a log in Sentry for task receive...
Open Graph Description: How do you use Sentry? Self-hosted/on-premise Version 2.55.0 Steps to Reproduce Set up a Django app using Celery and sentry-sdk, passing enable_logs=True to sentry_sdk.init() Trigger a celery task ...
X Description: How do you use Sentry? Self-hosted/on-premise Version 2.55.0 Steps to Reproduce Set up a Django app using Celery and sentry-sdk, passing enable_logs=True to sentry_sdk.init() Trigger a celery task ...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/5689
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Celery logs filtered out","articleBody":"### How do you use Sentry?\n\nSelf-hosted/on-premise\n\n### Version\n\n2.55.0\n\n### Steps to Reproduce\n\n1. Set up a Django app using Celery and sentry-sdk, passing `enable_logs=True` to `sentry_sdk.init()`\n2. Trigger a celery task\n3. Observe a log in Sentry for task received (of the format `Task {task_name}[{uuid}] received`) but not for task succeeded (of the format `Task {task_name}[{uuid}] succeeded in {duration}: {data}`)\n4. Observe a log via traditional Python logging mechanism (or Celery stdout/etc) for both task received and task succeeded\n\nI believe this is caused by the `ignore_logger` invocation in `./sentry_sdk/integrations/celery/__init__.py:CeleryIntegration.setup_once`:\n\n```python\nclass CeleryIntegration(Integration):\n ...\n @staticmethod\n def setup_once() -> None:\n ...\n ignore_logger(\"celery.app.trace\")\n```\n\n### Expected Result\n\nThe following logs in Sentry Logs:\n\n```\nTask {task_name}[{uuid}] received\nTask {task_name}[{uuid}] succeeded in {duration}: {data}\n```\n\n### Actual Result\n\nThe following logs in Sentry Logs:\n\n```\nTask {task_name}[{uuid}] received\n```","author":{"url":"https://github.com/davidjmemmett","@type":"Person","name":"davidjmemmett"},"datePublished":"2026-03-18T10:16:31Z","url":"https://github.com/getsentry/sentry-python/issues/5689"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c057471-dc31-b1f4-9aeb-5f9d7770038a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E96C:928E2:870315:B632A0:6B00E317 |
| html-safe-nonce | 2bebf1862dd0ac941f0a4fb7d12a7cf59c61b43132fab8960af033601755e621 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTZDOjkyOEUyOjg3MDMxNTpCNjMyQTA6NkIwMEUzMTciLCJ2aXNpdG9yX2lkIjoiNjMxOTc3MjQzNzcwOTkwNjcxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 87d86e71ad458fb963a597190a965a491e01e06f0d2545f22e28695fe54b0059 |
| hovercard-subject-tag | issue:4094128125 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-python/5689/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e930abd209245f654b1a284ef7033e786be8d5e6e5fd2884765361ecc2023a3/getsentry/sentry-python/issues/5689 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e930abd209245f654b1a284ef7033e786be8d5e6e5fd2884765361ecc2023a3/getsentry/sentry-python/issues/5689 |
| og:image:alt | How do you use Sentry? Self-hosted/on-premise Version 2.55.0 Steps to Reproduce Set up a Django app using Celery and sentry-sdk, passing enable_logs=True to sentry_sdk.init() Trigger a celery task ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidjmemmett |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-python git https://github.com/getsentry/sentry-python.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 137814779 |
| octolytics-dimension-repository_nwo | getsentry/sentry-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 137814779 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width