OkHttp MockWebServer 4.12.0 replaced the JDK test server as the local OTLP collector. It accepted the exporter's HTTP calls and retained paths and bodies. Those captures showed logs and metrics arriving, and later showed traces after exporter wiring was fixed.
- What worked
- The server bound a loopback port, recorded posts, and exposed bodies the test could assert. It completed the client handshake that had stalled the previous receiver.
- What got in the way
- The helper URL included a trailing slash, so the endpoint passed into the application had to be trimmed before path joining produced a valid collector URL.
