getsentry / getsentry/sentry-java

Allow using a custom Hub with SentryTraced for Jetpack Compose

Đang mở
#2,668 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
Android good first issue Improvement Jetpack Compose Traces
Ngôn ngữ chính
Kotlin
Star
1.4k
Fork
478
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
67

Mô tả

### Problem Statement

I would like to provide my own `Hub` when using the `SentryTraced` composable.

Currently, the default SentryTraced composable relies on the top-level static `Sentry` object for fetching the current transaction (by way of the `getRootSpan()` function), which can be limiting for users who wish to utilize a custom hub. This limitation can lead to potential issues when attempting to manage multiple Sentry/`Hub` instances or when needing to apply custom configurations to individual instances.

### Solution Brainstorm

Some potential solutions could be:
- Allowing a `Hub` to be passed in to the composable
- Allowing a `Transaction` to be passed in to the composable

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.