getsentry / getsentry/sentry-react-native
Add manual controls for Session Tracking
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 366
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 94
説明
**OS:**
- [ ] Windows
- [X] MacOS
- [ ] Linux
**Platform:**
- [X] iOS
- [X] Android
**SDK:**
- [X] `@sentry/react-native` (>= 1.0.0)
- [ ] `react-native-sentry` (<= 0.43.2)
**SDK version:** 1.4.5
`react-native` version: 0.62.2
**Are you using Expo?**
- [ ] Yes
- [X] No
**Are you using **[**sentry.io**]()** or on-premise?**
- [X] [sentry.io]() (SaaS)
- [ ] on-premise
**If you are using **[**sentry.io**]()**, please post a link to your issue so we can take a look:**
\[Link to issue\]
**Configuration:**
(`@sentry/react-native`)
```
Sentry.init({
dsn: 'https://...@sentry.io/...'
// other options
release: `${appName}@${appVersion} (${buildNumber})`,
enableAutoSessionTracking: true,
sessionTrackingIntervalMillis: 30000,
});
```
---
**I have following issue:**
\[Description\]
Hi, I have an app that purposefully runs in the background when a user starts a "session" with us. I would like to use the session tracking features, but I need to prevent the session from ending while the user's session with us is active.
I'm not aware of any manual way of tracking the session, nor that there's any option to change this configuration at runtime.
コントリビューションガイド
調査の方向性
まず @sentry/react-native のセッション追跡設定、特に enableAutoSessionTracking と sessionTrackingIntervalMillis を確認し、SDK が iOS と Android でバックグラウンドへの遷移をどのように処理するかを追跡します。アプリが管理するセッションに必要な公開手動制御と実行時の動作を定義し、自動追跡が引き続きサポートされ、両プラットフォームが一貫して動作することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react-native, typescript
- 領域
- mobile
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 32/100