Skip to content

Add dataCollection option type and deprecate sendDefaultPii #5996

@antonis

Description

@antonis

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: truedataCollection: { userInfo: true }
  • Emit a console warning when sendDefaultPii is used, pointing to dataCollection
  • Add tests for the bridging logic

References

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions