getsentry / getsentry/sentry-java

Allow using a custom Hub with SentryTraced for Jetpack Compose

オープン
#2,668 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
Android good first issue Improvement Jetpack Compose Traces
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 23時間
マージ済み PR(30日)
67

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。