Align callback error handling with other SDKs
维护者通常 1 天内回复
@adinauer 已经在做这个了。
开始于 2026年9月25日。
评估
调研方向
首先跟踪 Java SDK 对 beforeBreadcrumb 和 eventProcessor 回调的处理,然后检查 client-report 的丢弃原因是如何表示的。当回调错误导致 breadcrumb 或 event 被丢弃,并记录丢弃原因 callback_error,且与所引用的回调规范一致时,工作即告完成。
由索引模型根据 Issue 内容生成。
描述
Description
Currently Java SDK does not follow the new spec for callbacks.
If an error happens in a customer callback (hook), the SDK should fall back according to spec.
Gaps in Java SDK:
beforeBreadcrumb: on error the breadcrumb is added as is, it should be dropped insteadeventProcessor: on error the event/telemetry goes further in the pipeline, it should be dropped instead
Client reports:
- there's a new discard reason
callback_error(https://develop.sentry.dev/sdk/telemetry/client-reports/#discard-reasons-1) which should be used to make this distinguishable from things being filtered out on purpose.
- 主要语言
- Kotlin
- 星标
- 1.4k
- 派生
- 479
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 72
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-java 的其他 Issue
-
Platform: Java
难度 2/5 半天 新手友好度 76/100
getsentry/sentry-java#6161 · 1 条评论 ·
维护者通常 1 天内回复
-
Bug Java Platform: Android Platform: Java
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-java#6138 · 1 条评论 ·
维护者通常 1 天内回复
-
Feature Java Platform: Java Spans
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-java#5984 · 1 条评论 ·
维护者通常 1 天内回复
-
Android Task Traces
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-java#5376 · 1 条评论 ·
维护者通常 1 天内回复
-
Android Docs Errors
难度 2/5 1-3 小时 新手友好度 64/100
getsentry/sentry-java#5375 · 1 条评论 ·
维护者通常 1 天内回复
查看 getsentry/sentry-java 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
home-assistant/android#7561 ·
维护者通常 1 天内回复
-
contributor: external needs review
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
fwcd/tree-sitter-kotlin#289 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
navikt/syfo-oppfolgingsplan-backend#482 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100