You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is the correct behavior. It should actually be a span link - according to the docs:
Links exist so that you can associate one span with one or more spans, implying a causal relationship. For example, let’s say we have a distributed system where some operations are tracked by a trace.
Which is exactly this case.
When a web framework triggers a celery task, it shouldn't be on the same trace. It's already a new one... But they are linked through the span link.
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered:
To add to the agreement, note that this is the behaviour speciified in the OpenTelemetry Semantic Conventions for Messaging Spans (see "Trace structure" and "Examples")
Describe your environment
Currently, the celery task that is executing gets the context from the headers, and attaches it to the new span:
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-celery/src/opentelemetry/instrumentation/celery/__init__.py
Lines 173 to 180 in e3ba54b
I don't think this is the correct behavior. It should actually be a span link - according to the docs:
Which is exactly this case.
When a web framework triggers a celery task, it shouldn't be on the same trace. It's already a new one... But they are linked through the span link.
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: