Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add `dataCollection` option type and deprecate `sendDefaultPii`

Open
#5,996 1 comment 0 reactions 0 assignees View on GitHub

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

Errors React-Native Task

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

Dominant language
TypeScript
Stars
1.8k
Forks
369
Avg merge
21h 3m
Merged PRs (30d)
98

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-react-native

All issues in getsentry/sentry-react-native

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.