getsentry / getsentry/sentry-java
Improve Envelope Caching process
Ouverte
Android
Improvement
- Langage dominant
- Kotlin
- Étoiles
- 1.4k
- Forks
- 478
- Merge moyen
- 2 j 23 h
- PR mergées (30 j)
- 67
Description
### Description
As of now [we save envelopes to disk right before try to send them](https://github.com/getsentry/sentry-java/blob/0bd723b1c59af639c4a86bbade526e0108096f8e/sentry/src/main/java/io/sentry/transport/AsyncHttpTransport.java#L227-L247).
In case of a slow network connection this could lead to envelopes queuing up and being potentially lost in case of an app termination.
We should try to store to disk as early as possible, and then enqueue the envelope for sending over the wire.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.