elastic / elastic/apm-agent-java

AsyncHttpClient loses context after StreamedAsyncHandler

Open
#1,255 0 comments 0 reactions 0 assignees View on GitHub
agent-java
Dominant language
Java
Stars
594
Forks
338
Avg merge
1d 13h
Merged PRs (30d)
25

Description

## 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

1. Checkout https://github.com/milanvdm/scala-elastic-apm/blob/check-edge-case
2. Start the docker-compose
3. Run the application: `sbt reStart` or `sbt run`
4. 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.