Skip to content

Conversation

@szokeasaurusrex
Copy link
Member

This change ensures that we only propagate trace headers from spans that are within a transaction. This fixes a bug where any child transactions of a span created outside a transaction are missing a dynamic sampling context and are part of a trace missing a root transaction (because the root is the span).

Fixes #3068

@antonpirker
Copy link
Contributor

This breaks now a lot of tests because they assume sentry-trace to be there, when there is no transaction it seems...

@szokeasaurusrex szokeasaurusrex changed the title feat(tracing): Only propagate headers from spans within transactions fix(tracing): Only propagate headers from spans within transactions May 15, 2024
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/no-propagation-transactionless-spans branch from e42bac5 to a1d0c76 Compare May 15, 2024 12:52
This change ensures that we only propagate trace headers from spans that are within a transaction. This fixes a bug where any child transactions of a span created outside a transaction are missing a dynamic sampling context and are part of a trace missing a root transaction (because the root is the span).

Also, remove/modify tests that were asserting the old behavior.

Fixes #3068
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/no-propagation-transactionless-spans branch from a1d0c76 to 94a6c2a Compare May 15, 2024 13:01
Copy link
Contributor

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamic sampling context might be missing from Celery Beat transactions

3 participants