elastic / elastic/apm-agent-java
WebFlux + APM Agent 1.55: Incorrect Transaction Duration
- Lingua principale
- Java
- Stelle
- 594
- Fork
- 338
- Merge medio
- 1g 13h
- PR unite (30g)
- 25
Descrizione
I'm using the Elastic APM Java agent version 1.55.0 in a Java Reactive (WebFlux) application. I'm instrumenting my code using annotations like @CaptureTransaction and @CaptureSpan.
The problem is that all the transactions and spans show unrealistically short durations (e.g., 196 μs), even though the actual processing takes much longer.
It seems like the agent is measuring the duration only until the Publisher is returned, not until it's subscribed and completed. This results in incomplete or inaccurate traces and metrics.
Is this a known limitation in version 1.55?
Is there a recommended workaround (e.g., manual instrumentation using ElasticApm.startTransaction()), or is this expected to be fixed in a later release?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
L’issue non indica file, test o punti di ingresso. Inizia riproducendo la transazione WebFlux annotata con il Elastic APM Java agent 1.55.0 e confronta la durata registrata con la sottoscrizione e il completamento del Publisher; il lavoro è completato quando il comportamento è stato corretto oppure sono documentati la limitazione e il workaround supportato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, spring
- Ambito
- observability
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100