Skip to content

Python CeleryIntegration accumulates baggage header data on retry #2916

Closed

Description

@tomas-sk

How do you use Sentry?

Sentry Saas (sentry.io)

Version

1.41.0

Steps to Reproduce

  1. Retry celery task within sentry transaction
  2. Each retry appends one duplicate of sentry baggage data

See attached python reproduction steps.
sentry_celery_baggage_py.txt

Expected Result

Make CeleryIntegration, possible other not duplicate baggage headers.

Actual Result

sentry_celery_baggage_log.txt

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Mar 27, 2024
  2. antonpirker commented on Apr 2, 2024

    @antonpirker
    Contributor

    Hey @tomas-sk, thanks for reporting this! Yea, this should not happen.

  3. self-assigned this
    on Apr 22, 2024
  4. antonpirker commented on May 10, 2024

    @antonpirker
    Contributor

    Hey @tomas-sk ! This problem has been fixed in #2993

    Can you confirm this is now also solved for you update to the newest SDK version? (I know it is a major version bump, but if you do not use Hub or configure_scope than it should be fully backwards compatible)

  5. antonpirker commented on Jun 6, 2024

    @antonpirker
    Contributor

    This issue is fixed.

    As @tomas-sk never got back, I also assume it is working for them now.

  6. ghost added on Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions