Skip to content

[skill-drift] fix(sentry-svelte-sdk): replace deprecated sendDefaultPii with dataCollection#162

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/sentry-svelte-sdk-skill-drift-fix-sentry-svelte-sdk-replac-1780927702
Open

[skill-drift] fix(sentry-svelte-sdk): replace deprecated sendDefaultPii with dataCollection#162
github-actions[bot] wants to merge 1 commit into
mainfrom
skill-drift/sentry-svelte-sdk-skill-drift-fix-sentry-svelte-sdk-replac-1780927702

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Auto-generated from external SDK content. Review all links and code suggestions before acting on them.

Summary

  • Replace sendDefaultPii: true with dataCollection: { userInfo: true } in all code examples
  • Update configuration reference table to document new dataCollection API (userInfo, cookies, httpHeaders, httpBodies, queryParams)
  • Update best practices and documentation mentions in reference files

Context

PR #21277 deprecated sendDefaultPii in favor of the more granular dataCollection API. The old option still works but will be removed in v11. The skill was teaching users a deprecated API pattern.

Mapping: sendDefaultPii: truedataCollection: { userInfo: true } (equivalent behavior for the skill's use case)

Related changes in SDK v10.56.0:

  • PR #21348: dataCollection.userInfo now defaults to true
  • PR #21352: dataCollection.httpBodies now defaults to all body types
  • PR #21323: dataCollection.frameContextLines used by ContextLines integration

Files changed

  • skills/sentry-svelte-sdk/SKILL.md — 3 code examples + configuration table
  • skills/sentry-svelte-sdk/references/error-monitoring.md — 1 example + 2 best practices
  • skills/sentry-svelte-sdk/references/logging.md — 1 auto-attributes table entry

🤖 Generated by skill-drift detector

Source PRs

…ii with dataCollection

Automated drift-fix run.

Co-Authored-By: Claude (claude-sonnet-4-5) <noreply@anthropic.com>
Comment on lines +157 to +159
dataCollection: {
userInfo: true,
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bug: Replacing sendDefaultPii: true with dataCollection: { userInfo: true } is not equivalent for SDKs < 10.56.0, causing a silent loss of cookie and header data collection.
Severity: MEDIUM

Suggested Fix

To ensure consistent data collection across all supported SDK versions, update the dataCollection example to explicitly include cookies: true and httpHeaders: { request: true, response: true }. Alternatively, add a clear warning and separate examples for users on SDK versions older than 10.56.0.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: skills/sentry-svelte-sdk/SKILL.md#L157-L159

Potential issue: The documentation incorrectly suggests replacing `sendDefaultPii: true`
with `dataCollection: { userInfo: true }` as an equivalent change. This is only true for
`@sentry/sveltekit` SDK versions 10.56.0 and newer. For supported older versions (10.8.0
to 10.55.x), `sendDefaultPii: true` collected user info, cookies, and request headers.
The new configuration only collects user info because other `dataCollection` fields like
`cookies` and `httpHeaders` default to false in those versions. This results in a
silent, unintended loss of cookie and HTTP header data for users on these older SDKs who
follow the new examples.

Also affects:

  • skills/sentry-svelte-sdk/SKILL.md:174~176
  • skills/sentry-svelte-sdk/SKILL.md:278~280
  • skills/sentry-svelte-sdk/references/error-monitoring.md:28~31

Did we get this right? 👍 / 👎 to inform future reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants