getsentry / getsentry/sentry-java
When wrapping callable / supplier / task we could automatically capture exceptions
Aperta
Errors
Improvement
Java
- Lingua principale
- Kotlin
- Stelle
- 1.4k
- Fork
- 478
- Merge medio
- 2g 23h
- PR unite (30g)
- 67
Descrizione
### 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.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.