elastic/apm-agent-java

Add support for SimpleAsyncUncaughtExceptionHandler to capture exceptions with Spring web mvc

Ouverte

#2 218 ouverte le 29 oct. 2021

 (2 commentaires) (0 réaction) (0 personne assignée)Java (332 forks)auto 404
agent-javaenhancementgood first issuesize:small

Métriques du dépôt

Stars
 (592 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Is your feature request related to a problem?

An error was not captured in APM

  • Spring web mvc > HTTP request > Spring web mvc framework > thread call(async)

APM debug logs

"....SimpleAsyncUncaughtExceptionHandler : Unexpected error occurred invoking async method: public void ..."
"Oct 25, 2021 @ 14:40:23.893","java.lang.Exception: null"
"Oct 25, 2021 @ 14:40:23.893","	at 
... (trace not relevant)

Describe the solution you'd like

The error is captured and visible in APM, with no stack traces in the logs

Describe alternatives you've considered

None

Additional context

None

Guide contributeur