Skip to content

Update migration notes for sendDefaultPii in SDK - #19340

Merged
adinauer merged 12 commits into
masterfrom
adinauer-patch-2
Nov 11, 2026
Merged

adinauer merged 12 commits into
masterfrom
adinauer-patch-2

Conversation

@adinauer

Copy link
Copy Markdown
Member

Added migration details for sendDefaultPii behavior in data collection options, clarifying backfill conditions and implications for SDKs.

DESCRIBE YOUR PR

Tell us what you're changing and why. If your PR resolves an issue, please link it so it closes automatically.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

LEGAL BOILERPLATE

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

EXTRA RESOURCES

Added migration details for `sendDefaultPii` behavior in data collection options, clarifying backfill conditions and implications for SDKs.
@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
develop-docs Ready Ready Preview Nov 11, 2026 9:43am UTC
sentry-docs Ready Ready Preview Nov 11, 2026 9:43am UTC

Request Review

@github-actions github-actions Bot added sdk-develop-docs PRs touching develop-docs/sdk Priority: Needs Triage The PR description is missing valid priority information labels Sep 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Please update the IS YOUR CHANGE URGENT? section of the PR description:

  • Select exactly one option.
  • If you selected an urgent or other deadline, provide the date as YYYY-MM-DD.

This information helps the Docs team prioritize your review.

});
```

If the SDK can not cleanly map `sendDefaultPii` behavior to data collection options, it **MUST NOT** backfill data collection options from the configured `sendDefaultPii` value. Instead the SDK **MUST** ignore the value of `sendDefaultPii` if any data collection options is set explicitly and instead use the default data collection options where no explicit value has been set.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this as MUST NOT on purpose without mentioning that in theory it's possible to start backfilling in a major. Even with a major, we'd implicitly be forcing our customers to switch to data collection and re-evaluate what data the SDK sends. The way this is worded means customers can keep using sendDefaultPii without being bothered by data collection.

- **`sendDefaultPii: true`** (legacy) → omit `dataCollection` entirely; the new defaults already populate `user.*` and collect HTTP bodies. Add overrides only to restrict collection.
- **`sendDefaultPii: false`** (legacy) → opt out of the categories the new defaults collect.

The new defaults collect **more data** than either legacy setting did. User identity, generative AI content, HTTP request/response bodies, and file paths are now on by default, and more HTTP headers and cookies are collected. This config restricts collection to roughly match the previous behavior of `sendDefaultPii: false`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs here are meant as directions for users so we have a shared agreement on how to document the changes. E.g. when someone set sendDefaultPii: true, users can omit dataCollection entirely as the new defaults have this behavior.

With the new sentence above ("if the SDK..."), those instructions now read as backfill rules for the SDKs (which they are not meant to be).

So far, we don't have explicit guidance in the spec on how to do the migration within the SDKs. But I agree that it's worth to add them. Or at least make this section clearer on what it actually communicates.

For example:

- Previous **`sendDefaultPii: true`** → users can omit `dataCollection` entirely; the new defaults already populate `user.*` and collect HTTP bodies. Add overrides only to restrict collection.
- Previous **`sendDefaultPii: false`** → users should opt out of the categories the new defaults collect.

And the first sentence could be grouped together with the rest of the instructions that are meant for SDKs. It makes a lot of sense to add docs for what an SDK must do when the old sendDefaultPii does not map 1:1 onto dataCollection.

});
```

If the SDK can not cleanly map `sendDefaultPii` behavior to data collection options, it **MUST NOT** backfill data collection options from the configured `sendDefaultPii` value. Instead the SDK **MUST** ignore the value of `sendDefaultPii` if any data collection options is set explicitly and instead use the default data collection options where no explicit value has been set.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If the SDK can not cleanly map `sendDefaultPii` behavior to data collection options, it **MUST NOT** backfill data collection options from the configured `sendDefaultPii` value. Instead the SDK **MUST** ignore the value of `sendDefaultPii` if any data collection options is set explicitly and instead use the default data collection options where no explicit value has been set.
If the SDK can not cleanly map `sendDefaultPii` behavior to data collection options, it **MUST NOT** backfill data collection options from the configured `sendDefaultPii` value. Instead the SDK **MUST** ignore the value of `sendDefaultPii` if any data collection options are set explicitly and instead use the default data collection options where no explicit value has been set.

@coolguyzone coolguyzone left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity.
It will be closed in 7 days if no further activity occurs.

If this PR is still relevant, please:

  • Push new commits, or
  • Leave a comment to keep it open

Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Oct 30, 2026
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed due to inactivity.

If you'd like to continue working on this, feel free to reopen the PR or create a new one.

@github-actions github-actions Bot closed this Nov 7, 2026
@adinauer adinauer reopened this Nov 11, 2026
adinauer and others added 3 commits November 11, 2026 06:05
Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com>
Co-authored-by: Alex Krawiec <alexanderkrawiec@gmail.com>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 23b055f. Configure here.

adinauer and others added 2 commits November 11, 2026 10:34
Co-authored-by: Alexander Dinauer <adinauer@users.noreply.github.com>
Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com>
@adinauer
adinauer merged commit 2374e0a into master Nov 11, 2026
28 checks passed
@adinauer
adinauer deleted the adinauer-patch-2 branch November 11, 2026 09:47

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry-docs — 2700f7e4 Deployed Nov 11, 2026 by vercel[bot]
Preview – develop-docs — b2831485 Deployed Nov 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Needs Triage The PR description is missing valid priority information sdk-develop-docs PRs touching develop-docs/sdk Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants