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

Dump envelope to disk in debug mode if too large

Open adinauer opened this issue 3 years ago • 1 comments

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

adinauer avatar May 31 '22 09:05 adinauer

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?

marandaneto avatar May 31 '22 15:05 marandaneto

Closing this as there doesn't seem to be a need to implement this at the moment.

adinauer avatar Feb 07 '23 07:02 adinauer