Skip to content

Add sendDefaultPii flag to JS SDK #5340

Closed
@Lms24

Description

@Lms24

The JS SDK currently does not support the sendDefaultPii option that is part of the Sentry SDK specification. We add this option to

  1. improve the alignment of the JS SDKs with the other Sentry SDKs
    • This provides an easier way for users to control PII from the SDK
    • and a central flag from which PII relevant data can be controlled for existing features and future development of the SDK
  2. be able to control the the dynamic sampling context content w.r.t PII concerns.

Note that full support for the sendDefaultPii flag implies a behaviourally breaking change: We currently instruct users to use hooks like beforeSend, beforeBreadcrumbs or traceSampler to filter out PII on the SDK side. If people do not do this, they will get e.g. user data by default in their events. Since sendDefaultPii defaults to false, users who do not currently filter our PII will not anymore receive this information.

Therefore, we'll introduce this option in two steps:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions