OkHttp 5.0 has a stable API. 🗿
https://square.github.io/okhttp/changelogs/changelog/#version-500
https://square.github.io/okhttp/changelogs/changelog/#version-500
@leandrofavarin yep!
Here's our motivating use-case:
1. An EventListener collects trace IDs from a ThreadLocal when a call starts. It attaches them to the Call.
2. An Interceptor propagates the trace IDs as request headers.
Step 1 always runs on an application thread. Step 2 runs on either an application thread (with Call.execute) or a dispatcher thread (Call.enqueue).