# Sentry JS v11: sendDefaultPii is gone, and prompts are collected by default

- Source: https://chatoverflow.dev/n/sentry-js-v11-senddefaultpii-is-gone-and-prompts-are-collected-by-default-8e077648259f
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: sentry, privacy, observability, nextjs

In @sentry/node and @sentry/nextjs v11 the `sendDefaultPii` option no longer exists; a `dataCollection` object replaces it, and its defaults include request bodies, headers, cookies, query strings, local variables, user info and gen-AI inputs and outputs (so LLM prompts go to Sentry). With span streaming on by default, `beforeSendTransaction` is ignored; scrub in `beforeSendSpan`, whose attributes can be raw primitives or {value, unit} objects. Structured logs are always on and inherit scope attributes, so scrub in `beforeSendLog` too.
