---
title: "From one switch to a control panel: meet `dataCollection`"
description: "Sentry's JavaScript SDK v11 replaces the all-or-nothing `sendDefaultPii` boolean with `dataCollection`, a per-category config covering user info, cookies, HTTP headers and bodies, query params, GenAI inputs/outputs, database queries and more."
url: "https://swe.quest/articles/from-one-switch-to-a-control-panel-meet-datacollection-1d4b9c6a75983352"
canonical: "https://blog.sentry.io/datacollection-control-panel/"
source: "Sentry"
published: "2026-08-28"
difficulty: "medium"
kind: "Release"
reading_minutes: 6
tags: ["privacy","observability","javascript"]
---

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

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-08-28, 6 min read, Release. Original: [https://blog.sentry.io/datacollection-control-panel/](https://blog.sentry.io/datacollection-control-panel/)

## Summary

Sentry's JavaScript SDK v11 replaces the all-or-nothing \`sendDefaultPii\` boolean with \`dataCollection\`, a per-category config covering user info, cookies, HTTP headers and bodies, query params, GenAI inputs/outputs, database queries and more. The new defaults collect more than v10 did, including user info, cookies, truncated request/response bodies, GenAI I/O and DB query data. Sensitive values such as tokens and passwords are still filtered by a built-in denylist, and manually attached data is always sent. Users who had \`sendDefaultPii: true\` can simply delete it, while those relying on the old restrictive default must set explicit allow/deny options. Because span streaming is now on by default, span filtering should move to \`beforeSendSpan\` and \`ignoreSpans\`.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Privacy](https://swe.quest/tags/privacy.md) (Security)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)

## Prerequisites

- Sentry SDK configuration ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))
- PII handling basics

## Keywords

Sentry, dataCollection, sendDefaultPii, beforeSendSpan, ignoreSpans, Sentry JavaScript SDK

## Related posts

- [Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates](https://swe.quest/articles/sentry-s-flutter-sdk-10-0-streaming-traces-and-more-accurate-crash-free-rates-a06a0e8843447c28.md): Sentry · 2026-10-14 · Medium · 3 min read · Mobile, Observability
  Sentry's Flutter SDK 10.0 switches tracing to a streaming model that sends finished spans in batches instead of waiting for the whole transaction, with \`Sentry.startSpan\` for custom instrumentation and an opt-out via \`SentryTraceLifecycle.static\`.
- [How we handle sensitive data in BigQuery](https://swe.quest/articles/how-we-handle-sensitive-data-in-bigquery-1b75e2ab86e89799.md): incident.io · 2024-11-14 · Medium · 10 min read · Privacy, Analytics & OLAP, Data pipelines, Python, Identity & auth
  incident.io masks sensitive data in BigQuery by default: a daily Python job applies PII and confidential policy tags to every untagged STRING/BYTES column replicated by Fivetran, so humans see only SHA256-hashed values.
- [Schematizing Deletion at Scale](https://swe.quest/articles/schematizing-deletion-at-scale-4a9164e6bb73ed7b.md): Shopify Engineering · 2021-06-10 · Medium · 16 min read · Privacy, Data pipelines, Queues & messaging, Analytics & OLAP
  Shopify handles PII deletion in a warehouse ingesting tens of billions of events per day by requiring privacy-annotated schemas for every analytical event (4,500+ active schemas) and pseudonymising PII before it lands.
- [Sentry JavaScript SDK v11 adds tracing for all JS platforms](https://swe.quest/articles/sentry-javascript-sdk-v11-adds-tracing-for-all-js-platforms-2ee0190e0544fb8c.md): Sentry · 2026-10-09 · Medium · 12 min read · Observability, JavaScript, Build systems, Runtimes & VMs
  Sentry's JavaScript SDK v11 replaces OpenTelemetry export-patching instrumentations (require-in-the-middle, import-in-the-middle, shimmer) with a source-code transformer that injects node:diagnostics\_channel tracingChannel calls into library functions, plus integrations that subscribe to those channels and emit Sentry spans.
- [Sentry's .NET SDK 7.0 is ready for .NET 11](https://swe.quest/articles/sentry-s-net-sdk-7-0-is-ready-for-net-11-01de83be54b0efc6.md): Sentry · 2026-11-16 · Medium · 5 min read · .NET, Observability, Mobile
  Sentry's .NET SDK 7.0 adds .NET 11 support (including reading .NET 11 Android's new Zstandard-compressed assembly store for symbolicated stack traces), a Sentry.Extensions.Hosting package bringing UseSentry() to worker services, console apps and isolated Azure Functions, and Sentry.Quartz packages that trace Quartz.NET jobs and auto-create cron monitors.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
