-
Notifications
You must be signed in to change notification settings - Fork 598
Closed
Labels
BugFeature: PerformanceIntegration: CeleryTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Description
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
sentry-python==1.0.0
Steps to Reproduce
https://gist.github.com/wmak/fffab40bdbe5329f2ef8bd0a4ff44659
- Repro project attached, a very basic flask app with an endpoint that starts a celery task + a celerybeat that starts the same task
- Setup the repro project
- Run redis on 6379
- Start the celery worker
celery -A main.celery worker - Start celery beat
celery -A main.celery beat --loglevel=INFO --pidfile='' - Wait for the task to be scheduled
Expected Result
I don't expect for celery tasks started by celerybeat to have the parent_span_id set to a span_id, especially when there isn't a corresponding transaction with that span to make the association, the repro attached here is flask + celerybeat. But also happens with Django + celerybeat
Actual Result
The parent_span_id was set in the trace context, so the transaction appears to be orphaned, when it in fact should be a root event instead

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugFeature: PerformanceIntegration: CeleryTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Fields
Give feedbackNo fields configured for issues without a type.