---
title: "Data Collected"
description: "See what data is collected by the Sentry .NET SDK."
url: https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected/
last_updated: 2026-11-30T14:18:00.000Z
---

# Data Collected for .NET for Android

Sentry takes data privacy very seriously and has default settings in place that prioritize data safety, especially when it comes to personally identifiable information (PII) data. When you add the Sentry SDK to your application, you allow it to collect data and send it to Sentry during the runtime of your application.

The category types and amount of data collected vary, depending on the integrations you've enabled in the Sentry SDK. This page lists the data categories the Sentry .NET SDK collects.

Starting with version 7.1.0, you can control most of these categories with [`ConfigureDataCollection`](https://docs.sentry.io/platforms/dotnet/guides/android/configuration/options.md#ConfigureDataCollection). Until you call it, each category keeps its legacy behavior, which this page describes too, and some of them depend on `SendDefaultPii`. Once you call it, every category you don't set uses its Data Collection default, and `SendDefaultPii` no longer controls it.

Data Collection only affects data the SDK's integrations collect automatically. Data you add yourself, for example through the scope, event processors, or `SetBeforeSend`, is always sent.

Data Collection doesn't filter log messages either. The logging integrations send them as breadcrumbs, as events for errors, and as logs when `EnableLogs` is on. That includes messages your frameworks log, such as the full URL of a request ASP.NET Core receives, or each command Entity Framework Core runs. To leave them out, use `SetBeforeBreadcrumb`, `SetBeforeSend`, and `SetBeforeSendLog`.

Where a category is collected with a deny list, the SDK replaces the values of keys that match a built-in list of sensitive terms, such as `auth`, `token`, or `password`, with `[Filtered]`.

## [HTTP Headers](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#http-headers)

The SDK sends the headers of incoming requests, with sensitive values filtered. `HttpHeaders.Request` controls them, and it defaults to a deny list.

When an outgoing HTTP request fails and [`CaptureFailedRequests`](https://docs.sentry.io/platforms/dotnet/guides/android/configuration/options.md#CaptureFailedRequests) captures it, `HttpHeaders.Request` and `HttpHeaders.Response` also control the request and response headers of that request. Without `ConfigureDataCollection`, the SDK sends these headers only when `SendDefaultPii` is `true`.

Whatever Data Collection allows, the SDK always replaces the values of the `Authorization` and `Proxy-Authorization` headers with `[Filtered]`, including in headers you set on a request or response yourself.

The built-in deny list doesn't filter headers that identify an end user, such as `X-Forwarded-For` or `X-Real-IP`. To filter those, add terms to the deny list, as shown in the [`ConfigureDataCollection`](https://docs.sentry.io/platforms/dotnet/guides/android/configuration/options.md#ConfigureDataCollection) example.

## [Cookies](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#cookies)

`Cookies` controls the cookies of incoming requests and the `Cookie` and `Set-Cookie` headers of failed outgoing HTTP requests. It defaults to a deny list, so the SDK sends cookies with sensitive values filtered.

Without `ConfigureDataCollection`, the SDK sends cookies only when `SendDefaultPii` is `true`, with sensitive values filtered.

Any [sensitive cookies](https://github.com/getsentry/relay/blob/249971e1702991c64cf0f7f89773fb019ffb4a95/relay-pii/src/convert.rs#L235-L263) that the SDK does send will be stripped by Relay before Sentry stores these.

## [Information About Logged-in User](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#information-about-logged-in-user)

`UserInfo` controls the user information that integrations set automatically. It defaults to `true`. Without `ConfigureDataCollection`, integrations set it only when `SendDefaultPii` is `true`.

Which information you get depends on the integrations you use. ASP.NET Core and ASP.NET read the signed-in user from the request, such as their ID and username. Other apps send the operating system user name, unless `IsEnvironmentUser` is `false`, which is the default for MAUI apps.

A user you set yourself, for example with `SentrySdk.ConfigureScope`, is always sent.

## [Users' IP Address](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#users-ip-address)

`UserInfo` also controls the user's IP address. When it's on, ASP.NET Core and ASP.NET send the client IP address of the request, and the SDK otherwise asks Sentry to infer the IP address from the connection. Without `ConfigureDataCollection`, the SDK does this only when `SendDefaultPii` is `true`.

You can [prevent Sentry from storing IP Addresses](https://docs.sentry.io/platforms/native/enriching-events/identify-user.md#ip_address) either by configuring this in the ["Security & Privacy"](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/:projectId/security-and-privacy/) settings of your Sentry project or using [server-side data scrubbing](https://docs.sentry.io/security-legal-pii/scrubbing/server-side-scrubbing.md).

## [Request URL](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#request-url)

The URL of incoming and outgoing HTTP requests, without its query string, is **always sent to Sentry**. This includes the scheme, host, port, and path. Depending on your application, this could contain PII data.

The spans, breadcrumbs, and failed-request events the SDK creates for an outgoing HTTP request never contain credentials embedded in its URL, such as `https://user:password@example.com`. In other breadcrumbs, such as log messages, and in span descriptions, the SDK replaces them with `[Filtered]` only while `SendDefaultPii` is `false`. It doesn't filter them in event or exception messages, logs, tags, or span data. `ConfigureDataCollection` doesn't change this.

The fragment of a failed outgoing HTTP request follows `UrlQueryParams`. Without `ConfigureDataCollection`, the SDK sends it only when `SendDefaultPii` is `true`.

## [Request Query String](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#request-query-string)

`UrlQueryParams` controls the query string of incoming requests and of failed outgoing HTTP requests. It defaults to a deny list, so the SDK sends the query string with sensitive values filtered. Without `ConfigureDataCollection`, the SDK also sends it, with sensitive values filtered.

The spans of outgoing HTTP requests leave out the query string and fragment. Their breadcrumbs filter the query string with the built-in deny list and keep the fragment. `ConfigureDataCollection` doesn't change them.

## [Request and Response Bodies](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#request-and-response-bodies)

`HttpBodies` controls which HTTP bodies the SDK attaches. It defaults to all of them.

The request and response bodies of failed GraphQL client requests follow `HttpBodies` too. Without `ConfigureDataCollection`, the SDK sends them only when `SendDefaultPii` is `true`.

## [GraphQL Data](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#graphql-data)

`GraphQL.Document` and `GraphQL.Variables` control the document and variables of failed GraphQL client requests. Both default to `true`. Without `ConfigureDataCollection`, the SDK sends them only when `SendDefaultPii` is `true`.

## [Generative AI Inputs and Outputs](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#generative-ai-inputs-and-outputs)

`Sentry.Extensions.AI` records the inputs of AI calls, such as prompts, system instructions, and tool call arguments, and their outputs, such as response text and tool call results. `GenAI.Inputs` and `GenAI.Outputs` control them, and both default to `true`. The `RecordInputs` and `RecordOutputs` options of a chat client override them.

Without `ConfigureDataCollection`, the SDK always records them, unless you turn off `RecordInputs` or `RecordOutputs`.

## [SQL Queries](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#sql-queries)

The SDK sends the SQL statements of SqlClient and Entity Framework Core on spans, and of Entity Framework 6 on spans and breadcrumbs. It never sends the values of query parameters, so a parameterized query is sent as written (`SELECT * FROM users WHERE email = @email`).

When you call `ConfigureDataCollection`, the SDK also replaces literal values in those statements with `?`, so `SELECT * FROM users WHERE email = 'joe@shmoe.com'` is sent as `SELECT * FROM users WHERE email = ?`. Without it, statements are sent as your database client issued them, including any literal values.

Entity Framework Core also logs each command it runs, and the logging integration sends those messages with the statement as written, whether or not you call `ConfigureDataCollection`: as breadcrumbs, as an error event when a command fails, and as logs when `EnableLogs` is on.

## [Machine Name](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#machine-name)

If you assign a value to [`ServerName`](https://docs.sentry.io/platforms/dotnet/guides/android/configuration/options.md#ServerName), the SDK sends it with every event.

Otherwise, ASP.NET Core and ASP.NET apps always send the machine name. Other apps send `Environment.MachineName` only when `SendDefaultPii` is `true`. `ConfigureDataCollection` doesn't control the machine name.

## [General Device Information](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#general-device-information)

The Sentry SDK collects information about the device, such as the version and build of your operating system, CPU and GPU details etc. This information is sent to Sentry by default. `ConfigureDataCollection` doesn't control it.

## [Session Replay](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#session-replay)

`ConfigureDataCollection` doesn't affect Session Replay. By default, Session Replay masks all text content and images, and its own options control what it records. See the native options for [Android](https://docs.sentry.io/platforms/dotnet/guides/android/configuration/native-options.md#session-replay) and [iOS](https://docs.sentry.io/platforms/dotnet/guides/apple/configuration/native-options.md#session-replay).

## [Data Captured by Mobile SDKs](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#data-captured-by-mobile-sdks)

On mobile platforms, the Sentry SDK for .NET can also capture data indirectly via the Android and iOS SDKs. You should refer to the documentation for those SDKs for more information on what data is captured.

* [Android](https://docs.sentry.io/platforms/android/data-management/data-collected.md)
* [iOS](https://docs.sentry.io/platforms/apple/data-management/data-collected.md)

On Android, the SDK passes your `ConfigureDataCollection` settings to the native Android SDK. On iOS, it passes only `UserInfo`.

## [Native Crash Reporting](https://docs.sentry.io/platforms/dotnet/guides/android/data-management/data-collected.md#native-crash-reporting)

When compiling .NET applications Ahead-Of-Time (AOT), native crashes may also be captured. You should refer to [data captured by the Native SDK](https://docs.sentry.io/platforms/native/data-management/data-collected.md) to understand what data is sent with those events.

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
