getsentry / getsentry/sentry-java

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

Open
#2,729 0 comments 0 reactions 0 assignees View on GitHub
Errors Improvement Java
Dominant language
Kotlin
Stars
1.4k
Forks
478
Avg merge
2d 23h
Merged PRs (30d)
67

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.