# From one switch to a control panel: meet \`dataCollection\`

DevFeed: [From one switch to a control panel: meet \`dataCollection\`](<https://devfeed.tech/articles/from-one-switch-to-a-control-panel-meet-datacollection-24094.md>)

Original publisher: [Read original article](<https://blog.sentry.io/datacollection-control-panel/>)

Author: Sigrid Huemer

Published: 2026-08-28T09:00:00Z

Content type: article

Language: en

Sources: [Sentry](<https://devfeed.tech/sources/sentry-blog.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [Data Management](<https://devfeed.tech/topics/data-management.md>), [API Logging](<https://devfeed.tech/topics/api-logging.md>)

Tags: [all](<https://devfeed.tech/tags/all.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [boolean](<https://devfeed.tech/tags/boolean.md>), [collect](<https://devfeed.tech/tags/collect.md>), [control-panel](<https://devfeed.tech/tags/control-panel.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [data](<https://devfeed.tech/tags/data.md>), [deprecated](<https://devfeed.tech/tags/deprecated.md>), [email](<https://devfeed.tech/tags/email.md>), [genai](<https://devfeed.tech/tags/genai.md>), [headers](<https://devfeed.tech/tags/headers.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [options](<https://devfeed.tech/tags/options.md>), [sdks](<https://devfeed.tech/tags/sdks.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [switch](<https://devfeed.tech/tags/switch.md>), [user](<https://devfeed.tech/tags/user.md>)

## AI overview

For JavaScript SDK v11, `dataCollection` replaces the all-or-nothing `sendDefaultPii` switch with category-level controls, and its defaults collect more than v10. PII such as user IDs and emails is collected by default and can be opted out of; this only governs automatic collection, so data attached manually is still sent. Credentials and secrets are never collected automatically. HTTP header names are collected by default, while values matching the built-in sensitive-data denylist are redacted. Other Sentry SDKs will adopt the concept, but their defaults and migration steps may differ; check each SDK's release notes.

## Source excerpt

Sentry SDKs replace the `sendDefaultPii` boolean with `dataCollection`, granular options for user data, headers, bodies, GenAI data, and more.