getsentry / getsentry/sentry-java

Improve Envelope Caching process

未关闭
#3,061 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Android Improvement
主要语言
Kotlin
星标
1.4k
派生
478
平均合并
2 天 23 小时
30 天内合并 PR
67

描述

### 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.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。