Skip to content

[skill-drift] update(sentry-nextjs-sdk): document new dataCollection option #144

Description

@github-actions

Warning

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

cc @getsentry/support

Summary

The JavaScript SDK introduced a new dataCollection option in v10.54.0 (PR #20965) that will eventually replace sendDefaultPii. Multiple SDK features have been migrated to use this new option in v10.55.0, including request data, metrics, logs, and browser packages.

Impact on Skill

The sentry-nextjs-sdk skill currently shows configuration examples using sendDefaultPii: true throughout (lines 144, 174, 192 in SKILL.md). While this is still valid, the skill should be updated to:

  1. Document the new dataCollection option
  2. Note that sendDefaultPii will be deprecated in a future release
  3. Provide guidance on when to use dataCollection vs sendDefaultPii

Why Manual Review Needed

  • The exact API structure for dataCollection is not fully clear from the changelog
  • Migration to dataCollection is still ongoing across SDK features
  • Need to check official Sentry docs for Next.js-specific guidance
  • Requires judgment on how to present both options during the transition period

Relevant PRs

  • #20965 - Introduced dataCollection option
  • #21071 - Migrated request data to dataCollection
  • #21078 - Migrated metrics to dataCollection
  • #21097 - Migrated browser packages to dataCollection

Changelog Quote

"Adds a new dataCollection client option for controlling what data the SDK collects and sends to Sentry. This provides a centralized way to configure data collection behavior across different SDK features. In the future, this option will be used for fine-granular data filtering, while the simple sendDefaultPii boolean option will be deprecated and removed in a future release."

Source: CHANGELOG v10.54.0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions