How to generate Errors in Elastic APM

Hello,

We deployed the elastic APM and did performance testing for a Java application by for both success and failure scenarios for Http2xx and Http4xx response code.

But we don't see any data coming in the errors section of APM when we generate the Http4xx responses. How can we generate a scenario where we can see some test data under Error tab of APM UI. We are trying for the first time APM to monitor the performance of our API's and understanding on what gets reported under Error section will really help us achieve what we needed to set up some watcher jobs.

Thanks
Chandra

It depends a little on which APM agent and possibly web framework you are using as each language/framework treat errors slightly different?

We deployed the elastic APM and did performance testing for a Java application by for both success and failure scenarios for Http2xx and Http4xx response code.

But we don't see any data coming in the errors section of APM when we generate the Http4xx responses. How can we generate a scenario where we can see some test data under Error tab of APM UI. We are trying for the first time APM to monitor the performance of our API's and understanding on what gets reported under Error section will really help us achieve what we needed to set up some watcher jobs.

For Java applications, the Errors page will show exceptions. You can see some demo data at Elastic Demos. To see errors in your own application, have your request handler throw an exception.

You can find HTTP request that return 4xx response codes under the Transactions page instead by searching for transaction.result: "HTTP 4xx".

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.