bugsnag / bugsnag-java

BugSnag error reporting for Java.
https://www.bugsnag.com/platforms/java/
MIT License
56 stars 34 forks source link

Make Serializer and/or Jackson configurable #56

Open konrad-garus opened 7 years ago

konrad-garus commented 7 years ago

I'd like to use Bugsnag with custom reports that may include some objects in the tabs. It's pretty close with the current API, but the Serializer is too restrictive:

this.mapper.setSerializationInclusion(Include.NON_EMPTY).setVisibilityChecker(this.mapper.getVisibilityChecker().with(Visibility.NONE));

Please provide a way to customize it, allowing us to use different ObjectMapper. Some of us don't want Jackson annotations all over the code.

It would be even better if we could replace the serializer altogether and the dependency on Jackson was optional.

kattrali commented 7 years ago

Thanks for the report, @konrad-garus. Its possible that we could expose Serializer on Configuration to then allow manipulation provided you have an object implementing writeToStream(OutputStream, Object). I'll push this up to the roadmap for further investigation.