bugsnag-java icon indicating copy to clipboard operation
bugsnag-java copied to clipboard

Make Serializer and/or Jackson configurable

Open konrad-garus opened this issue 6 years ago • 1 comments

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.

konrad-garus avatar Jul 03 '17 11:07 konrad-garus

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.

kattrali avatar Jul 03 '17 14:07 kattrali