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 have a python project with fastapi auto-instrumentation which export the spans to zipkin server, and I have a simple "GET" API which returns a "hello". But I notice it generates 3 spans instead of 1.
As you can see, the top one is related to the request I send out. But the other 2 child spans, I am not sure why they are there.
What is the expected behavior?
Exactly one span related to the API get executed.
What is the actual behavior?
Besides the span relates to the API got executed, there are 2 extra spans are generated.
Additional context
I am suspecting this is related to the ASGI interfaces since the extra span has "send" in it which related to sending response back. But shouldn't it be a single "send" instead two?
I feel like there could some missing link regarding certain concept. I am looking forward to hearing from your suggestions.
Thanks for your time!
The text was updated successfully, but these errors were encountered:
Hi open-telemetry community,
I have a python project with fastapi auto-instrumentation which export the spans to zipkin server, and I have a simple "GET" API which returns a "hello". But I notice it generates 3 spans instead of 1.
As you can see, the top one is related to the request I send out. But the other 2 child spans, I am not sure why they are there.
Describe your environment
python = 3.8
opentelemetry-api = 1.7.1
opentelemetry-sdk = 1.7.1
opentelemetry-exporter-zipkin = 1.7.1
opentelemetry-instrumentation-fastapi = 0.26b1
fastapi = 0.70.0
uvicorn = 0.15.0
Steps to reproduce
Here is the REST request I made:
Here is the JSON span metadata:
What is the expected behavior?
Exactly one span related to the API get executed.
What is the actual behavior?
Besides the span relates to the API got executed, there are 2 extra spans are generated.
Additional context
I am suspecting this is related to the ASGI interfaces since the extra span has "send" in it which related to sending response back. But shouldn't it be a single "send" instead two?
I feel like there could some missing link regarding certain concept. I am looking forward to hearing from your suggestions.
Thanks for your time!
The text was updated successfully, but these errors were encountered: