Detect, diagnose and destroy Java errors that are affecting your customers. With smart Java error monitoring software from Raygun, you can be alerted to issues affecting your users, the second they happen.
Java errors can tend to be noisy and throw in a lot of unuseful information. Raygun helps you cut through this noise and focus on the problems that are affecting the largest number of users of your application.
Raygun supports all major programming languages and platforms including Java, .NET, Node.js, Xamarin and more. Whatever your tech stack looks like, or whether you’re monitoring backend or frontend code, Raygun can ensure all issues are brought to your team’s attention. All errors are reported to your Raygun dashboard automatically along with full diagnostic details on how to solve them.
In your Maven project, open its pom.xml file.
If using Eclipse with the m2eclipse plugin, open the Dependencies tab, Add a new dependency, then in the pattern search box enter com.mindscapehq.
Add the latest version of the core artifact. You can also add webprovider if you are developing a network app, and sampleapp if you wish to see an example project.
Save the POM, then the JARS will be downloaded and added to your project.
If you are developing in a shell/text editor environment, edit your pom.xml file to contain the following:
And as above, add the webprovider package too if you are developing a web app.
If you do not have a Maven project, you can create a dummy one, add the dependencies as above, copy them from ~/.m2/repository/com/mindscapehq to your actual project's lib or vendor folder, then reference them from there.
To catch all exceptions in your application, implement an UncaughtExceptionHandler and use it as the default unhandled exception handler of your application. In the handler, create an instance of the RaygunClient and use it to send the exception.
Make sure to pass your application API key into the RaygunClient constructor.
Raygun gives you full stacktraces for each and every error occurrence, along with environment information, HTTP requests, raw data, browser, OS, affected users and more. All the details you need to rectify issues quickly and efficiently. Raygun stores every single error event (no data sampling) so you’ll always have the right information at hand when needing to see when, why and how an error occurred.