apm-agent-java
apm-agent-java copied to clipboard
AsyncHttpClient loses context after StreamedAsyncHandler
Describe the bug
The trace is incorrectly propagated when using a StreamedAsyncHandler.
Steps to reproduce
The test setup uses Scala and depends on the latest master branch of ElasticAPM
- Checkout https://github.com/milanvdm/scala-elastic-apm/blob/check-edge-case
- Start the docker-compose
- Run the application:
sbt reStartorsbt run - It will lose the context at: https://github.com/milanvdm/scala-elastic-apm/blob/check-edge-case/src/main/scala/me/milan/main/future/DummyHttpBackend.scala#L76