-
Notifications
You must be signed in to change notification settings - Fork 686
Fastapi: multiple http receive and send spans for single request #635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, are you using websockets by any chance? Could you please share a reproducible example we can try? |
not using websocket. Here is an example app
uploading a file of 400KB gives me the following spans:
|
This is per design I think: there are spans for each time data is received and sent (i.e. things are going over the wire). I think this is important because it would let you detect if for example the issue is a slow client. |
I also have a similar issue with a POST endpoint that uses JSON transmission. In the trace, there are multiple HTTP receive events. I suspect this might be because the request body is too large and exceeds the buffer size, or is it caused by something else?
|
I am using

opentelemetry-instrumentation-fastapi
. Everything works great except I get many small spans ofhttp receive
andhttp send
for a single request. (see the screenshot below) Is there a way to combine these spans?The text was updated successfully, but these errors were encountered: