Documente Academic
Documente Profesional
Documente Cultură
Content
Goal of this HowTo Scenario Requirements Detailed Steps Prepare your own application Montoring Functional Health Identifying Errors Identifying Exceptions Identify Root Cause of Error Logs Automatically capturing PurePath on exception Conclusion Author: Usability: Review: Michael Kopp
Scenario
For this scenario you can either use the attached easyTravel session or use your own application with dynaTrace injected.
Requirements
dynaTrace Client if you work with the attached session Any Application with dynaTrace agent injected
Detailed Steps
Prepare your own application
If you use your own application simply make sure that the Exception and Logging Sensors are placed which they should be on default. The Java Exception Sensor will not capture any JDK exception on default, you can change this in your system profile. Go to the appropriate Agent Group to the Sensor Configuration. Once there click on Properties for the Exception Sensor (or .NET Exceptions for .NET).
For logging dynaTrace will only capture errors and warnings normally. If you want to capture DEBUG messages you can change this in the Sensor Configuration as well. This can be found in the Properties of the Logging and .NET Logging Sensor.
dynaTrace detects errors in your application using a configurable set of error detection rules. These rules base on exceptions, HTTP response codes, and log messages. Errors by transaction will be counted, the node triggering the error will be marked in the PurePath, and, optionally, the transaction can be marked as failed. Error detection rules are configured per system profile, with a number of out-of-the-box rules to cover main problems in applications, e.g., unhandled exception thrown outside transaction scope or HTTP 500 responses, already provided. For details on configuring error detection rules, see System Profile - Error Detection.
Identifying Errors
The Errors dashlets is split into the Error Overview Pane (top) and the Error Details Pane (bottom). The overview pane provides you with an overview on errors and their occurrences, while the details pane shows information on the exception class together with the exception message for the selected group of error rules or a single rule.
Identifying Exceptions
Either go to your system profile or use the attached session\. Go to Diagnose Events and open the Exceptions dashlet. This will show you all exceptions that occurred in the stored session or in the PurePaths of your live session. You will see not only the exception class itself, but also the message, which class threw the exceptions and how often it occurred. Right click and use the Drill down to PurePath to identify exactly where it came from and use the PurePath to analyze why it happened
If you want to know which transaction triggered this you can simply drill down to Business Transactions (if you have any for your application) or Web Requests.
On the Actions tab you can configure additional actions to be taken should an incident occur. For example, an email notification can be configured. There are no images attached to this page. Now whenever the exception occurs you will get an incident and you can then drill down to the PurePaths. In case the exception happens multiple times you will get a single incident with multiple PurePaths attached to it.
Conclusion
Identifying exactly where and why exceptions happened is very easy with dynaTrace.