I set up the apm Java agent with Tomcat server, but I notice there are some transactions(Http request) that return 5xx errors but they don't have exception stack traces(I couldn't find them in APM Errors by searching the transaction id). The sampling rate of the agent is set to 100%. Could you briefly explain the following questions? Thanks!
- How are errors tracked by the agent?
- Why do some 5xx requests not have error traces?
- If the sampling rate is 100%, should all error traces be
OS version : CentOS Linux, Version 7(core)
Java Version : openjdk version "1.8.0_275"
JVM Setting : default GC setting with Parallel GC, maximum JVM size is 6GB
APM java agent version : 1.19.0
APM java agent configuration
The APM agent is setup with the Tomcat process with -javaagent
flag
/java/1.8.0_275/bin/java -javaagent:elastic-apm-agent-1.19.0.jar -Delastic.apm.config_file=elastic_apm.properties -Delastic.apm.log_file=elastic-apm.log -Delastic.apm.service_name=web-java