Add `dataCollection` option type and deprecate `sendDefaultPii`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- react-native, typescript
- Domain
- mobile
Research direction
Start with packages/core/src/js/options.ts and the linked data-collection specification to define the relevant ReactNativeOptions types. Locate the option normalization or initialization path for backward-compatible bridging, then add tests for the mapping and warning behavior. Done means dataCollection is supported, sendDefaultPii is marked deprecated and warns when used, and the specified bridge works.
Written by the indexing model from the issue text.
Description
Add the new dataCollection option to ReactNativeOptions with the relevant subset of options from the spec.
Tasks
- Define
DataCollectionOptionstype with at minimum:userInfo,genAIInputs,genAIOutputs,stackFrameVariables,frameContextLines - Add
dataCollectiontoReactNativeOptionsinoptions.ts - Deprecate
sendDefaultPiiwith a JSDoc@deprecatedannotation - Add backward-compat bridging: if
sendDefaultPiiis set butdataCollectionis not, mapsendDefaultPii: true→dataCollection: { userInfo: true } - Emit a console warning when
sendDefaultPiiis used, pointing todataCollection - 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/
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 369
- Avg merge
- 21h 3m
- Merged PRs (30d)
- 98
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-react-native
-
sendDefaultPii is reported as deprecated on ReactNativeOptions although dataCollection is hiddenOpenBug React-Native Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-react-native#6830 · 1 comment ·
Maintainers usually reply within 1 day
-
React-Native Replays Task
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
getsentry/sentry-react-native#6680 · 1 comment ·
Maintainers usually reply within 1 day
-
Improvement React-Native
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-react-native#6143 · 2 comments ·
Maintainers usually reply within 1 day
-
React-Native Task User Feedbacks
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
getsentry/sentry-react-native#5932 · 2 comments ·
Maintainers usually reply within 1 day
-
React-Native Replays Task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/sentry-react-native#5882 · 1 comment ·
Maintainers usually reply within 1 day
All issues in getsentry/sentry-react-native
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OHDSI/Data2Evidence#3496 ·
Maintainers usually reply within 2 days
-
TaskSecret.vue: replace explicit `any` with real typesPossibly taken @prayas-bit claimed this today. Openarea/frontend good first issue kind/cooldown
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
kestra-io/kestra#20352 · 1 comment ·
Maintainers usually reply within 1 day
-
Bouncer: long messages are re-split at 350 bytes, breaks echo-message reconciliationPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day