Title: Huey integration fails with chords and groups · Issue #6310 · getsentry/sentry-python · GitHub
Open Graph Title: Huey integration fails with chords and groups · Issue #6310 · getsentry/sentry-python
X Title: Huey integration fails with chords and groups · Issue #6310 · getsentry/sentry-python
Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.47.0 Steps to Reproduce Create a consumer that uses Huey 3 and the Sentry Python SDK with default configuration. Create a huey group: task_group = huey.group([one_task, another_tas...
Open Graph Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.47.0 Steps to Reproduce Create a consumer that uses Huey 3 and the Sentry Python SDK with default configuration. Create a huey group: task_g...
X Description: How do you use Sentry? Sentry Saas (sentry.io) Version 2.47.0 Steps to Reproduce Create a consumer that uses Huey 3 and the Sentry Python SDK with default configuration. Create a huey group: task_g...
Opengraph URL: https://github.com/getsentry/sentry-python/issues/6310
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Huey integration fails with chords and groups","articleBody":"### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Version\n\n2.47.0\n\n### Steps to Reproduce\n\n1. Create a consumer that uses Huey 3 and the Sentry Python SDK with default configuration.\n2. Create a [huey group](https://huey.readthedocs.io/en/latest/guide.html#groups-and-chords):\n\n`task_group = huey.group([one_task, another_task])`\n\n3. Enqueue the group.\n\n`huey.enqueue(task_group)`\n\n4. Huey integration raises an exception.\n\n> File \"/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/huey.py\", line 62, in _sentry_enqueue\n name=task.name,\n ^^^^^^^^^\n>AttributeError: 'chord' object has no attribute 'name'\n\n5. Looking at https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/huey.py#L60 a span is created which assumes enqueue is called only with tasks, as it expects a `name` attribute. This is not true for [chord](https://github.com/coleifer/huey/blob/9199e8c60fd1c3dfcc080a4fb62502cbf46d3c1a/huey/api.py#L1156) and [group](https://github.com/coleifer/huey/blob/9199e8c60fd1c3dfcc080a4fb62502cbf46d3c1a/huey/api.py#L1140).\n\n```\nwith sentry_sdk.start_span(\n op=OP.QUEUE_SUBMIT_HUEY,\n name=task.name,\n origin=HueyIntegration.origin,\n ):\n```\n\n### Expected Result\n\nThe Huey integration should support group and chord, and not explode. 😄 The error in sentry also obscures the fact that the exception is actually inside the sentry sdk, and not in user code.\n\n### Actual Result\n\n> File \"/app/.venv/lib/python3.13/site-packages/sentry_sdk/integrations/huey.py\", line 62, in _sentry_enqueue\n name=task.name,\n ^^^^^^^^^\n>AttributeError: 'chord' object has no attribute 'name'","author":{"url":"https://github.com/niklas-chimney","@type":"Person","name":"niklas-chimney"},"datePublished":"2026-05-20T19:17:29Z","url":"https://github.com/getsentry/sentry-python/issues/6310"}
| 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:64aed459-7e21-566c-9fbb-f089acbc5c73 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA24:2DBB21:2917DF:385752:6B00C36C |
| html-safe-nonce | 9b12c4d927a6d69ac297c58e142baffe092819908048ab4f318a2e2564c30fd4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTI0OjJEQkIyMToyOTE3REY6Mzg1NzUyOjZCMDBDMzZDIiwidmlzaXRvcl9pZCI6IjM3OTM2ODE0Mzk2NzgwNTUyNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e707cf1e5e806fdbf8f6d5626d421bb68c3a5831d09ff473002f6c127e5c48cf |
| hovercard-subject-tag | issue:4489256459 |
| 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/6310/issue_layout |
| twitter:image | https://opengraph.githubassets.com/33496aa6fd0fed0f3d90c831f8794f010d2d2a1114aefea0ab17f262e6756e88/getsentry/sentry-python/issues/6310 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/33496aa6fd0fed0f3d90c831f8794f010d2d2a1114aefea0ab17f262e6756e88/getsentry/sentry-python/issues/6310 |
| og:image:alt | How do you use Sentry? Sentry Saas (sentry.io) Version 2.47.0 Steps to Reproduce Create a consumer that uses Huey 3 and the Sentry Python SDK with default configuration. Create a huey group: task_g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | niklas-chimney |
| hostname | github.com |
| expected-hostname | github.com |
| None | 93edd3bebc4afb7ce711ee74cb5d2a95927850b082a4d43e212222389cb1c415 |
| 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 | 1fee81a280ea86312b69448e261b418189bfd5b5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width