Skip to content

docs(dotnet): Document ConfigureDataCollection and add a data collection setup step - #20977

Merged
ric-oliv merged 4 commits into
masterfrom
docs/dotnet-data-collection
Nov 30, 2026
Merged

ric-oliv merged 4 commits into
masterfrom
docs/dotnet-data-collection

Conversation

@jamescrosswell

@jamescrosswell jamescrosswell commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

DESCRIBE YOUR PR

Documents the .NET SDK's ConfigureDataCollection option, the successor to SendDefaultPii (getsentry/sentry-dotnet#5420), and adds a data collection step to the .NET getting-started pages, following the JavaScript pattern from #19208.

Don't merge before sentry-dotnet 7.1.0 ships. The method exists since 6.13.0, but no integration reads it until 7.1.0, so the docs say "Available since 7.1.0".

  • Options: new ConfigureDataCollection entry: fields and defaults, KeyValueCollectionBehavior, HttpBodies flags, appsettings.json binding, Android/Cocoa forwarding, and migrating from SendDefaultPii.
  • Data Collected: rewritten category by category, with the field that controls each and its legacy behavior. Also corrects claims that no longer hold: the RedactedHeaders.cs link, URL credentials with SendDefaultPii, SQL literals, and the machine name on ASP.NET.
  • Native options (Android, Apple): a pointer that Data Collection doesn't affect Session Replay.
  • Getting started: a "Control the Data You Send to Sentry (Optional)" step on every .NET guide except Xamarin (a separate SDK without the option), with ASP.NET Core and Google Cloud Functions variants.

Closes getsentry/sentry-dotnet#5851
Closes getsentry/sentry-dotnet#5852

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

🤖 Generated with Claude Code

…ion setup step

Add the ConfigureDataCollection reference entry to the .NET options page,
rewrite the Data Collected page category by category against its
Data Collection fields and legacy SendDefaultPii behavior, and point the
Android and Apple Session Replay options at the fact that Data Collection
doesn't affect Replay.

Add a "Control the Data You Send to Sentry (Optional)" step to the .NET
getting-started pages (all guides except Xamarin), with ASP.NET Core and
Google Cloud Functions variants.

Must not merge before sentry-dotnet 7.1.0 ships.

Closes getsentry/sentry-dotnet#5851
Closes getsentry/sentry-dotnet#5852

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 30, 2026 1:52pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Preview Nov 30, 2026 1:52pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Nov 26, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team November 26, 2026 06:27
SentryRequest and Response headers always replace Authorization and
Proxy-Authorization values with [Filtered], regardless of Data Collection
and including headers the app sets itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- URL credentials: only the HTTP handler's spans, breadcrumbs and
  failed-request events always drop them; other breadcrumbs and span
  descriptions redact them only while SendDefaultPii is false.
- Say once that Data Collection doesn't filter log messages.
- SQL: only EF6 adds its own breadcrumbs; EF Core command logs keep
  literals.
- HTTP client spans drop query and fragment; breadcrumbs keep the
  fragment.
- Mention the extra cookie-name terms, the MAUI IsEnvironmentUser
  default, and that SENTRY0001 is a build error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@ric-oliv ric-oliv left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@ric-oliv
ric-oliv merged commit dac5f0d into master Nov 30, 2026
32 of 33 checks passed
@ric-oliv
ric-oliv deleted the docs/dotnet-data-collection branch November 30, 2026 14:18

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry-docs — f6f56430 Deployed Nov 30, 2026 by vercel[bot]
Preview – develop-docs — e1b8baeb Deployed Nov 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

2 participants