getsentry / getsentry/sentry-react-native

Add `dataCollection` option type and deprecate `sendDefaultPii`

オープン
#5,996 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Errors React-Native Task
主要言語
TypeScript
スター
1.8k
フォーク
366
平均マージ
1日 6時間
マージ済み PR(30日)
94

説明

Add the new `dataCollection` option to `ReactNativeOptions` with the relevant subset of options from the [spec]().

## Tasks

* Define `DataCollectionOptions` type with at minimum: `userInfo`, `genAIInputs`, `genAIOutputs`, `stackFrameVariables`, `frameContextLines`
* Add `dataCollection` to `ReactNativeOptions` in `options.ts`
* Deprecate `sendDefaultPii` with a JSDoc `@deprecated` annotation
* Add backward-compat bridging: if `sendDefaultPii` is set but `dataCollection` is not, map `sendDefaultPii: true` → `dataCollection: { userInfo: true }`
* Emit a console warning when `sendDefaultPii` is used, pointing to `dataCollection`
* Add tests for the bridging logic

## References

* `packages/core/src/js/options.ts` — option definitions
* Spec: [https://develop.sentry.dev/sdk/foundations/client/data-collection/]()

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

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

調査の方向性

packages/core/src/js/options.ts とリンクされたデータ収集仕様から始めて、関連する ReactNativeOptions 型を定義します。後方互換性のあるブリッジングのためのオプションの正規化または初期化の経路を特定し、その後、マッピングと警告の動作に対するテストを追加します。完了の条件は、dataCollection がサポートされ、sendDefaultPii が非推奨としてマークされて使用時に警告が出され、指定されたブリッジが動作することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native, typescript
領域
mobile
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
68/100

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

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