sentry-java
sentry-java copied to clipboard
Dump envelope to disk in debug mode if too large
Problem Statement
If an envelope is dropped for being too large we could dump it to disk if debug mode is enabled to make it easier to troubleshoot.
Solution Brainstorm
It's already implemented in .NET https://github.com/getsentry/sentry-dotnet/blob/main/src/Sentry/Http/HttpTransportBase.cs#L344-L369
In case people enable the debug flag for release builds (which is likely not the case), that would probably be caching more data than necessary on people's devices. We already print out in the console the whole JSON payload, which is pretty much the same thing?
Closing this as there doesn't seem to be a need to implement this at the moment.