java-rollbar is a set of maven modules that allows reporting issues to
Rollbar in anything that can use Java.
It's still under development, and many of the design decisions may still be altered. If you have an opinion voice it in the issues!
The library is split into small modules to enable re-use as much as possible. If you want to change a single piece of how it works it should be relatively straightforward.
rollbar-utiltiescontains code shared by the other modules.
rollbar-testingcontains shared test code.
rollbar-senderimplements sending occurrences to Rollbar. No external dependencies make this lightweight, but a good candidate for an upgrade.
rollbar-payloadimplements a Payload object that can be serialized to JSON. It does so with no external dependencies.
rollbarbrings together all the pieces from above to make it easy to install and start recording errors.
You can, of course, build it yourself and depend on the .jar manually, however, the modules are up on maven central and can be installed in most tool chains pretty trivially.
All these can be installed as Maven projects. Simply add the dependency to your pom file:
<dependencies> <dependency> <groupId>com.rollbar</groupId> <artifactId>rollbar</artifactId> <version>0.5.3</version> </dependency> </dependencies>
For actual usage, the easiest way to get started is with the
package. See the documentation there.
This library was written by someone who knows C# much better than Java. Feel free to issue stylistic PRs, or offer suggestions on how we can improve this library.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature).
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request