elastic/apm-agent-java

Add support for SimpleAsyncUncaughtExceptionHandler to capture exceptions with Spring web mvc

開放

#2,218 建立於 2021年10月29日

 (2 則留言) (0 個反應) (0 位負責人)Java (332 個分叉)auto 404
agent-javaenhancementgood first issuesize:small

倉庫指標

星標
 (592 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南