getsentry / getsentry/sentry-java

Add method to get the installation ID

未關閉
#2,932 2 則留言 4 個 reaction 已指派 0 人 在 GitHub 檢視
Android Improvement
主要語言
Kotlin
星號
1.4k
分支
478
平均合併
3 天 4 小時
30 天內合併 PR
72

描述

### Problem Statement

In our App we have a button which allows the user to report issues.
For that, we would love to add some optional information like the installation ID from Sentry, so we can use that to analyse the user issues.
Right now I have no way to consistently get the information.

I tried setting a User manually, without any ID, which should lead to using the installation ID, which I should then be able to read out from the current scope, but that is not working reliably.

### Solution Brainstorm

So what I would love to have:

Sentry.getInstallationId() which would return the installation DI or Sentry.getUser(), which would return a default User, with the installation ID as user id.

貢獻指南

開啟貢獻指南

研究方向

先閱讀 Sentry SDK 中現有的 User 與 current-scope 處理方式,接著追蹤 installation ID 的建立與持久化方式。定義公開 API 應直接公開該 ID,還是透過預設的 User 公開,並確認回傳值在相關的 SDK 生命週期中保持一致。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, kotlin
領域
api, mobile-dev
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。