◐ Shell
clean mode source ↗

fix(huey): Fix group and chord handling in enqueue by ericapisani · Pull Request #6392 · getsentry/sentry-python

The Huey integration was not properly handling task groups and chords
when enqueuing. When a group/chord is enqueued, we would attempt to access the `name`
attribute of the group/chord object for the span. They don't have one,
causing an AttributeError.

Fixes PY-2426
Fixes #6310

cursor[bot]

sentry[bot]

Groups and chords weren't introduced until Huey 3.0,
so handle that gracefully.

cursor[bot]

@ericapisani

alexander-alderman-webb

@ericapisani ericapisani deleted the py-2426-fix-group-and-chord-handling branch

May 26, 2026 12:14

ericapisani added a commit that referenced this pull request

May 27, 2026
Builds on a bug fix (PY-2426/ #6392 )

Migrates the Huey integration to support the new spans-first tracing
lifecycle (`trace_lifecycle: "stream"`), while keeping full backwards
compatibility with the existing transaction-based path.

Fixes PY-2331 and #6029

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>