getsentry / getsentry/sentry-java

Allow using a custom Hub with SentryTraced for Jetpack Compose

未关闭
#2,668 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Android good first issue Improvement Jetpack Compose Traces
主要语言
Kotlin
星标
1.4k
派生
478
平均合并
2 天 23 小时
30 天内合并 PR
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 摘要。