Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore original behavior by always creating a span (#3005)
In the original implementation of celery trace propagation we had code to only create a span for the task if it was NOT started by Celery Beat (because there is no transaction created in the beat process, so also not span should be created). See this code: https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/celery.py#L187-L200 Turns out this has never worked and task_started_from_beat has always been False meaning a span was ALWAYS created. (This did never break anything or caused any troube. When looking into a transaction less future this is also absolutely fine.) So this PR restores now the original behavior by always creating a span.
- Loading branch information