getsentry / getsentry/sentry-java

When wrapping callable / supplier / task we could automatically capture exceptions

未關閉
#2,729 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Errors Improvement Java
主要語言
Kotlin
星號
1.4k
分支
478
平均合併
3 天 4 小時
30 天內合併 PR
72

描述

### Problem Statement

Currently `SentryTaskDecorator`, `SentryWrapper.wrapCallable` and `SentryWrapper.wrapSupplier` only clone the hub to ensure scope does not leak but do not automatically capture errors.

### Solution Brainstorm

We could add overloads for the wrap methods to automatically capture.

TODO: decide on default behaviour

Maybe it makes sense to split out `SentryTaskDecorator` as it could get more complicated when developers want to decide which tasks to automatically capture errors for and which not.

貢獻指南

開啟貢獻指南

研究方向

先閱讀 SentryTaskDecorator、SentryWrapper.wrapCallable 和 SentryWrapper.wrapSupplier,以了解它們目前的 hub 複製行為。此 issue 仍需決定預設的例外捕捉行為,以及 SentryTaskDecorator 是否需要個別處理;完成的標準是這些設計選擇已確定,且 wrapping API 一致地實作約定的行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java, kotlin
領域
devtools
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。