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
We use Ktor Client in our gateway together with Logbook and OpenTelemetry plugins.
In case of requesting large files a deadlock appears.
If you remove one of the plugins - it works fine.
I made some investigation, but didn't find how to fix it.
Logbook is stuck here. It waits for new data in body and never ends waiting.
OpenTelemetry is stuck here. It waits for the request to be finished.
I assume that its a problem of the Logbook, but can't be sure. Tell me in case its not - I'll go to the otel guys.
One more thing to consider - the Logbook does this split of channels even if I don't need to log body. Can't be the solution for the deadlock, but a good thing to fix. here
Expected Behavior
Large files can be also fetched using Ktor client + Logbook + OTel
Description
We use Ktor Client in our gateway together with Logbook and OpenTelemetry plugins.
In case of requesting large files a deadlock appears.
If you remove one of the plugins - it works fine.
I made some investigation, but didn't find how to fix it.
Logbook is stuck here. It waits for new data in body and never ends waiting.
OpenTelemetry is stuck here. It waits for the request to be finished.
I assume that its a problem of the Logbook, but can't be sure. Tell me in case its not - I'll go to the otel guys.
One more thing to consider - the Logbook does this split of channels even if I don't need to log body. Can't be the solution for the deadlock, but a good thing to fix. here
Expected Behavior
Large files can be also fetched using Ktor client + Logbook + OTel
Actual Behavior
Deadlock appears
Possible Fix
I haven't found one
Steps to Reproduce
Context
Tried to use Ktor Client and log each request using the Logbook client
Your Environment
All the details are in the repo I attached
The text was updated successfully, but these errors were encountered: