Support Offline Caching of Envelopes
As of now it seems offline caching of envelopes is only supported in Java, JS and Flutter; not Native. Good for use cases when network is interrupted or down.
There exists this feature request: Issue #727 ← in sentry-unreal which enables offline caching, and is built atop the Native SDK. Does that imply completing this case will enable it for sentry-native too?
My 2 cents: This would also be good for devices like SteamDeck and game engine SDKs that use sentry-native.
I agree this would be a good feature to add
Possibly related as surfaced by Karl:
- https://github.com/getsentry/sentry-native/pull/1152
- https://github.com/getsentry/crashpad/pull/120
As discussed externally, it would be super helpful if it was possible to add offline caching as a toggleable feature in both the native SDK, and ideally also in the Unreal Engine SDK.
In an ideal world, when configured to do so, Sentry would leave either the original, or a copy of the crash dump, log file, breadcrumbs etc. somewhere locally accessible.
This would greatly speed up the debugging process for us - we do a lot of fast, local iteration, and waiting for crash dumps to get uploaded to Sentry where the stack trace can't be resolved anyway is a big blocker for us. This is compounded by the fact that once we reach the limit for the number of crash dumps per issue, new crash dumps are no longer stored and so we effectively lose them.
The team is currently working on this and will have a draft PR soon.