From 6519f707fb4ff6ac682c2c7527ba19f10f17a98d Mon Sep 17 00:00:00 2001
From: Antonis Lilis
Date: Tue, 27 Oct 2026 13:45:32 +0100
Subject: [PATCH 001/143] docs(react-native): Add Jest "Unexpected token
'export'" troubleshooting (#20251)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## DESCRIBE YOUR PR
Adds a React Native troubleshooting entry for Jest failing with
`SyntaxError: Unexpected token 'export'` when a test imports
`@sentry/react-native` without mocking it.
Since `@sentry/react-native` 8.15.0 (JavaScript SDK 10.58.0), the
`@sentry/*` packages expose a `react-native` export condition that
resolves to their ES module build. The React Native Jest environment
enables that condition, but `jest-expo` only transforms
`@sentry/react-native` and `@react-native/jest-preset` transforms no
`@sentry/*` packages, so Jest loads untransformed ESM from
`@sentry/core` and the other `@sentry/*` packages.
The new section documents how to extend `transformIgnorePatterns` to
cover `@sentry/.*`, both by reusing the `jest-expo` preset's patterns
and for custom configs based on `@react-native/jest-preset`.
Fixes getsentry/sentry-react-native#6953
## 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
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5
---
.../common/troubleshooting/index.mdx | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/docs/platforms/react-native/common/troubleshooting/index.mdx b/docs/platforms/react-native/common/troubleshooting/index.mdx
index 9c383088e35b6..9bf9df3d5c90a 100644
--- a/docs/platforms/react-native/common/troubleshooting/index.mdx
+++ b/docs/platforms/react-native/common/troubleshooting/index.mdx
@@ -128,6 +128,40 @@ This setting applies to **all** class and function names β not just React comp
+## Jest Fails With "Unexpected token 'export'"
+
+Starting with SDK version `8.15.0`, Jest tests that import `@sentry/react-native` without mocking it may fail with:
+
+```
+SyntaxError: Unexpected token 'export'
+```
+
+The error points to a file in `@sentry/core` or another `@sentry/*` package. These packages expose a `react-native` export condition that resolves to their ES module build. The React Native Jest environment enables this condition, but Jest presets don't transform these packages by default, so Jest loads their ES modules without transpiling them.
+
+To fix this, let Babel transform all `@sentry/*` packages. With `jest-expo`, extend the preset's patterns:
+
+```javascript {filename:jest.config.js}
+const preset = require("jest-expo/jest-preset");
+
+module.exports = {
+ preset: "jest-expo",
+ transformIgnorePatterns: preset.transformIgnorePatterns.map((pattern) =>
+ pattern.replace("@sentry/react-native", "@sentry/.*")
+ ),
+};
+```
+
+If you use another preset, or your `jest-expo` version doesn't list `@sentry/react-native` in its `transformIgnorePatterns`, add `@sentry/.*` to your own pattern:
+
+```javascript {filename:jest.config.js}
+module.exports = {
+ preset: "@react-native/jest-preset",
+ transformIgnorePatterns: [
+ "node_modules/(?!((jest-)?react-native|@react-native(-community)?|@sentry/.*)/)",
+ ],
+};
+```
+
## Missing Context on Android NDK Events
If the context - such as breadcrumbs, user, etc. - is missing on Android NDK events, you need to enable the [Scope Synchronization](/platforms/react-native/enriching-events/scopes/#scope-synchronization) feature.
From c8f68d1b370a5c8c65dccc8908b7ce89d1abdcf2 Mon Sep 17 00:00:00 2001
From: Sigrid <32902192+s1gr1d@users.noreply.github.com>
Date: Tue, 27 Oct 2026 13:48:23 +0100
Subject: [PATCH 002/143] docs(nextjs): Document the tunnel route handler and
tunnel credentials (#20075)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## DESCRIBE YOUR PR
Documents the tunnel changes in SDK 11.9.0.
β οΈ Merge this PR only after 10.77.1 and 11.9.0 are released.
- Next.js `tunnelRoute`: add handler mode
(`app/sentry-tunnel/route.ts`). In this mode, a route handler in the app
forwards only the request body to Sentry. Rewrite mode now sends with
`credentials: "omit"`. Apps behind Vercel Deployment Protection or
another login should use handler mode.
- Troubleshooting: list what a custom tunnel must do, add
`handleTunnelRequest`, and add a new "Credentials on Tunnel Requests"
entry.
- Short notes in `options.mdx`, the getting-started includes, the
Next.js setup pages, and TanStack Start.
Related SDK PRs, all going to be released in **11.9.0**:
- getsentry/sentry-javascript#25456
- getsentry/sentry-javascript#25515
- getsentry/sentry-javascript#25509
Backport PRs for **10.77.1**:
- https://github.com/getsentry/sentry-javascript/pull/25559
- https://github.com/getsentry/sentry-javascript/pull/25560
- https://github.com/getsentry/sentry-javascript/pull/25561
## 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
- [x] Other deadline: with the 11.9.0 release
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
---
.../common/configuration/options.mdx | 2 +
.../common/troubleshooting/index.mdx | 51 ++++++++++++-
.../guides/cordova/configuration/options.mdx | 2 +
.../nextjs/configuration/build/index.mdx | 74 +++++++++++++++++--
.../javascript/guides/nextjs/index.mdx | 3 +
.../guides/nextjs/manual-setup/index.mdx | 8 ++
.../nextjs/manual-setup/webpack-setup.mdx | 3 +
.../features/createSentryTunnelRoute.mdx | 2 +-
.../features/sentryTanstackStart.mdx | 2 +-
.../getting-started-tunneling/javascript.mdx | 2 +-
.../javascript.sveltekit.mdx | 2 +-
11 files changed, 137 insertions(+), 14 deletions(-)
diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx
index 37153b6370c62..0953eb5576478 100644
--- a/docs/platforms/javascript/common/configuration/options.mdx
+++ b/docs/platforms/javascript/common/configuration/options.mdx
@@ -87,6 +87,8 @@ Environments are case-sensitive. The environment name can't contain newlines, sp
Sets the URL that will be used to transport captured events. This can be used to work around ad-blockers or to have more granular control over events sent to Sentry. Adding your DSN is still required when using this option so necessary attributes can be set on the generated Sentry data. This option **requires the implementation** of a custom server endpoint. Learn more and find examples in [Dealing with Ad-Blockers](/platforms/javascript/troubleshooting/#dealing-with-ad-blockers).
+The endpoint must forward only the request body to Sentry and accept only your own DSNs. Learn more in [Using the `tunnel` Option](/platforms/javascript/troubleshooting/#using-the-tunnel-option).
+
diff --git a/docs/platforms/javascript/common/troubleshooting/index.mdx b/docs/platforms/javascript/common/troubleshooting/index.mdx
index 27a2e12db5ccf..1fb9a9adef7e9 100644
--- a/docs/platforms/javascript/common/troubleshooting/index.mdx
+++ b/docs/platforms/javascript/common/troubleshooting/index.mdx
@@ -250,7 +250,28 @@ Sentry.init({
});
```
-Once configured, all events will be sent to the `/tunnel` endpoint. This solution, however, requires an additional configuration on the server, as the events now need to be parsed and redirected to Sentry. Here's an example for your server component:
+Once configured, all events will be sent to the `/tunnel` endpoint. This solution, however, requires an additional configuration on the server, as the events now need to be parsed and redirected to Sentry.
+
+Your tunnel endpoint must:
+
+- Forward only the request body to Sentry, without the request headers.
+- Accept only envelopes whose DSN is on a list of allowed DSNs. Otherwise, anyone can use your endpoint to send requests to other servers.
+- Send the envelope only to the host of that DSN.
+
+On a JavaScript server with Fetch API `Request` and `Response` objects, `handleTunnelRequest` from `@sentry/core` (SDK version `10.40.0` and later) does this for you. Starting with versions `10.77.1` (v10) and `11.9.0` (v11), it also rejects requests larger than 20 MiB.
+
+```javascript
+import { handleTunnelRequest } from "@sentry/core";
+
+export async function POST(request) {
+ return handleTunnelRequest({
+ request,
+ allowedDsns: ["___PUBLIC_DSN___"],
+ });
+}
+```
+
+If you implement the endpoint yourself, here's an example for your server component:
```csharp
@@ -334,7 +355,7 @@ const SENTRY_PROJECT_IDS = ["123456"];
export const postAction = async ({ request }) => {
try {
- const envelopeBytes = await req.arrayBuffer();
+ const envelopeBytes = await request.arrayBuffer();
const envelope = new TextDecoder().decode(envelopeBytes);
const piece = envelope.split("\n")[0];
const header = JSON.parse(piece);
@@ -420,6 +441,32 @@ If you would like to copy and paste the snippet directly, here it is minified:
+
+
+The browser SDK doesn't set the [`credentials`](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials) option of `fetch`. With the default value `same-origin`, the browser sends credentials (cookies and HTTP authentication) to a tunnel on the same origin as your app. A tunnel that forwards request headers sends these credentials to Sentry.
+
+
+
+The Next.js `tunnelRoute` option handles this for you. See `tunnelRoute`.
+
+
+
+Forward only the request body, or tell the browser to send no credentials:
+
+```javascript
+Sentry.init({
+ dsn: "___PUBLIC_DSN___",
+ tunnel: "/tunnel",
+ transportOptions: {
+ fetchOptions: { credentials: "omit" },
+ },
+});
+```
+
+If a layer in front of your tunnel requires credentials (for example, Vercel Deployment Protection, Cloudflare Access, or HTTP Basic authentication), it rejects requests without credentials. Keep the default in this case, and make sure that your tunnel doesn't forward the request headers.
+
+
+
diff --git a/docs/platforms/javascript/guides/cordova/configuration/options.mdx b/docs/platforms/javascript/guides/cordova/configuration/options.mdx
index 6955b0c1f4e72..6906a9235b502 100644
--- a/docs/platforms/javascript/guides/cordova/configuration/options.mdx
+++ b/docs/platforms/javascript/guides/cordova/configuration/options.mdx
@@ -51,6 +51,8 @@ Environments are case-sensitive. The environment name can't contain newlines, sp
Sets the URL that will be used to transport captured events. This can be used to work around ad-blockers or to have more granular control over events sent to Sentry. Adding your DSN is still required when using this option so necessary attributes can be set on the generated Sentry data. This option **requires the implementation** of a custom server endpoint. Learn more and find examples in [Dealing with Ad-Blockers](/platforms/javascript/troubleshooting/#dealing-with-ad-blockers).
+The endpoint must forward only the request body to Sentry and accept only your own DSNs. Learn more in [Using the `tunnel` Option](/platforms/javascript/troubleshooting/#using-the-tunnel-option).
+
diff --git a/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx b/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
index 894b524e379ba..17b8795745151 100644
--- a/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
+++ b/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
@@ -205,7 +205,7 @@ Note: Enabling this option can lead to longer build times.
-This feature requires **Next.js version 11+** and doesn't currently work with self-hosted Sentry instances.
+This feature requires **Next.js version 11+**. Rewrite mode doesn't work with self-hosted Sentry instances.
Tunnel Sentry requests through this route on your Next.js server to prevent ad-blockers from blocking Sentry events from being sent.
@@ -215,15 +215,73 @@ This option can be set to:
- `true` for auto-generated routes, which are unpredictable and change with each deployment.
- A custom static string path like `/error-monitoring`.
+
+
+Your middleware (`proxy.ts` or `middleware.ts`) also runs for tunnel requests. On v10, the SDK skips your middleware only in rewrite mode with Webpack. Exclude the tunnel route in its `matcher`. This needs a fixed string, because `true` creates a new path for each build:
+
+```typescript {filename:proxy.ts}
+export const config = {
+ matcher: ["/((?!error-monitoring|_next/static|_next/image|favicon.ico).*)"],
+};
+```
+
+
+
Learn more about tunneling in the troubleshooting section.
-
- If you're using Turbopack, client-side event recording will fail if your
- Next.js middleware intercepts the configured tunnel route. To fix this, set
- the route to a fixed string (like `/error-monitoring`) and add a negative
- matcher like `(?!error-monitoring)` in your middleware to exclude the tunnel
- route. If you're not using Turbopack, Sentry will automatically skip the
- tunnel route in your middleware.
+The tunnel route works in one of two modes:
+
+- **Rewrite mode** (default): A Next.js rewrite proxies each request to Sentry with all its request headers. Works only with Sentry SaaS DSNs.
+- **Handler mode**: A route handler in your app forwards only the request body to Sentry. Works with any DSN.
+
+Starting with versions `10.77.1` (v10) and `11.9.0` (v11), the browser sends tunnel requests in rewrite mode [with `credentials: "omit"`](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials).
+If a layer in front of your app requires credentials (for example, Vercel Deployment Protection or HTTP Basic authentication), it rejects these requests. Use handler mode in this case.
+You can also set `credentials: "same-origin"`, but rewrite mode then forwards the credentials to Sentry:
+
+```javascript {filename:instrumentation-client.ts}
+Sentry.init({
+ dsn: "___PUBLIC_DSN___",
+ transportOptions: {
+ fetchOptions: { credentials: "same-origin" },
+ },
+});
+```
+
+**Handler mode**
+
+
+
+Keep `tunnelRoute` and add this file. If your app uses a `src` directory, add it at `src/app/sentry-tunnel/route.ts`:
+
+```typescript {filename:app/sentry-tunnel/route.ts}
+export { POST } from "@sentry/nextjs/tunnel";
+```
+
+This works with any `tunnelRoute` value, including `true`. When the SDK finds the file, the build prints this line:
+
+```bash
+[@sentry/nextjs] The tunnel route sends events through app/sentry-tunnel/route.ts. Only the event payload goes to Sentry.
+```
+
+If the line is missing, the SDK uses rewrite mode.
+
+The handler accepts only the DSN of your server-side SDK. It rejects other DSNs with a `403` and requests larger than 20 MiB with a `413`. If your browser SDK uses a different DSN, list the allowed DSNs:
+
+```typescript {filename:app/sentry-tunnel/route.ts}
+import { createSentryTunnelRoute } from "@sentry/nextjs/tunnel";
+
+export const { POST } = createSentryTunnelRoute({
+ allowedDsns: ["___PUBLIC_DSN___"],
+});
+```
+
+
+
+- Handler mode works only with the App Router.
+- The SDK doesn't find the file in a route group, such as `app/(group)/sentry-tunnel/`.
+- With `"moduleResolution": "node"` in `tsconfig.json`, the type check fails with `Cannot find module '@sentry/nextjs/tunnel'`. Set `moduleResolution` to `bundler`, `node16`, or `nodenext`.
+- Each event request runs the route handler. On serverless hosts, this is one function invocation for each request.
+
diff --git a/docs/platforms/javascript/guides/nextjs/index.mdx b/docs/platforms/javascript/guides/nextjs/index.mdx
index d5a6b14c9e06d..71fff4aae652d 100644
--- a/docs/platforms/javascript/guides/nextjs/index.mdx
+++ b/docs/platforms/javascript/guides/nextjs/index.mdx
@@ -139,6 +139,9 @@ If you use the App Router, the wizard adds Sentry to `app/global-error.tsx` to c
The wizard wraps your Next.js configuration with `withSentryConfig`. This instruments your app at build time, uploads source maps, and, if you said yes in the wizard, routes browser requests to Sentry through your server to avoid ad blockers.
+To forward only the request body to Sentry, add a tunnel route handler (SDK version `10.77.1` and later on v10, `11.9.0` and later on v11). Use the handler if Vercel Deployment Protection or another login protects your app.
+Learn more about the [`tunnelRoute` option](/platforms/javascript/guides/nextjs/configuration/build/#tunnelRoute).
+
```typescript {filename:next.config.ts}
import type { NextConfig } from "next";
import { withSentryConfig } from "@sentry/nextjs/config";
diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx
index f8abeb4a8cb59..ddbc212f18dea 100644
--- a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx
+++ b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx
@@ -254,6 +254,9 @@ Prevent ad blockers from blocking Sentry events by routing them through your Nex
This increases server load. Consider the trade-off for your application.
+To forward only the request body to Sentry, also add `app/sentry-tunnel/route.ts` (SDK version `10.77.1` and later on v10, `11.9.0` and later on v11).
+Use this file if Vercel Deployment Protection or another login protects your app. Learn more in `tunnelRoute`.
+
If you're using Next.js proxy/middleware that intercepts requests, exclude the tunnel route. The file is called `proxy.ts` in Next.js 16+ and `middleware.ts` in Next.js 15:
@@ -273,6 +276,11 @@ export default withSentryConfig(nextConfig, {
});
```
+```typescript {filename:app/sentry-tunnel/route.ts}
+// Forward only the request body to Sentry
+export { POST } from "@sentry/nextjs/tunnel";
+```
+
### Control the Data You Send to Sentry (Optional)
diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/webpack-setup.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/webpack-setup.mdx
index 9b941ed5e3ad2..8e51afc5e733f 100644
--- a/docs/platforms/javascript/guides/nextjs/manual-setup/webpack-setup.mdx
+++ b/docs/platforms/javascript/guides/nextjs/manual-setup/webpack-setup.mdx
@@ -222,6 +222,9 @@ Tunneling works identically for both Webpack and Turbopack. Sentry automatically
Enable tunneling to bypass ad-blockers. Use a fixed route so you can exclude it from middleware if needed.
+To forward only the request body to Sentry, add a tunnel route handler (SDK version `10.77.1` and later on v10, `11.9.0` and later on v11).
+Use the handler if Vercel Deployment Protection or another login protects your app. Learn more about the [`tunnelRoute` option](/platforms/javascript/guides/nextjs/configuration/build/#tunnelRoute).
+
You can use `tunnelRoute: true` to auto-generate a random route. However, random routes cannot be excluded from middleware matchers since the route changes on each build. This may cause issues if you have middleware that intercepts all requests.
diff --git a/docs/platforms/javascript/guides/tanstackstart-react/features/createSentryTunnelRoute.mdx b/docs/platforms/javascript/guides/tanstackstart-react/features/createSentryTunnelRoute.mdx
index 0242e493afbca..d3244d9717c84 100644
--- a/docs/platforms/javascript/guides/tanstackstart-react/features/createSentryTunnelRoute.mdx
+++ b/docs/platforms/javascript/guides/tanstackstart-react/features/createSentryTunnelRoute.mdx
@@ -13,7 +13,7 @@ description: "Learn how to manually define a Sentry tunnel route in your TanStac
the route file, the DSN allowlist, or can't use the Vite plugin.
-The `createSentryTunnelRoute` helper returns a TanStack Start server-route configuration with a `POST` handler that forwards Sentry envelopes to Sentry's ingest servers. Use it inside a file route to expose a same-origin tunnel endpoint.
+The `createSentryTunnelRoute` helper returns a TanStack Start server-route configuration with a `POST` handler that forwards Sentry envelopes to Sentry's ingest servers. Use it inside a file route to expose a same-origin tunnel endpoint. It forwards only the request body to Sentry.
## Usage
diff --git a/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx b/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
index ab4ae0a30a655..202086bd256c2 100644
--- a/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
+++ b/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
@@ -97,7 +97,7 @@ sentryTanstackStart({
-The `tunnelRoute` option registers a same-origin TanStack Start server route that forwards Sentry envelopes to Sentry's ingest servers. It also automatically sets the client `tunnel` option in `Sentry.init()` so browser events go through that route. This helps avoid ad blockers and corporate firewalls that block requests to `*.sentry.io`.
+The `tunnelRoute` option registers a same-origin TanStack Start server route that forwards Sentry envelopes to Sentry's ingest servers. It also automatically sets the client `tunnel` option in `Sentry.init()` so browser events go through that route. This helps avoid ad blockers and corporate firewalls that block requests to `*.sentry.io`. It forwards only the request body to Sentry.
`tunnelRoute` accepts three shapes:
diff --git a/platform-includes/getting-started-tunneling/javascript.mdx b/platform-includes/getting-started-tunneling/javascript.mdx
index 99e9fa6eea924..12c290d10e01f 100644
--- a/platform-includes/getting-started-tunneling/javascript.mdx
+++ b/platform-includes/getting-started-tunneling/javascript.mdx
@@ -1,6 +1,6 @@
You can prevent ad blockers from blocking Sentry events using tunneling. Use the `tunnel` option in `Sentry.init` to add an API endpoint in your application that forwards Sentry events to Sentry servers.
-This will send all events to the `tunnel` endpoint. However, the events need to be parsed and redirected to Sentry, so you'll need to do additional configuration on the server. You can find a detailed explanation on how to do this on our Troubleshooting page.
+This will send all events to the `tunnel` endpoint. However, the events need to be parsed and redirected to Sentry, so you'll need to do additional configuration on the server. The endpoint must forward only the request body to Sentry and accept only your own DSN. You can find a detailed explanation on how to do this on our Troubleshooting page.
```javascript {3}
Sentry.init({
diff --git a/platform-includes/getting-started-tunneling/javascript.sveltekit.mdx b/platform-includes/getting-started-tunneling/javascript.sveltekit.mdx
index 7a1e6d6768bc2..3b1ef2770c630 100644
--- a/platform-includes/getting-started-tunneling/javascript.sveltekit.mdx
+++ b/platform-includes/getting-started-tunneling/javascript.sveltekit.mdx
@@ -1,6 +1,6 @@
You can prevent ad blockers from blocking Sentry events using tunneling. Use the `tunnel` option inside your `hooks.client.(js|ts)` file's `Sentry.init` to add an API endpoint in your application that forwards Sentry events to Sentry servers.
-This will send all events to the `tunnel` endpoint. However, the events need to be parsed and redirected to Sentry, so you'll need to do additional configuration on the server. You can find a detailed explanation on how to do this on our [Troubleshooting page](/platforms/javascript/guides/sveltekit/troubleshooting/#using-the-tunnel-option).
+This will send all events to the `tunnel` endpoint. However, the events need to be parsed and redirected to Sentry, so you'll need to do additional configuration on the server. The endpoint must forward only the request body to Sentry and accept only your own DSN. You can find a detailed explanation on how to do this on our [Troubleshooting page](/platforms/javascript/guides/sveltekit/troubleshooting/#using-the-tunnel-option).
```javascript {filename:hooks.client.(js|ts)} {3}
Sentry.init({
From 6cfc86f37153fae0635b381909f9ebc5c9ba2c53 Mon Sep 17 00:00:00 2001
From: Antonis Lilis
Date: Tue, 27 Oct 2026 15:26:16 +0100
Subject: [PATCH 003/143] docs(react-native): Document opening the feedback
form over a presented sheet on iOS (#20255)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## DESCRIBE YOUR PR
Adds a troubleshooting subsection to the React Native **User Feedback**
page covering a platform limitation on iOS: because UIKit allows only
one presentation per view controller, the default `Modal`-based Feedback
Form (`showFeedbackForm()`, shake-to-report, the auto-injected button)
can't open while a native-stack screen is presented as a sheet
(`presentation: "formSheet" | "modal"`). The form silently doesn't
appear. Android is unaffected.
The new section documents the supported workaround: render the
`FeedbackForm` component yourself and, on iOS, wrap it in
react-native-screens' `FullWindowOverlay` so it draws above the
presented sheet (with a `Modal` fallback on Android).
Context: getsentry/sentry-react-native#6875. A proper default-on fix
(native own-window presentation) is tracked there as an enhancement;
this documents the supported path in the meantime.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8
---
.../common/user-feedback/index.mdx | 46 +++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/docs/platforms/react-native/common/user-feedback/index.mdx b/docs/platforms/react-native/common/user-feedback/index.mdx
index a7ccd6c7cbf4f..ff6fe7c7d6eae 100644
--- a/docs/platforms/react-native/common/user-feedback/index.mdx
+++ b/docs/platforms/react-native/common/user-feedback/index.mdx
@@ -93,6 +93,52 @@ Note that when the device is offline, the feedback will be stored locally and se
+### Opening the Feedback Form Over a Presented Sheet on iOS
+
+On iOS, `Sentry.showFeedbackForm()`, shake-to-report, and the auto-injected feedback button present the Feedback Form inside a React Native `Modal`. UIKit only allows one presentation per view controller, so when a native-stack screen is already presented as a sheet (`presentation: "formSheet"` or `"modal"` with `@react-navigation/native-stack`), UIKit refuses the second presentation and the form doesn't appear. Android is unaffected.
+
+To collect feedback while such a sheet is open, render the [`FeedbackForm`](#feedback-form-component) component yourself and control its visibility. On iOS, wrap it in react-native-screens' `FullWindowOverlay` so it draws above the presented sheet:
+
+```jsx
+import { useState } from "react";
+import { Button, Modal, Platform, StyleSheet, View } from "react-native";
+import { FeedbackForm } from "@sentry/react-native";
+import { FullWindowOverlay } from "react-native-screens";
+
+function FeedbackButton() {
+ const [visible, setVisible] = useState(false);
+ const close = () => setVisible(false);
+
+ // Pass the same options you'd give `feedbackIntegration(...)`
+ // (formTitle, namePlaceholder, styles, imagePicker, and so on).
+ const form = (
+
+
+
+ );
+
+ return (
+ <>
+
-
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
Date: Tue, 27 Oct 2026 21:08:47 +0100
Subject: [PATCH 025/143] docs(elixir): Correct the default HTTP client
(#20246)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## DESCRIBE YOUR PR
The Elixir `client` option docs say the default HTTP client is
`Sentry.HackneyClient`. Since version 12.0.0, the SDK has used
`Sentry.FinchClient` by default.
**Source evidence (sentry-elixir `14.0.0`):**
[`lib/sentry/config.ex`](https://github.com/getsentry/sentry-elixir/blob/14.0.0/lib/sentry/config.ex)
defines `client: [type: :atom, default: Sentry.FinchClient, ...]`, and
its doc says the default "changed from Hackney to Finch in v12.0.0".
`:hackney` and `:finch` are both optional dependencies in `mix.exs`.
**Corrected wording:** "Defaults to `Sentry.FinchClient`, which is based
on the [Finch](https://hexdocs.pm/finch) HTTP client. The default
changed from `Sentry.HackneyClient` to `Sentry.FinchClient` in version
12.0.0."
The `hackney_*` options already say they only apply when `client` is set
to `Sentry.HackneyClient`, so they still read correctly.
cc @solnic
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
via [automation
`sched_fe39d4dd0d4e77a4b4463de325041d04`](https://junior-prod.sentry.dev/automations/sched_fe39d4dd0d4e77a4b4463de325041d04)
Β· Run ID `sched_fe39d4dd0d4e77a4b4463de325041d04:1793088000000`.
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_ebf5f0d7704acbc7b78cc23a35e9d8b7)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_ebf5f0d7704acbc7b78cc23a35e9d8b7/?project=4510944073809921)
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
---
docs/platforms/elixir/configuration/options.mdx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/platforms/elixir/configuration/options.mdx b/docs/platforms/elixir/configuration/options.mdx
index 1296f54faf8ba..9e5637771fe85 100644
--- a/docs/platforms/elixir/configuration/options.mdx
+++ b/docs/platforms/elixir/configuration/options.mdx
@@ -104,9 +104,9 @@ The maximum number of attempts to send an event to Sentry.
-
+
-The HTTP client to use for sending events to Sentry. This must be a module that implements the [`Sentry.HTTPClient`](https://hexdocs.pm/sentry/Sentry.HTTPClient.html) behaviour. Defaults to `Sentry.HackneyClient`, which is based on the [Hackney](https://hexdocs.pm/hackney) HTTP client.
+The HTTP client to use for sending events to Sentry. This must be a module that implements the [`Sentry.HTTPClient`](https://hexdocs.pm/sentry/Sentry.HTTPClient.html) behaviour. Defaults to `Sentry.FinchClient`, which is based on the [Finch](https://hexdocs.pm/finch) HTTP client. The default changed from `Sentry.HackneyClient` to `Sentry.FinchClient` in version 12.0.0.
From c14d654dfd5b34978a352c40b83ca61450f458dc Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 13:21:04 -0700
Subject: [PATCH 026/143] feat(docs): Apply new quick start template to Unreal
Engine quick start guide (#20013)
## DESCRIBE YOUR PR
Applies the quick start template from #19295 (Ember) to the Unreal
Engine quick start (`docs/platforms/unreal/index.mdx`), single-column.
- Configure names Error Monitoring (with automatic crash capture),
Release Health, Tracing (manual instrumentation), Logs and Application
Metrics. Session Replay (experimental, UE 5.4+, no masking) and User
Feedback are named and linked but not turned on. Profiling and Crons
aren't supported and are left out.
- The setup snippet uses `Config/DefaultEngine.ini` (what **Project
Settings > Plugins > Sentry** writes) and includes all options by
default, with a note that unwanted ones can be removed.
- **Tracing** sets both `EnableTracing=True` and `TracesSampleRate`. The
SDK ignores the sample rate unless `EnableTracing` is on; the current
Unreal tracing docs only show `TracesSampleRate`.
- **Logs** and **Application Metrics:** new steps; both on by default
from SDK 1.11.0.
- Crash reporter setup, debug symbol upload and minidump storage moved
into Configure. The shared `store-minidumps-as-attachments-*` includes
are no longer used on this page but are unchanged.
- Simplifies Verify to a single test message.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
via **shannon.anahata**.
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129/?project=4510944073809921)
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Shannon Anahata
Co-authored-by: Ivan Tustanivskyi
Co-authored-by: Shannon Anahata
---
docs/platforms/unreal/index.mdx | 176 ++++++++++++++++++++++----------
1 file changed, 124 insertions(+), 52 deletions(-)
diff --git a/docs/platforms/unreal/index.mdx b/docs/platforms/unreal/index.mdx
index 93e89d36ff5b5..6489f7a6d2c75 100644
--- a/docs/platforms/unreal/index.mdx
+++ b/docs/platforms/unreal/index.mdx
@@ -1,6 +1,6 @@
---
title: Unreal Engine
-description: "Learn how to set up Sentry's Unreal Engine SDK for error monitoring and performance tracking."
+description: "Learn how to set up Sentry's Unreal Engine SDK and capture your first events."
caseStyle: PascalCase
supportLevel: production
sdk: sentry.unreal
@@ -12,30 +12,7 @@ categories:
og_image: /og-images/platforms-unreal.png
---
-Unreal Engine SDK builds on top of other Sentry SDKs and extends them with Unreal Engine specific features. It gives developers helpful hints for where and why an error or performance issue might have occurred.
-
-**Features:**
-
-- Native support for automatic crash error tracking for
- - Windows (UE 5.2+) and Linux by using the [Native SDK](/platforms/native/) to support C and C++ with minidumps
- - macOS by using the [macOS SDK](/platforms/apple/guides/macos/) to support Objective-C, Swift, C and C++
- - iOS by using the [iOS SDK](/platforms/apple/guides/ios/) to support Objective-C, Swift, C and C++
- - Android by using the [Android SDK](/platforms/android/) to support Java, Kotlin, C and C++
-- [Crash Reporter](/platforms/unreal/configuration/crash-reporter/) support
- - [Sentry Crash Reporter](/platforms/unreal/configuration/crash-reporter/sentry-crash-reporter/) - standalone app for collecting user feedback after a crash
- - Compatibility with the default [Crash Reporter Client](/platforms/unreal/configuration/crash-reporter/crash-reporter-client/) provided along with Unreal Engine
-- [PlayStation](/platforms/playstation/), [Xbox](/platforms/xbox/) and [Nintendo Switch](/platforms/nintendo-switch/) support
-- [Release health](/platforms/unreal/configuration/releases/) to keep track of crash free users and sessions
-- [Session Replay](/platforms/unreal/session-replay/) (experimental) to capture gameplay video of the moments before a crash
-- [Structured Logging](/platforms/unreal/logs/) to capture and send log messages with additional context
-- [Metrics](/platforms/unreal/metrics/) to track counters, gauges, and distributions
-- [Offline Caching](/platforms/unreal/configuration/options/#EnableOfflineCaching) stores event data to disk in case the device is not online
-
-
-
-To automatically capture crashes on Windows with UE 5.1 or older, you have to configure the [Crash Reporter Client](/platforms/unreal/configuration/crash-reporter/crash-reporter-client/). Starting from UE 5.2, the provided API allows you to switch between default (CRC) and third-party (Sentry) crash-handling solutions, so the CRC configuration step isn't required. The two are mutually exclusive and can't be used simultaneously.
-
-
+The Unreal Engine SDK builds on top of other Sentry SDKs and extends them with Unreal Engine-specific features. It gives developers helpful hints for where and why an error or performance issue might have occurred.
On this page, we get you up and running with Sentry's SDK.
@@ -76,12 +53,38 @@ On arm64 architecture, Linux is supported with UE 5.0+ and Windows with UE 5.2+.
## Configure
-The minimum configuration required is the [DSN](/concepts/key-terms/dsn-explainer/) of your project:
+**Error Monitoring**, including automatic crash capture, starts working as soon as the SDK initializes with your [DSN](/concepts/key-terms/dsn-explainer/). **Release Health** session tracking is on by default. **Logs** and **Application Metrics** need no extra configuration, and you'll learn how to send them in [Send Logs](#send-logs) and [Send Application Metrics](#send-application-metrics-).
-```json {tabTitle: Public DSN}
-{
- "public-dsn": "___PUBLIC_DSN___"
-}
+This guide also enables **Tracing**. The Unreal Engine SDK also supports **Session Replay** (experimental) to capture gameplay video of the moments before a crash, and **User Feedback**; see Set Up Session Replay and Set Up User Feedback.
+
+Configure the SDK in the editor under **Project Settings > Plugins > Sentry**. The editor saves these settings to your project's `Config/DefaultEngine.ini` file, so you can also add them there directly.
+
+
+
+The snippet also turns on:
+
+- Tracing: via **Enable tracing** (`EnableTracing`) and `TracesSampleRate`. Tracing captures the transactions you create with custom instrumentation.
+- User IP address and device name collection: via `SendDefaultPii`. Review the data your game sends before enabling this in production.
+- Screenshots on crash and ensure events (not supported on Android): via `AttachScreenshot`. Only enable this if your game doesn't render sensitive data on screen.
+
+Don't need a feature? Remove its options from the snippet.
+
+```ini {filename:Config/DefaultEngine.ini}
+[/Script/Sentry.SentrySettings]
+; Required: set your Sentry project identifier (DSN)
+Dsn="___PUBLIC_DSN___"
+
+; Enables Tracing.
+; Set to 1.0 to capture 100% of transactions for tracing.
+; We recommend reducing this value in production.
+EnableTracing=True
+TracesSampleRate=1.0
+
+; Adds data like the user's IP address and device name.
+SendDefaultPii=True
+
+; Attaches a screenshot to crash and ensure events.
+AttachScreenshot=True
```
@@ -90,18 +93,91 @@ If you are logged in, you can also go to your [project settings](https://sentry.
-Sentry can be configured using the Sentry configuration window.
-The window can be accessed by going to editor's menu: **Project Settings > Plugins > Sentry**.
+### Initialize the SDK
-
+By default, the SDK is automatically initialized on application startup. Alternatively, the **Initialize SDK automatically** option can be disabled and in this case, explicit SDK initialization is required.
+
+To override SDK settings at runtime, use the `InitializeWithSettings` method of the `SentrySubsystem` class. See Options for all available settings.
+
+```cpp
+#include "SentrySubsystem.h"
+
+USentrySubsystem* SentrySubsystem = GEngine->GetEngineSubsystem();
+
+SentrySubsystem->InitializeWithSettings(FConfigureSettingsNativeDelegate::CreateLambda([=](USentrySettings* Settings)
+{
+ Settings->Dsn = TEXT("___PUBLIC_DSN___");
+ Settings->EnableTracing = true;
+ Settings->TracesSampleRate = 1.0f;
+ Settings->SendDefaultPii = true;
+ Settings->AttachScreenshot = true;
+}));
+```
+
+### Set Up Crash Reporting
+
+The SDK automatically captures crashes on:
+
+- Windows (UE 5.2+) and Linux by using the [Native SDK](/platforms/native/) to support C and C++ with minidumps
+- macOS by using the [macOS SDK](/platforms/apple/guides/macos/) to support Objective-C, Swift, C and C++
+- iOS by using the [iOS SDK](/platforms/apple/guides/ios/) to support Objective-C, Swift, C and C++
+- Android by using the [Android SDK](/platforms/android/) to support Java, Kotlin, C and C++
+
+To automatically capture crashes on Windows with UE 5.1 or older, you have to configure the [Crash Reporter Client](/platforms/unreal/configuration/crash-reporter/crash-reporter-client/). Starting from UE 5.2, the provided API allows you to switch between default (CRC) and third-party (Sentry) crash-handling solutions, so the CRC configuration step isn't required. The two are mutually exclusive and can't be used simultaneously.
+
+To collect feedback from players after a crash, use the [Sentry Crash Reporter](/platforms/unreal/configuration/crash-reporter/sentry-crash-reporter/), a standalone app supported on Windows and Linux. For PlayStation, Xbox, and Nintendo Switch, see [Game Consoles](/platforms/unreal/game-consoles/).
-By default, the SDK is automatically initialized on application startup. Alternatively, the `Initialize SDK automatically` option can be disabled and in this case, explicit SDK initialization is required.
+### Upload Debug Symbols
-To override SDK settings at runtime, use the `InitializeWithSettings` method of the `SentrySubsystem` class.
+Sentry requires [debug information files](/platforms/unreal/data-management/debug-files/) to symbolicate crashes. The automated debug symbols upload is disabled by default. To turn it on, go to **Project Settings > Plugins > Sentry**, enable **Upload debug symbols automatically**, and enter your [Auth Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/), Organization Slug, and Project Name.
-## Verify
+See [Debug Symbols Uploading](/platforms/unreal/configuration/debug-symbols/) for environment variable configuration, manual upload with `sentry-cli`, and macOS and iOS setup.
-This snippet includes message capturing, so you can test that everything is working as soon as you set it up:
+### Store Minidumps as Attachments
+
+By default, Sentry only uses minidump files to create events and immediately drops them, because [minidumps](/platforms/native/guides/minidumps/#what-is-a-minidump) may contain sensitive information about the target system. To keep them, enable _Store Minidumps As Attachments_ in your [organization](https://sentry.io/orgredirect/organizations/:orgslug/settings/security-and-privacy/) or [project settings](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/:projectId/security-and-privacy/) under **Security & Privacy**. This feature is supported on Windows, Linux, and Android.
+
+See [Store Minidumps as Attachments](/platforms/unreal/data-management/store-minidumps-as-attachments/) for retention and per-issue limits.
+
+## Send Logs
+
+Use the logging methods on the Sentry subsystem to send logs at different levels, such as `LogInfo`, `LogWarning`, or `LogError`. You can pass an optional category to organize your logs. Logs require Unreal Engine SDK version `1.2.0` or later and are enabled by default starting with version `1.11.0`.
+
+To also forward Unreal Engine's native `UE_LOG` calls, enable the severity levels you want to send in the Logs setup.
+
+See Set Up Logs for all available logging methods, attributes, and configuration options.
+
+```cpp
+#include "SentrySubsystem.h"
+
+USentrySubsystem* SentrySubsystem = GEngine->GetEngineSubsystem();
+
+SentrySubsystem->LogInfo(TEXT("User completed tutorial"));
+SentrySubsystem->LogWarning(TEXT("Failed to load texture asset"), TEXT("AssetLoading"));
+SentrySubsystem->LogError(TEXT("Database connection failed"), TEXT("Database"));
+```
+
+## Send Application Metrics
+
+Use the Sentry subsystem to send counters, gauges, and distributions from your game to Sentry. Metrics require Unreal Engine SDK version `1.7.0` or later and are enabled by default starting with version `1.11.0`.
+
+The SDK can also collect frame time, GC pause, game stats, and network metrics automatically. Enable them under **Project Settings > Plugins > Sentry > Metrics > Performance**, as described in Automatic Metrics.
+
+See Set Up Metrics for all available metric types and configuration options.
+
+```cpp
+#include "SentrySubsystem.h"
+
+USentrySubsystem* SentrySubsystem = GEngine->GetEngineSubsystem();
+
+SentrySubsystem->AddCount(TEXT("api.requests"), 1);
+SentrySubsystem->AddGauge(TEXT("active_connections"), 42, USentryUnitHelper::MakeSentryUnit(ESentryUnit::None));
+SentrySubsystem->AddDistribution(TEXT("response.time"), 150.5f, USentryUnitHelper::MakeSentryUnit(ESentryUnit::Millisecond));
+```
+
+## Verify Your Setup
+
+Capture a test message to confirm that Sentry is receiving data from your project:
```cpp
#include "SentrySubsystem.h"
@@ -114,26 +190,22 @@ void Verify()
}
```
-The same result can be achieved by calling corresponding function in blueprint:
+The same result can be achieved by calling the corresponding function in Blueprint:

-
-
-Learn more about manually capturing an error or message in our Usage documentation.
-
-
-
-To view and resolve the recorded error, log into [sentry.io](https://sentry.io) and select your project. Clicking on the error's title will open a page where you can see detailed information and mark it as resolved.
+### View Captured Data in Sentry
-## Store Minidumps as Attachments
-
-
-
-β This feature is supported on Windows, Linux, and Android.
-
-
+To view and resolve the recorded message, log into [sentry.io](https://sentry.io) and select your project. Select **Issues** in the sidebar to find the new issue, then click its title to see detailed information and mark it as resolved.
## Next Steps
+At this point, you should have integrated Sentry into your Unreal Engine project. Here's what to explore next:
+
- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Learn how to manually capture errors and messages
+- Instrument more operations with custom instrumentation
+- Set up Session Replay
+ (experimental) to capture gameplay video of the moments before a crash
+- Collect User Feedback from
+ your players
From beb9906ea875533cef2900b0af1f5ca199882c62 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 21:41:24 +0000
Subject: [PATCH 027/143] Bump API schema to 9f048abe (#20276)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 8b7a9f775999a..4974c9cf39750 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '2fc9a1384c6c1ae21aa070e2e76fb21482791b07';
+const SENTRY_API_SCHEMA_SHA = '9f048abeb531ed4bfa183fca51d9357f5854e035';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 2ef8482916a3bf3a65afbecd635ed67599c29916 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 21:44:53 +0000
Subject: [PATCH 028/143] Bump API schema to 42958f35 (#20277)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 4974c9cf39750..d4d764f09f4e9 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '9f048abeb531ed4bfa183fca51d9357f5854e035';
+const SENTRY_API_SCHEMA_SHA = '42958f353ec9cd48951c98610ec163a870e6b084';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 9c360064f1044dd817ce79c1052973a16a8d2596 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 22:55:15 +0000
Subject: [PATCH 029/143] Bump API schema to 00fa7483 (#20279)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index d4d764f09f4e9..43302298e9caa 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '42958f353ec9cd48951c98610ec163a870e6b084';
+const SENTRY_API_SCHEMA_SHA = '00fa7483665ef801a55b8e047cf4eb4803718d68';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From c17799b5cae1548a8cd41fb6e1b9d280fadf0ffb Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Tue, 27 Oct 2026 22:58:34 +0000
Subject: [PATCH 030/143] Bump API schema to 097c4399 (#20280)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 43302298e9caa..5d04d7169034f 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '00fa7483665ef801a55b8e047cf4eb4803718d68';
+const SENTRY_API_SCHEMA_SHA = '097c439915927de612a3dcb51393e543d91f4938';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 79dc9fc3fe19db9a60e843434c2bc126366fd537 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 07:32:24 +0000
Subject: [PATCH 031/143] Bump API schema to 2af850c3 (#20281)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 5d04d7169034f..758d536ea13e2 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '097c439915927de612a3dcb51393e543d91f4938';
+const SENTRY_API_SCHEMA_SHA = '2af850c334a6d82597c3423e3f7d65ca483ea4b0';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 6adceb4cc520639281b5e9552180c9f3ac2d8ccc Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 07:43:25 +0000
Subject: [PATCH 032/143] Bump API schema to c22a3401 (#20282)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 758d536ea13e2..9c914f0a741bc 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '2af850c334a6d82597c3423e3f7d65ca483ea4b0';
+const SENTRY_API_SCHEMA_SHA = 'c22a3401c4e45aaaec56d1ac3b370e1a3b3b2621';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 10c6967f08b616cbabcf59cc10f61abc6a6ac9da Mon Sep 17 00:00:00 2001
From: J-P Nurmi
Date: Wed, 28 Oct 2026 10:09:48 +0100
Subject: [PATCH 033/143] docs(native): HTTP retry and offline caching (#20259)
## DESCRIBE YOUR PR
Neither feature was properly documented for Native. Add dedicated
sections to the transports page that explain what gets retried, the
backoff, the cache modes and limits, and how they interact with user
consent.
List the related options on the options page, and mention the
`cache_dir` header on the external crash reporter page.
## 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
- [x] 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:_
- [x] Checked Vercel preview for correctness, including links
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
## LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
---
.../external-crash-reporter/index.mdx | 4 ++
.../native/common/configuration/options.mdx | 40 ++++++++++++++++
.../native/configuration/transports.mdx | 48 +++++++++++++++++++
3 files changed, 92 insertions(+)
diff --git a/docs/platforms/native/advanced-usage/external-crash-reporter/index.mdx b/docs/platforms/native/advanced-usage/external-crash-reporter/index.mdx
index 9128c24e92970..249812a9ab8d3 100644
--- a/docs/platforms/native/advanced-usage/external-crash-reporter/index.mdx
+++ b/docs/platforms/native/advanced-usage/external-crash-reporter/index.mdx
@@ -29,3 +29,7 @@ sentry_options_set_external_crash_reporter_path(options, "/path/to/external_cras
/* ... */
sentry_init(options);
```
+
+If [offline caching](/platforms/native/configuration/transports/#offline-caching)
+is enabled, the crash report has a `cache_dir` envelope header with the path of
+the cache directory.
diff --git a/docs/platforms/native/common/configuration/options.mdx b/docs/platforms/native/common/configuration/options.mdx
index da7900b82315e..5220c6c43ce33 100644
--- a/docs/platforms/native/common/configuration/options.mdx
+++ b/docs/platforms/native/common/configuration/options.mdx
@@ -92,6 +92,12 @@ Set this boolean to `false` to disable client reports. Client reports are a prot
+
+
+Disables uploads until the user has given consent to the SDK. Give consent with `sentry_user_consent_give` and revoke it with `sentry_user_consent_revoke`. The SDK discards envelopes captured before consent is given, unless [offline caching](/platforms/native/configuration/transports/#offline-caching) or [HTTP retry](/platforms/native/configuration/transports/#retrying-failed-uploads) is enabled.
+
+
+
## Hooks
These options can be used to hook the SDK in various ways to customize the reporting of events.
@@ -177,3 +183,37 @@ Must be combined with regular calls to `sentry_app_hang_heartbeat()` from the th
Sets the app-hang detection timeout, in milliseconds. If `enable_app_hang_tracking` is enabled and no heartbeat is received from the monitored thread within this window, an app-hang event is captured.
+
+## Transport Options
+
+These options control how the HTTP transport retries and caches envelopes. See the [Transports page](/platforms/native/configuration/transports/) for a full explanation and usage example.
+
+
+
+Enables or disables HTTP retry with exponential backoff for network failures. See [Retrying Failed Uploads](/platforms/native/configuration/transports/#retrying-failed-uploads).
+
+
+
+
+
+Controls if and when the SDK keeps envelopes in a persistent cache, in the `cache/` subdirectory of the database path. See [Offline Caching](/platforms/native/configuration/transports/#offline-caching).
+
+
+
+
+
+Sets the maximum number of items in the cache directory. On startup, the SDK removes cached entries from oldest to newest until the directory contains at most the specified number of items. Set to `0` for no limit. See [Offline Caching](/platforms/native/configuration/transports/#offline-caching).
+
+
+
+
+
+Sets the maximum size in bytes for the cache directory. On startup, the SDK removes cached entries from oldest to newest until the directory size is within the limit. Set to `0` for no limit. See [Offline Caching](/platforms/native/configuration/transports/#offline-caching).
+
+
+
+
+
+Sets the maximum age in seconds for entries in the cache directory. On startup, the SDK removes cached entries exceeding the limit. Set to `0` for no limit. See [Offline Caching](/platforms/native/configuration/transports/#offline-caching).
+
+
diff --git a/docs/platforms/native/configuration/transports.mdx b/docs/platforms/native/configuration/transports.mdx
index f65b91b6067a0..58ba78a72c457 100644
--- a/docs/platforms/native/configuration/transports.mdx
+++ b/docs/platforms/native/configuration/transports.mdx
@@ -83,3 +83,51 @@ sentry_init(options);
/* ... */
```
+
+## Retrying Failed Uploads
+
+To enable retrying failed uploads, use the `sentry_options_set_http_retry` function:
+
+```c
+sentry_options_t *options = sentry_options_new();
+sentry_options_set_http_retry(options, 1);
+sentry_init(options);
+
+/* ... */
+```
+
+With HTTP retry enabled, envelopes that fail to upload because of a network failure, such as a connection error or a timeout, are written to the `cache/` subdirectory of the [database path](/platforms/native/configuration/options/#database_path) and sent again later. The SDK doesn't retry HTTP error responses, including `5xx` status codes. HTTP retry applies to the HTTP transport, including HTTP clients plugged in with `sentry_http_transport_new`, but not to custom function transports created with `sentry_transport_new`.
+
+The SDK retries each envelope up to 6 times with exponential backoff, starting at 15 minutes and doubling up to 8 hours. On the next start, the SDK sends any envelopes still pending from the previous run. When the retries run out, the SDK discards the envelope, or keeps it in the cache if [offline caching](#offline-caching) is enabled.
+
+## Offline Caching
+
+To keep envelopes on disk, use the `sentry_options_set_cache_keep` function with one of the following modes:
+
+- `SENTRY_CACHE_KEEP_NONE`: The SDK doesn't keep envelopes. This is the default.
+- `SENTRY_CACHE_KEEP_OFFLINE`: The SDK keeps envelopes that it can't upload. This includes envelopes that failed because of a network failure, envelopes whose retries ran out, and envelopes captured before user consent is given.
+- `SENTRY_CACHE_KEEP_ALWAYS`: The SDK keeps every envelope, regardless of the upload result.
+
+The SDK writes kept envelopes to the `cache/` subdirectory of the database path as `.envelope` files, and stores minidumps next to them as `.dmp` files. To send envelopes again after a network failure, enable [HTTP retry](#retrying-failed-uploads) as well. Like HTTP retry, offline caching applies to the HTTP transport only.
+
+On startup, the SDK removes the oldest entries from the cache, including pending retries, until the cache is within the following limits:
+
+- `cache_max_items`: The maximum number of entries. Defaults to `30`.
+- `cache_max_size`: The maximum size in bytes. Defaults to `0` (no limit).
+- `cache_max_age`: The maximum age in seconds. Defaults to `0` (no limit).
+
+The SDK reports entries removed because of `cache_max_items` or `cache_max_size` as `cache_overflow` in [client reports](/platforms/native/configuration/options/#send_client_reports).
+
+```c
+sentry_options_t *options = sentry_options_new();
+sentry_options_set_http_retry(options, 1);
+sentry_options_set_cache_keep(options, SENTRY_CACHE_KEEP_OFFLINE);
+sentry_options_set_cache_max_items(options, 100);
+sentry_options_set_cache_max_size(options, 10 * 1024 * 1024); /* 10 MB */
+sentry_options_set_cache_max_age(options, 7 * 24 * 60 * 60); /* 7 days */
+sentry_init(options);
+
+/* ... */
+```
+
+When [`require_user_consent`](/platforms/native/configuration/options/#require_user_consent) is enabled together with offline caching or HTTP retry, the SDK writes envelopes captured before consent is given to the cache instead of discarding them. With HTTP retry, the SDK sends them once the application gives consent with `sentry_user_consent_give`.
From 1ff4cc544d8e39b4aac08a6c77c5b209547116ec Mon Sep 17 00:00:00 2001
From: Alex Alderman Webb
Date: Wed, 28 Oct 2026 12:21:53 +0000
Subject: [PATCH 034/143] chore(ai-sdks): Remove table rows with deprecated
attributes (#20283)
Aliased attributes are implicitly supported per the aliases defined in `sentry-conventions`.
---
.../sdk/telemetry/traces/modules/ai-agents.mdx | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
index 2aa52c957191f..4d03c44ce8ae2 100644
--- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
+++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
@@ -73,8 +73,6 @@ Additional attributes on the span:
| `gen_ai.request.top_p` | float | Model configuration parameter. | `0.7` |
| `gen_ai.request.top_k` | int | Limits model to K most likely next tokens. | `40` |
| `gen_ai.request.reasoning.level` | string | The reasoning or thinking effort level requested for a GenAI model. Supported values vary by provider. | `"medium"` |
-| `gen_ai.request.messages` | string | **Deprecated.** Use `gen_ai.input.messages` instead. List of dictionaries describing the messages (prompts) sent to the LLM. **[0]** | `'[{"role": "system", "content": "..."}, ...]'` |
-| `gen_ai.request.available_tools` | string | **Deprecated.** Use `gen_ai.tool.definitions` instead. List of dictionaries describing the available tools. **[0]** | `'[{"name": "random_number", "description": "..."}, ...]'` |
### Response Data
@@ -85,9 +83,6 @@ Additional attributes on the span:
| `gen_ai.response.id` | string | Unique identifier for the completion. | `"chatcmpl-abc123"` |
| `gen_ai.response.streaming` | boolean | Whether response was streamed asynchronously. | `true` |
| `gen_ai.response.time_to_first_chunk` | double | Seconds until first response chunk in streaming. | `0.5` |
-| `gen_ai.response.text` | string | **Deprecated.** Use `gen_ai.output.messages` instead. The text representation of the model's response. **[0]** | `"The weather in Paris is rainy"` |
-| `gen_ai.response.tool_calls` | string | **Deprecated.** Use `gen_ai.output.messages` instead. The tool calls in the model's response. **[0]** | `'[{"name": "random_number", "type": "function_call", "arguments": "..."}]'` |
-| `gen_ai.response.time_to_first_token` | double | **Deprecated.** Use `gen_ai.response.time_to_first_chunk` instead. Seconds until first response chunk in streaming. | `0.5` |
### Token Usage Data
@@ -99,9 +94,6 @@ Additional attributes on the span:
| `gen_ai.usage.output_tokens` | int | The number of tokens used in the AI output, including reasoning tokens. **[3]** | `130` |
| `gen_ai.usage.reasoning.output_tokens` | int | The number of tokens used for reasoning. | `30` |
| `gen_ai.usage.total_tokens` | int | The sum of `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens`. | `190` |
-| `gen_ai.usage.input_tokens.cached` | int | **Deprecated.** Use `gen_ai.usage.cache_read.input_tokens` instead. The number of cached tokens used in the AI input (prompt). | `50` |
-| `gen_ai.usage.input_tokens.cache_write` | int | **Deprecated.** Use `gen_ai.usage.cache_creation.input_tokens` instead. Tokens written to cache when processing input. | `20` |
-| `gen_ai.usage.output_tokens.reasoning` | int | **Deprecated.** Use `gen_ai.usage.reasoning.output_tokens` instead. The number of tokens used for reasoning. | `30` |
## Execute Tool Span
@@ -126,8 +118,6 @@ Additional attributes on the span:
| `gen_ai.tool.call.arguments` | string | Arguments of the tool call (stringified). | `'{"max":10}'` |
| `gen_ai.tool.call.result` | string | Result of the tool call (stringified). | `"7"` |
| `gen_ai.tool.message` | string | Response from a tool/function call passed to model. | `"The random number is 7"` |
-| `gen_ai.tool.input` | string | **Deprecated.** Use `gen_ai.tool.call.arguments` instead. Input that was given to the executed tool as string. | `'{"max":10}'` |
-| `gen_ai.tool.output` | string | **Deprecated.** Use `gen_ai.tool.call.result` instead. The output from the tool. | `"7"` |
**[0]:**
From eb211c5fa3b299afd7bc27711fdde06eac7e86ad Mon Sep 17 00:00:00 2001
From: Alex Alderman Webb
Date: Wed, 28 Oct 2026 12:41:03 +0000
Subject: [PATCH 035/143] chore(ai-sdks): Remove unused `gen_ai.tool.type` and
unused `gen_ai.tool.message` (#20286)
Remove two attributes on tool spans that do not power any product functionality.
The `gen_ai.tool.type` attribute was always "function" in SDKs, and `gen_ai.tool.message` is redundant with other information on tool spans.
Deduplicate the `gen_ai.tool.name` requirement.
---
develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx | 6 ------
1 file changed, 6 deletions(-)
diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
index 4d03c44ce8ae2..190e9dabce0c8 100644
--- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
+++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
@@ -102,23 +102,17 @@ Describes a tool execution.
- Span `op` **SHOULD** be `"gen_ai.execute_tool"`.
- Span `name` **SHOULD** be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
- Attribute `gen_ai.operation.name` **MUST** be `"execute_tool"`.
-- Attribute `gen_ai.tool.name` **SHOULD** be set to the name of the tool. (e.g. `"query_database"`)
- Attribute `gen_ai.agent.name` **SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`)
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
Additional attributes on the span:
-### Tool Data
-
| Attribute | Type | Description | Example |
| :--------------------------- | :----- | :------------------------------------------------------------------------------------------------------------- | :----------------------------------------- |
| `gen_ai.tool.name` | string | Name of the tool executed. | `"random_number"` |
| `gen_ai.tool.description` | string | Description of the tool executed. | `"Tool returning a random number"` |
-| `gen_ai.tool.type` | string | The type of the tools. | `"function"`; `"extension"`; `"datastore"` |
| `gen_ai.tool.call.arguments` | string | Arguments of the tool call (stringified). | `'{"max":10}'` |
| `gen_ai.tool.call.result` | string | Result of the tool call (stringified). | `"7"` |
-| `gen_ai.tool.message` | string | Response from a tool/function call passed to model. | `"The random number is 7"` |
-
**[0]:**
From 9dbe5a74ce219db1348e041bf132b750ee1f779b Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 13:45:12 +0100
Subject: [PATCH 036/143] docs(rust): Use new sentry-tracing layers (#20290)
## DESCRIBE YOUR PR
[sentry-rust
0.49.4](https://github.com/getsentry/sentry-rust/releases/tag/0.49.4)
deprecated `sentry::integrations::tracing::layer()`, `SentryLayer`, and
`EventFilter`. It replaced them with independently selectable layers,
and recommends `SpanLayer` and `LogLayer` for most applications
([getsentry/sentry-rust#1342](https://github.com/getsentry/sentry-rust/pull/1342)).
The Rust docs still showed only the deprecated API.
- **`tracing` guide**: The example registers `SpanLayer` and `LogLayer`
with `LevelFilter::INFO`. I removed the product option toggles because
the example no longer depends on them. The page links the API docs for
each layer and mentions `ErrorLayer`/`BreadcrumbLayer` as legacy
options. It also has a deprecation warning that links the migration
guide for the latest 0.49.x release (`~0.49`). The Verify section now
covers traces and logs.
- **Logs**: Uses `LogLayer` with `LevelFilter::INFO`, and explains in
prose why filtering is recommended.
- **Automatic instrumentation**: Uses `SpanLayer` with
`LevelFilter::INFO`.
I compiled and ran the new snippets against `sentry` 0.49.4, with no
deprecation warnings. Heads-up: #19989 also edits the `tracing` guide,
so one of the two PRs will need a rebase.
Resolves #20289
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CAA8NNBE3%3A1793187164.433919)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CAA8NNBE3%3A1793187164.433919/?project=4510944073809921)
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Daniel Szoke <7881302+szokeasaurusrex@users.noreply.github.com>
---
docs/platforms/rust/common/logs/index.mdx | 28 +++------
.../automatic-instrumentation.mdx | 13 +++-
docs/platforms/rust/guides/tracing/index.mdx | 63 ++++++++-----------
3 files changed, 42 insertions(+), 62 deletions(-)
diff --git a/docs/platforms/rust/common/logs/index.mdx b/docs/platforms/rust/common/logs/index.mdx
index 700e3f79422a7..ec4fcc2e93bb0 100644
--- a/docs/platforms/rust/common/logs/index.mdx
+++ b/docs/platforms/rust/common/logs/index.mdx
@@ -67,11 +67,12 @@ tracing = "0.1.41"
tracing-subscriber = "0.3.19"
```
-Then, use standard `tracing` macros to capture logs.
+Then, register the [`LogLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.LogLayer.html) with your `tracing` subscriber, and use standard `tracing` macros to capture logs.
```rust {filename:main.rs}
-use sentry::integrations::tracing::EventFilter;
+use sentry::integrations::tracing::LogLayer;
use tracing::{error, info, warn};
+use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::prelude::*;
fn main() {
@@ -82,8 +83,8 @@ fn main() {
);
tracing_subscriber::registry()
- .with(tracing_subscriber::fmt::layer())
- .with(sentry::integrations::tracing::layer())
+ // Capture INFO, WARN, and ERROR events as Sentry logs
+ .with(LogLayer::new().with_filter(LevelFilter::INFO))
.init();
info!("Hello, world!");
@@ -101,24 +102,9 @@ fn main() {
The fields of `tracing` events are automatically captured as attributes in Sentry logs.
-By default, `tracing` events at or above info level are captured as Sentry logs.
+Without a filter, `LogLayer` captures events at every level, including `DEBUG` and `TRACE`, so we recommend adding a level filter, as shown in the example above. `LevelFilter::INFO` is a sensible starting point for most applications.
-This behavior can be customized by applying a custom `event_filter` when creating the layer.
-The following snippet shows the default `event_filter`:
-
-```rust
-use sentry::integrations::tracing::EventFilter;
-
-let sentry_layer =
- sentry::integrations::tracing::layer().event_filter(|md| match *md.level() {
- // Capture error and warn level events as both logs and events in Sentry
- tracing::Level::ERROR => EventFilter::Event | EventFilter::Log,
- // Ignore trace level events, as they're too verbose
- tracing::Level::TRACE => EventFilter::Ignore,
- // Capture everything else as both a breadcrumb and a log
- _ => EventFilter::Breadcrumb | EventFilter::Log,
- });
-```
+To also capture `tracing` spans, see the [`tracing` integration guide](/platforms/rust/guides/tracing/).
### `log` Integration
diff --git a/docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx
index 99e4c1bd19549..b352f9aa7fab9 100644
--- a/docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx
+++ b/docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx
@@ -14,14 +14,19 @@ Capturing transactions requires that you first set
## `tracing` Integration
-The Rust SDK offers an integration for the `tracing` ecosystem that will track spans automatically for every function that is annotated with `#[tracing::instrument]`.
+The Rust SDK's [`SpanLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.SpanLayer.html) captures `tracing` spans as Sentry spans.
-The integration takes care of starting a new transaction or a new child span of an already running transaction, and it automatically sets the created span as the _current_ span.
+The layer takes care of starting a new transaction or a new child span of an already running transaction, and it automatically sets the created span as the _current_ span.
```rust
+use sentry::integrations::tracing::SpanLayer;
+use tracing_subscriber::filter::LevelFilter;
+use tracing_subscriber::prelude::*;
+
fn main() {
tracing_subscriber::Registry::default()
- .with(sentry::integrations::tracing::layer())
+ // Capture INFO, WARN, and ERROR spans
+ .with(SpanLayer::new().with_filter(LevelFilter::INFO))
.init();
let _guard = sentry::init(
@@ -49,6 +54,8 @@ fn main_span2() {
}
```
+Without a filter, `SpanLayer` captures spans at every level, including `DEBUG` and `TRACE`, so we recommend adding a level filter, as shown in the example above. `LevelFilter::INFO` is a sensible starting point for most applications.
+
## OpenTelemetry Integration
The Rust SDK offers an integration for the OpenTelemetry ecosystem.
diff --git a/docs/platforms/rust/guides/tracing/index.mdx b/docs/platforms/rust/guides/tracing/index.mdx
index e3584f8578a6d..2d5667027c76d 100644
--- a/docs/platforms/rust/guides/tracing/index.mdx
+++ b/docs/platforms/rust/guides/tracing/index.mdx
@@ -5,16 +5,12 @@ description: "Learn about monitoring your Rust application with Sentry's tokio-r
The Sentry SDK offers an integration for tokio's [tracing](https://github.com/tokio-rs/tracing) ecosystem that supports:
-- Reporting `tracing` events to Sentry as events, breadcrumbs, or logs.
-- Reporting `tracing` spans to Sentry.
+- Reporting `tracing` spans to Sentry as transactions and spans.
+- Reporting `tracing` events to Sentry as logs.
- Reporting errors and panics with the correct trace correlation.
## Install
-
-
To add Sentry with the `tracing` integration to your Rust project, add the necessary dependencies to your `Cargo.toml`:
```toml {filename:Cargo.toml}
@@ -29,7 +25,7 @@ tokio = { version = "1.45.0", features = ["full"] }
## Configure
-Initialize the Sentry SDK and register the Sentry layer to start sending `tracing` events and spans to Sentry:
+Initialize the Sentry SDK and register the Sentry layers to start sending `tracing` spans and logs to Sentry:
@@ -38,6 +34,8 @@ Macros like `#[tokio::main]` and `#[actix_web::main]` are not supported. The Sen
```rust
+use sentry::integrations::tracing::{LogLayer, SpanLayer};
+use tracing_subscriber::filter::LevelFilter;
use tracing_subscriber::prelude::*;
fn main() {
@@ -46,16 +44,17 @@ fn main() {
sentry::ClientOptions::new()
.dsn("___PUBLIC_DSN___")
.maybe_release(sentry::release_name!())
- # ___PRODUCT_OPTION_START___ performance
// Capture all traces and spans. Set to a lower value in production
.traces_sample_rate(1.0)
- # ___PRODUCT_OPTION_END___ performance
);
- // Register the Sentry tracing layer
+ // Register the Sentry tracing layers
tracing_subscriber::registry()
.with(tracing_subscriber::fmt::layer())
- .with(sentry::integrations::tracing::layer())
+ // Capture INFO, WARN, and ERROR spans as Sentry transactions and spans
+ .with(SpanLayer::new().with_filter(LevelFilter::INFO))
+ // Capture INFO, WARN, and ERROR events as Sentry logs
+ .with(LogLayer::new().with_filter(LevelFilter::INFO))
.init();
tokio::runtime::Builder::new_multi_thread()
@@ -68,38 +67,28 @@ fn main() {
});
}
-# ___PRODUCT_OPTION_START___ performance
#[tracing::instrument] // Captures a root span (transaction) around this function execution
-# ___PRODUCT_OPTION_END___ performance
async fn fail() {
- tracing::debug!("Doing work"); // Adds a breadrcumb
- # ___PRODUCT_OPTION_START___ performance
+ tracing::info!("Doing work"); // Captured as a log
let _span = tracing::info_span("Child span").entered(); // Captures a child span
- # ___PRODUCT_OPTION_END___ performance
- tracing::error!("Everything is on fire!");
+ tracing::error!("Everything is on fire!"); // Captured as a log, linked to the child span
}
```
-By default, error-level events from `tracing` are captured as Sentry events, while events at or above info level are added to the current scope as breadcrumbs.
+The integration provides two layers, and we recommend installing both:
-Additionally, the SDK captures [logs](https://docs.sentry.io/product/logs/) for `tracing` events at the info level or above, unless logs were disabled when initializing the SDK.
+- [`SpanLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.SpanLayer.html): Captures `tracing` spans as Sentry transactions and spans.
+- [`LogLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.LogLayer.html): Captures `tracing` events as Sentry logs. Requires the `logs` feature, which is enabled by default.
-This behavior can be customized by applying a custom `event_filter` when creating the layer.
-The following snippet shows the default `event_filter` that's applied when using the `sentry` crate with the `tracing` feature flag.
+The layers don't filter by level on their own, and without a filter they capture every level, including `DEBUG` and `TRACE`. We recommend giving each layer a `tracing_subscriber` filter, as shown above. `LevelFilter::INFO` is a sensible starting point for most applications.
-```rust
-use sentry::integrations::tracing::EventFilter;
-
-let sentry_layer =
- sentry::integrations::tracing::layer().event_filter(|md| match *md.level() {
- // Capture error and warn level events as both logs and events in Sentry
- tracing::Level::ERROR => EventFilter::Event | EventFilter::Log,
- // Ignore trace level events, as they're too verbose
- tracing::Level::TRACE => EventFilter::Ignore,
- // Capture everything else as both a breadcrumb and a log
- _ => EventFilter::Breadcrumb | EventFilter::Log,
- });
-```
+The SDK also provides [`ErrorLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.ErrorLayer.html) and [`BreadcrumbLayer`](https://docs.rs/sentry-tracing/latest/sentry_tracing/struct.BreadcrumbLayer.html), which capture `tracing` events as Sentry errors and breadcrumbs. They're mainly there to support legacy setups, so most applications should stick with the span and log layers.
+
+
+
+`sentry::integrations::tracing::layer()` and `SentryLayer` are deprecated as of version `0.49.4`. When migrating, replace the legacy layer instead of adding the new layers alongside it: combining `SpanLayer` with the legacy layer can panic. See the [migration guide](https://docs.rs/sentry-tracing/~0.49/sentry_tracing/struct.SentryLayer.html) for details.
+
+
## Verify
@@ -109,11 +98,9 @@ Learn more about manually capturing an error or message in our
-To view and resolve the recorded error, log into [sentry.io](https://sentry.io) and select your project. Select Issues, and then Errors & Outages in the sidebar, where you will find the newly created issue. Clicking on the issue's title will open a page where you can see detailed information and mark it as resolved.
-
-If you're using tracing (the Sentry feature), you can view the recorded traces and spans by selecting Explore, and then Traces in the sidebar.
+To view the recorded traces and spans, log into [sentry.io](https://sentry.io), select your project, and then select Explore > Traces in the sidebar.
-If you're using logs, you can view the recorded logs by selecting Explore, and then Logs in the sidebar.
+To view the recorded logs, select Explore > Logs in the sidebar.
## Next Steps
From df10c21aa46722119f98a49d04073f1ede18557f Mon Sep 17 00:00:00 2001
From: Alex Alderman Webb
Date: Wed, 28 Oct 2026 12:48:13 +0000
Subject: [PATCH 037/143] chore(ai-sdks): Document agent span input and output
as fallback (#20284)
The product works without degradation when only child chat spans carry input and output attributes.
---
.../sdk/telemetry/traces/modules/ai-agents.mdx | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
index 190e9dabce0c8..c1688e669e6d6 100644
--- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
+++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
@@ -27,21 +27,7 @@ Agent invocations represent operations that can include multiple model calls, or
- Attribute `gen_ai.operation.name` **MUST** be `"invoke_agent"`.
- Attribute `gen_ai.agent.name` **SHOULD** be set to the agent's name. (e.g. `"Weather Agent"`)
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
-
-Additional attributes on the span:
-
-### Request Data
-
-| Attribute | Type | Description | Example |
-| :--------------------------- | :----- | :--------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------- |
-| `gen_ai.input.messages` | string | List of dictionaries describing the messages (prompts) given to the agent. **[0]**, **[1]**, **[4]**, **[5]**, **[7]** | `'[{"role": "user", "parts": [{"type": "text", "content": "..."}]}]'` |
-| `gen_ai.system_instructions` | string | The system instructions passed to the model. | `"You are a helpful assistant."` |
-
-### Response Data
-
-| Attribute | Type | Description | Example |
-| :----------------------- | :----- | :------------------------------------------------------------------------------------- | :------------------------------------------------------------------------- |
-| `gen_ai.output.messages` | string | Stringified array of message objects representing the model's output. **[0]**, **[1]** | `'[{"role": "assistant", "parts": [{"type": "text", "content": "..."}]}]'` |
+- As a fallback to missing inputs and outputs on child chat spans, the Invoke Agent Span can carry `gen_ai.input.messages` and `gen_ai.system_instructions` based on the input of the first model call, and `gen_ai.output.messages` based on the output of the final model call under the agent execution.
## AI Client Span
From d564a9daea1f29796d5dacf98f4b5ecec23d3db0 Mon Sep 17 00:00:00 2001
From: Markus Unterwaditzer
Date: Wed, 28 Oct 2026 12:58:11 +0000
Subject: [PATCH 038/143]
getsentry/relay@1861e29675c7008f8ccee53738fce6e95c850a5b
---
src/data/relay_metrics.json | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/data/relay_metrics.json b/src/data/relay_metrics.json
index 776411e3fc523..ba9a558da2667 100644
--- a/src/data/relay_metrics.json
+++ b/src/data/relay_metrics.json
@@ -381,12 +381,6 @@
"description": "Size of emitted kafka message in bytes.\n\nThis metric is tagged with:\n- `topic`: The Kafka topic being produced to.\n- `variant`: The Kafka message variant.\n- `producer_name`: The configured producer name/deployment identifier.",
"features": []
},
- {
- "type": "Gauge",
- "name": "kafka.reload_generation",
- "description": "The number of times this topic's Kafka client has been replaced by a config reload.\n\nArroyo reports the same number\nunder `arroyo.producer.config_reload_generation`; this one is tagged the way Relay tags\nthe rest of its produce metrics, so it lines up with them.\n\nThis metric is tagged with:\n- `topic`: The Kafka topic being produced to.\n- `producer_name`: The configured producer name/deployment identifier.",
- "features": []
- },
{
"type": "Counter",
"name": "logs.envelope",
@@ -547,7 +541,7 @@
{
"type": "Counter",
"name": "producer.config_reload.pushed",
- "description": "Number of Kafka config blobs handed to a topic's producer.\n\nCounts pushes that were accepted for rollout, which includes blobs that resolve to the\nconfig already running. It does not mean the client was replaced; watch\n[`KafkaGauges::ReloadGeneration`] for that.\n\nThis metric is tagged with:\n- `topic`: The Kafka topic being produced to.\n- `producer_name`: The configured producer name/deployment identifier.",
+ "description": "Number of Kafka config blobs handed to a topic's producer.\n\nCounts pushes that were accepted for rollout, which includes blobs that resolve to the\nconfig already running. It does not mean the client was replaced; watch\n`arroyo.producer.config_reload_generation` for that.\n\nThis metric is tagged with:\n- `topic`: The Kafka topic being produced to.\n- `producer_name`: The configured producer name/deployment identifier.",
"features": []
},
{
From c8c14ca8fa3e523493bcee270b2a81ab7cedfd72 Mon Sep 17 00:00:00 2001
From: Alex Alderman Webb
Date: Wed, 28 Oct 2026 13:05:39 +0000
Subject: [PATCH 039/143] chore(ai-sdks): Document `gen_ai.function_id` as an
agent name fallback (#20287)
Document `gen_ai.function_id` set by LangChain and Vercel AI integrations.
---
develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
index c1688e669e6d6..77d715f28f2ed 100644
--- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
+++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
@@ -25,7 +25,7 @@ Agent invocations represent operations that can include multiple model calls, or
- Span `op` **SHOULD** be `"gen_ai.invoke_agent"`.
- Span `name` **SHOULD** be `"invoke_agent {gen_ai.agent.name}"`. (e.g. `"invoke_agent Weather Agent"`) **[4]**
- Attribute `gen_ai.operation.name` **MUST** be `"invoke_agent"`.
-- Attribute `gen_ai.agent.name` **SHOULD** be set to the agent's name. (e.g. `"Weather Agent"`)
+- Attribute `gen_ai.agent.name` **SHOULD** be set to the agent's name. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
- As a fallback to missing inputs and outputs on child chat spans, the Invoke Agent Span can carry `gen_ai.input.messages` and `gen_ai.system_instructions` based on the input of the first model call, and `gen_ai.output.messages` based on the output of the final model call under the agent execution.
@@ -39,7 +39,7 @@ This span represents a request to an AI model or service that generates a respon
- Attribute `gen_ai.provider.name` **MUST** be the Generative AI product as identified by the client or server instrumentation. (e.g. `"openai"`)
- Attribute `gen_ai.request.model` **MUST** be the requested model. (e.g. `"gpt-4o"`)
- Attribute `gen_ai.response.model` **MUST** be the concrete response model. (e.g. `"gpt-4o-2024-08-06"`)
-- If the request originates from an agent, the `gen_ai.agent.name` attribute **SHOULD** be set to the name of the agent. (e.g. `"Weather Agent"`)
+- If the request originates from an agent, the `gen_ai.agent.name` attribute **SHOULD** be set to the name of the agent. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
Additional attributes on the span:
@@ -88,7 +88,7 @@ Describes a tool execution.
- Span `op` **SHOULD** be `"gen_ai.execute_tool"`.
- Span `name` **SHOULD** be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
- Attribute `gen_ai.operation.name` **MUST** be `"execute_tool"`.
-- Attribute `gen_ai.agent.name` **SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`)
+- Attribute `gen_ai.agent.name` **SHOULD** be set to the name of the agent that invoked the tool. (e.g. `"Weather Agent"`). As a fallback to `gen_ai.agent.name`, the product also interprets `gen_ai.function_id` as an agent name for libraries that let users set a tracing identifier on a per-invocation basis.
- If relevant, the `gen_ai.pipeline.name` attribute **SHOULD** be set to the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`)
Additional attributes on the span:
From be920e5754ac5c80c4c3fcb969c1d4c1a277cff6 Mon Sep 17 00:00:00 2001
From: Tim Fish
Date: Wed, 28 Oct 2026 16:00:52 +0000
Subject: [PATCH 040/143] docs(js): Use `@sentry/bundler-plugins` instead of
individual packages (#19865)
Replace `@sentry/{vite,rollup,webpack,esbuild}-plugin` with
`@sentry/bundler-plugins/`. Guides that install `@sentry/node`
import the plugins from `@sentry/node/`. The NestJS guide uses
`@sentry/nestjs/webpack` and the AWS Lambda guide uses
`@sentry/aws-serverless/esbuild`, so they need no new dependency.
Add a Bundler Plugin Options page, based on the option docs in the old
plugin READMEs and updated for v11. Links to npm READMEs and the bundler
plugins repo now go to this page or to the bundler guides. Pages for old
versions are unchanged.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
---
docs/integrations/deployment/vercel/index.mdx | 2 +-
.../common/best-practices/micro-frontends.mdx | 8 +-
.../common/configuration/filtering.mdx | 2 +-
.../common/configuration/tree-shaking.mdx | 13 +-
.../common/session-replay/configuration.mdx | 2 +-
.../sourcemaps/uploading/angular-nx.mdx | 28 +-
.../sourcemaps/uploading/angular-webpack.mdx | 14 +-
.../uploading/bundler-plugin-options.mdx | 629 ++++++++++++++++++
.../common/sourcemaps/uploading/esbuild.mdx | 54 +-
.../common/sourcemaps/uploading/rollup.mdx | 55 +-
.../common/sourcemaps/uploading/vite.mdx | 57 +-
.../common/sourcemaps/uploading/webpack.mdx | 57 +-
.../cordova/configuration/tree-shaking.mdx | 11 +-
.../cordova/sourcemaps/uploading/esbuild.mdx | 12 +-
.../cordova/sourcemaps/uploading/rollup.mdx | 12 +-
.../cordova/sourcemaps/uploading/vite.mdx | 12 +-
.../cordova/sourcemaps/uploading/webpack.mdx | 12 +-
.../nextjs/configuration/build/index.mdx | 2 +-
.../guides/react/features/component-names.mdx | 38 +-
.../features/sentryTanstackStart.mdx | 2 +-
.../enable-readable-stack-traces.mdx | 8 +-
.../filter-application-key/javascript.mdx | 8 +-
.../sourcemaps/overview/javascript.astro.mdx | 2 +-
.../sourcemaps/overview/javascript.nuxt.mdx | 2 +-
.../sourcemaps/overview/javascript.svelte.mdx | 12 +-
.../sourcemaps/overview/javascript.vue.mdx | 14 +-
.../sourcemaps/primer/javascript.astro.mdx | 2 +-
.../sourcemaps/primer/javascript.nuxt.mdx | 4 +-
.../primer/javascript.solidstart.mdx | 2 +-
.../primer/javascript.sveltekit.mdx | 2 +-
.../upload/primer/javascript.svelte.mdx | 2 +-
.../upload/primer/javascript.sveltekit.mdx | 2 +-
32 files changed, 951 insertions(+), 131 deletions(-)
create mode 100644 docs/platforms/javascript/common/sourcemaps/uploading/bundler-plugin-options.mdx
diff --git a/docs/integrations/deployment/vercel/index.mdx b/docs/integrations/deployment/vercel/index.mdx
index 8841011fff6f8..34db175a6c51a 100644
--- a/docs/integrations/deployment/vercel/index.mdx
+++ b/docs/integrations/deployment/vercel/index.mdx
@@ -67,7 +67,7 @@ Use Vercel to [link projects](#project-linking) for uploading source maps and no
- If you have not already done so, [instrument your code with Sentry](/platforms/javascript/).
- Ensure you have [installed a repository integration](/product/releases/setup/release-automation/) and added the relevant repository.
-- Add a Sentry bundler plugin to your bundler configuration ([webpack plugin](https://www.npmjs.com/package/@sentry/webpack-plugin), [Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin), [Esbuild Plugin](https://www.npmjs.com/package/@sentry/esbuild-plugin), [Rollup Plugin](https://www.npmjs.com/package/@sentry/rollup-plugin)). If you are using Sentry's Next.js, or SvelteKit SDKs this will already have been done for you.
+- Add a Sentry bundler plugin to your bundler configuration ([webpack plugin](/platforms/javascript/sourcemaps/uploading/webpack/), [Vite Plugin](/platforms/javascript/sourcemaps/uploading/vite/), [Esbuild Plugin](/platforms/javascript/sourcemaps/uploading/esbuild/), [Rollup Plugin](/platforms/javascript/sourcemaps/uploading/rollup/)). If you are using Sentry's Next.js, or SvelteKit SDKs this will already have been done for you.
- In case you already have a Vercel project integrated with Sentry, ensure the Sentry project you link is the one you're already using to report errors.
### Drains
diff --git a/docs/platforms/javascript/common/best-practices/micro-frontends.mdx b/docs/platforms/javascript/common/best-practices/micro-frontends.mdx
index 35346e311a313..36a8eecc493df 100644
--- a/docs/platforms/javascript/common/best-practices/micro-frontends.mdx
+++ b/docs/platforms/javascript/common/best-practices/micro-frontends.mdx
@@ -63,9 +63,9 @@ fix them faster in complex frontend architectures.
- Requires version `2.18.0` or higher of `@sentry/webpack-plugin`,
- `@sentry/rollup-plugin`, `@sentry/vite-plugin` or
- `@sentry/esbuild-plugin`.
+ Requires `@sentry/bundler-plugins/webpack`,
+ `@sentry/bundler-plugins/rollup`, `@sentry/bundler-plugins/vite` or
+ `@sentry/bundler-plugins/esbuild`.
Requires SDK version `7.59.0` or higher.
@@ -80,7 +80,7 @@ below is for Webpack, but this is also supported in Vite, Rollup, and esbuild.
```javascript
// webpack.config.js
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
diff --git a/docs/platforms/javascript/common/configuration/filtering.mdx b/docs/platforms/javascript/common/configuration/filtering.mdx
index d52ef5f3951bc..cb8e08cceb53c 100644
--- a/docs/platforms/javascript/common/configuration/filtering.mdx
+++ b/docs/platforms/javascript/common/configuration/filtering.mdx
@@ -57,7 +57,7 @@ This integration can be very helpful in reducing noise that's not related to you
-**Prerequisite**: To use the `thirdPartyErrorFilterIntegration`, ensure you are using a bundler and one of [Sentry's bundler plugins](https://github.com/getsentry/sentry-javascript-bundler-plugins). For **Next.js**, set the [`applicationKey`](/platforms/javascript/guides/nextjs/configuration/build/#applicationKey) build option, which works for both Webpack and Turbopack builds.
+**Prerequisite**: To use the `thirdPartyErrorFilterIntegration`, ensure you are using a bundler and one of Sentry's bundler plugins. For **Next.js**, set the [`applicationKey`](/platforms/javascript/guides/nextjs/configuration/build/#applicationKey) build option, which works for both Webpack and Turbopack builds.
diff --git a/docs/platforms/javascript/common/configuration/tree-shaking.mdx b/docs/platforms/javascript/common/configuration/tree-shaking.mdx
index 552d81061827e..effaf0851b40c 100644
--- a/docs/platforms/javascript/common/configuration/tree-shaking.mdx
+++ b/docs/platforms/javascript/common/configuration/tree-shaking.mdx
@@ -37,7 +37,7 @@ If you're using one of our bundler plugins, you can use the `bundleSizeOptimizat
```javascript
-// For example, the @sentry/webpack-plugin passed to the webpack config
+// For example, the @sentry/bundler-plugins/webpack passed to the webpack config
sentryPlugin({
// other config
bundleSizeOptimizations: {
@@ -55,7 +55,7 @@ sentryPlugin({
```javascript
-// For example, the @sentry/webpack-plugin passed to the webpack config
+// For example, the @sentry/bundler-plugins/webpack passed to the webpack config
sentryPlugin({
// other config
bundleSizeOptimizations: {
@@ -68,10 +68,11 @@ sentryPlugin({
For more details, see the documentation for the specific bundler plugin you're using:
-- [Sentry Webpack Plugin](https://www.npmjs.com/package/@sentry/webpack-plugin)
-- [Sentry Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin)
-- [Sentry Esbuild Plugin](https://www.npmjs.com/package/@sentry/esbuild-plugin)
-- [Sentry Rollup Plugin](https://www.npmjs.com/package/@sentry/rollup-plugin)
+- Sentry Webpack Plugin
+- Sentry Vite Plugin
+- Sentry Esbuild Plugin
+- Sentry Rollup Plugin
+- Bundler Plugin Options
diff --git a/docs/platforms/javascript/common/session-replay/configuration.mdx b/docs/platforms/javascript/common/session-replay/configuration.mdx
index 8fa075617cc89..4acd9271a83a0 100644
--- a/docs/platforms/javascript/common/session-replay/configuration.mdx
+++ b/docs/platforms/javascript/common/session-replay/configuration.mdx
@@ -125,7 +125,7 @@ replayIntegration({
});
```
-4. (optional) To reduce bundle size, you can now Tree Shake the default included worker script. If you are using one of the [Sentry Bundler Plugins](https://github.com/getsentry/sentry-javascript-bundler-plugins) (version 2.10.0 or later):
+4. (optional) To reduce bundle size, you can now Tree Shake the default included worker script. If you are using one of the Sentry Bundler Plugins (version 2.10.0 or later):
```javascript
sentryPlugin({
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx
index d8377ba198d7b..3b190aed99d08 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/angular-nx.mdx
@@ -71,21 +71,21 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Install the Sentry Webpack plugin:
```shell {tabTitle:npm}
-npm install @sentry/webpack-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```shell {tabTitle:yarn}
-yarn add @sentry/webpack-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```shell {tabTitle:pnpm}
-pnpm add @sentry/webpack-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
Register the Sentry webpack plugin in your `webpack.config.js`:
```javascript {filename:webpack.config.js}
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
// ... other config above ...
@@ -110,30 +110,30 @@ module.exports = {
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Webpack Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/webpack-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Webpack Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
-Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
+Learn more about configuring the plugin in our Sentry webpack plugin documentation.
### esbuild
Install the Sentry esbuild plugin:
```shell {tabTitle:npm}
-npm install @sentry/esbuild-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```shell {tabTitle:yarn}
-yarn add @sentry/esbuild-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```shell {tabTitle:pnpm}
-pnpm add @sentry/esbuild-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
-Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/executors/browser-esbuild#examples) to register the Sentry esbuild plugin (`@sentry/esbuild-plugin`) in your `project.json` file. For example:
+Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/executors/browser-esbuild#examples) to register the Sentry esbuild plugin (`@sentry/bundler-plugins/esbuild`) in your `project.json` file. For example:
```json {filename:project.json}
{
@@ -143,7 +143,7 @@ Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/execu
"options": {
"plugins": [
{
- "path": "@sentry/esbuild-plugin",
+ "path": "@sentry/bundler-plugins/esbuild",
"options": {
"org": "___ORG_SLUG___",
"project": "___PROJECT_SLUG___",
@@ -160,8 +160,8 @@ Then, follow the [official Nx documentation](https://nx.dev/nx-api/angular/execu
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Esbuild Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/esbuild-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Esbuild Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx
index 20b66cb1bd491..0d748d55e5439 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/angular-webpack.mdx
@@ -21,15 +21,15 @@ Before you start configuring the source maps upload, make sure that you're [gene
Install the custom webpack builder for Angular and the Sentry webpack plugin:
```shell {tabTitle:npm}
-npm install @angular-builders/custom-webpack @sentry/webpack-plugin --save-dev
+npm install @angular-builders/custom-webpack @sentry/bundler-plugins --save-dev
```
```shell {tabTitle:yarn}
-yarn add @angular-builders/custom-webpack @sentry/webpack-plugin --dev
+yarn add @angular-builders/custom-webpack @sentry/bundler-plugins --dev
```
```shell {tabTitle:pnpm}
-pnpm add @angular-builders/custom-webpack @sentry/webpack-plugin --save-dev
+pnpm add @angular-builders/custom-webpack @sentry/bundler-plugins --save-dev
```
## Configure
@@ -97,7 +97,7 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Register the Sentry Webpack plugin in your `webpack.config.js`:
```javascript {filename:webpack.config.js}
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
// ... other config above ...
@@ -119,7 +119,7 @@ module.exports = {
};
```
-Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
+Learn more about configuring the plugin in our Sentry webpack plugin documentation.
### 3. Upload
@@ -139,7 +139,7 @@ We recommend running a production build to test your implementation.
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Webpack Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/webpack-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Webpack Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/bundler-plugin-options.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/bundler-plugin-options.mdx
new file mode 100644
index 0000000000000..55dc498711a57
--- /dev/null
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/bundler-plugin-options.mdx
@@ -0,0 +1,629 @@
+---
+title: Bundler Plugin Options
+description: "Learn about the options you can pass to the Sentry bundler plugins for Vite, webpack, Rollup, and esbuild."
+customCanonicalTag: "/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/"
+sidebar_order: 20
+keywords:
+ [
+ "bundler plugin",
+ "vite",
+ "webpack",
+ "rollup",
+ "esbuild",
+ "sourcemaps",
+ "source maps",
+ "release",
+ "options",
+ ]
+---
+
+The Sentry bundler plugins for Vite, webpack, Rollup, and esbuild all accept the options on this page.
+
+
+
+Import the plugins from `@sentry/node/vite`, `@sentry/node/webpack`, `@sentry/node/rollup`, or `@sentry/node/esbuild`.
+
+
+
+
+
+Import the webpack plugin from `@sentry/nestjs/webpack`. For Vite, Rollup, or esbuild, import the plugin from `@sentry/bundler-plugins/vite`, `@sentry/bundler-plugins/rollup`, or `@sentry/bundler-plugins/esbuild`.
+
+
+
+
+
+Import the esbuild plugin from `@sentry/aws-serverless/esbuild`. For Vite, webpack, or Rollup, import the plugin from `@sentry/bundler-plugins/vite`, `@sentry/bundler-plugins/webpack`, or `@sentry/bundler-plugins/rollup`.
+
+
+
+
+
+Import the plugins from `@sentry/bundler-plugins/vite`, `@sentry/bundler-plugins/webpack`, `@sentry/bundler-plugins/rollup`, or `@sentry/bundler-plugins/esbuild`.
+
+
+
+```javascript {filename:vite.config.js}
+sentryVitePlugin({
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+ sourcemaps: {
+ filesToDeleteAfterUpload: ["./dist/**/*.map"],
+ },
+});
+```
+
+## Available Options
+
+
+
+## Core Options
+
+
+
+The slug of the Sentry organization associated with the app.
+
+This value can also be specified via the `SENTRY_ORG` environment variable.
+
+
+
+
+
+The slug of the Sentry project associated with the app. You can also provide an array of project slugs to upload source maps to multiple projects with the same release.
+
+This value can also be specified via the `SENTRY_PROJECT` environment variable. To specify multiple projects via the environment variable, separate them with commas: `SENTRY_PROJECT=project1,project2,project3`.
+
+```javascript
+sentryVitePlugin({
+ org: process.env.SENTRY_ORG,
+ project: ["frontend-team-a", "frontend-team-b", "frontend-team-c"],
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+});
+```
+
+
+
+
+
+The authentication token to use for all communication with Sentry.
+Can be obtained from https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/.
+
+This value can also be specified via the `SENTRY_AUTH_TOKEN` environment variable.
+
+Check out the docs on [organization tokens](/account/auth-tokens/#organization-tokens).
+
+
+
+
+
+The base URL of your Sentry instance. Use this if you are using a self-hosted or Sentry instance other than sentry.io.
+
+This value can also be set via the `SENTRY_URL` environment variable.
+
+The default value is correct for SaaS customers.
+
+
+
+
+
+Additional headers to send with every outgoing request to Sentry.
+
+
+
+
+
+Enable debug information logs during build-time. Enabling this will give you, for example, logs about source maps. This option also propagates the debug flag to the Sentry CLI by setting the `SENTRY_LOG_LEVEL` environment variable to `"debug"` if it's not already set. If you have explicitly set `SENTRY_LOG_LEVEL`, this option will be ignored.
+
+
+
+
+
+Suppresses all build logs (all log levels, including errors).
+
+
+
+
+
+When an error occurs during release creation or sourcemaps upload, the plugin will call this function.
+
+By default, the plugin will simply throw an error, thereby stopping the bundling process. If an `errorHandler` callback is provided, compilation will continue, unless an error is thrown in the provided callback.
+
+To allow compilation to continue but still emit a warning, set this option to the following:
+
+```javascript
+errorHandler: (err) => {
+ console.warn(err);
+};
+```
+
+
+
+
+
+If this flag is `true`, internal plugin errors and performance data will be sent to Sentry. It will not collect any sensitive or user-specific data.
+
+At Sentry, we like to use Sentry ourselves to deliver faster and more stable products. We're very careful of what we're sending. We won't collect anything other than error and high-level performance data. We will never collect your code or any details of the projects in which you're using this plugin.
+
+
+
+
+
+Completely disables all functionality of the plugin.
+
+
+
+## Source Maps Options
+
+Options related to source maps upload and processing.
+
+
+
+A glob or an array of globs that specify the build artifacts and source maps that will be uploaded to Sentry.
+
+The globbing patterns must follow the implementation of the [`glob`](https://www.npmjs.com/package/glob#glob-primer) package.
+
+If this option is not specified, the plugin will try to upload all JavaScript files and source map files that are created during build.
+
+Use the `debug` option to print information about which files end up being uploaded.
+
+
+
+
+
+A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
+
+The globbing patterns must follow the implementation of the [`glob`](https://www.npmjs.com/package/glob#glob-primer) package.
+
+Use the `debug` option to print information about which files end up being uploaded.
+
+
+
+
+
+Hook to rewrite the `sources` field inside the source map before being uploaded to Sentry. Does not modify the actual source map. Effectively, this modifies how files inside the stacktrace will show up in Sentry.
+
+The `context.mapDir` parameter provides the directory path of the source map file, which is useful for resolving relative source paths (e.g. `path.resolve(context.mapDir, source)`).
+
+Defaults to making all sources relative to `process.cwd()` while building.
+
+
+
+
+
+Hook to customize source map file resolution.
+
+The hook is called with the absolute path of the build artifact and the value of the `//# sourceMappingURL=` comment, if present. The hook should then return an absolute path (or a promise that resolves to one) indicating where to find the artifact's corresponding source map file. If no path is returned or the returned path doesn't exist, the standard source map resolution process will be used.
+
+The standard process first tries to resolve based on the `//# sourceMappingURL=` value (it supports `file://` urls and absolute/relative paths). If that path doesn't exist, it then looks for a file named `${artifactName}.map` in the same directory as the artifact.
+
+Note: This is mostly helpful for complex builds with custom source map generation. For example, if you put source maps into a separate directory and rewrite the `//# sourceMappingURL=` comment to something other than a relative directory, Sentry will be unable to locate the source maps for a given build artifact. This hook allows you to implement the resolution process yourself.
+
+Use the `debug` option to print information about source map resolution.
+
+
+
+
+
+A glob, an array of globs or a promise resolving a glob or array of globs that specifies the build artifacts that should be deleted after the artifact upload to Sentry has been completed.
+
+Note: If you pass in a Promise that resolves to a string or array, the plugin will await the Promise and use the resolved value globs. This is useful if you need to dynamically determine the files to delete. Some higher-level Sentry SDKs or options use this feature (e.g., SvelteKit).
+
+The globbing patterns must follow the implementation of the [`glob`](https://www.npmjs.com/package/glob#glob-primer) package.
+
+Use the `debug` option to print information about which files end up being deleted.
+
+
+
+
+
+If this flag is `true`, any functionality related to source maps will be disabled.
+
+If set to `"disable-upload"`, the plugin will not upload source maps to Sentry, but will still inject debug IDs into the build artifacts: the bundles receive the runtime debug ID snippet and a `//# debugId=` comment, and the emitted source maps receive the matching `debug_id` field. This happens inside the bundler's build pipeline, so hashes computed by later build steps (for example, for subresource integrity) include the debug IDs.
+
+This is useful if you want to manually upload source maps to Sentry at a later point in time, for example with `sentry-cli sourcemaps upload`. The artifacts already carry their debug IDs, so no `inject` step is needed.
+
+
+
+## Release Options
+
+Options related to managing the Sentry releases for a build. Learn more in [Releases](/product/releases/).
+
+
+
+Unique identifier for the release you want to create.
+
+This value can also be specified via the `SENTRY_RELEASE` environment variable.
+
+Defaults to automatically detecting a value for your environment. This includes values for Cordova, Heroku, AWS CodeBuild, CircleCI, Xcode, and Gradle, and otherwise uses the git `HEAD`'s commit SHA (the latter requires access to git CLI and for the root directory to be a valid repository).
+
+If no `name` is provided and the plugin can't automatically detect one, no release will be created.
+
+
+
+
+
+Whether the plugin should inject release information into the build for the SDK to pick it up when sending events. (recommended)
+
+
+
+
+
+Whether the plugin should create a release on Sentry during the build.
+
+Note that a release may still appear in Sentry even if this value is `false` because any Sentry event that has a release value attached will automatically create a release (for example, via the `inject` option).
+
+
+
+
+
+Whether to automatically finalize the release. The release is finalized by adding an end timestamp after the build ends.
+
+
+
+
+
+Unique distribution identifier for the release. Used to further segment the release.
+
+Usually your build number.
+
+
+
+
+
+Version control system (VCS) remote name.
+
+This value can also be specified via the `SENTRY_VSC_REMOTE` environment variable.
+
+
+
+
+
+Configuration for associating the release with its commits in Sentry.
+
+Set to `false` to disable commit association.
+
+
+
+
+
+The commit before the beginning of this release (in other words, the last commit of the previous release).
+
+Defaults to the last commit of the previous release in Sentry.
+
+If there was no previous release, the last 10 commits will be used.
+
+
+
+
+
+If the flag is set to `true` and the previous release commit was not found in the repository, the plugin creates a release with the default commits count instead of failing the command.
+
+
+
+
+
+If this flag is set, the setCommits step will not fail and just exit silently if no new commits for a given release have been found.
+
+
+
+
+
+Automatically sets `commit` and `previousCommit`. Sets `commit` to `HEAD` and `previousCommit` as described in the option's documentation.
+
+If you set this to `true`, manually specified `commit` and `previousCommit` options will be overridden. It is best to not specify them at all if you set this option to `true`.
+
+
+
+
+
+The full repo name as defined in Sentry.
+
+Required if the `auto` option is not set to `true`.
+
+
+
+
+
+The current (last) commit in the release.
+
+Required if the `auto` option is not set to `true`.
+
+
+
+
+
+Configuration for adding deployment information to the release in Sentry.
+
+Set to `false` to disable automatic deployment detection and creation (for example, when deploying on Vercel).
+
+
+
+
+
+Environment for this release. Values that make sense here would be `production` or `staging`.
+
+
+
+
+
+Deployment start time in Unix timestamp (in seconds) or ISO 8601 format.
+
+
+
+
+
+Deployment finish time in Unix timestamp (in seconds) or ISO 8601 format.
+
+
+
+
+
+Deployment duration (in seconds). Can be used instead of started and finished.
+
+
+
+
+
+Human readable name for the deployment.
+
+
+
+
+
+URL that points to the deployment.
+
+
+
+
+
+Legacy method of uploading source maps. (not recommended unless necessary)
+One or more paths that should be scanned recursively for sources.
+
+Each path can be given as a string or an object with more specific options.
+
+The modern version of doing source maps upload is more robust and way easier to get working but has to inject a very small snippet of JavaScript into your output bundles.
+In situations where this leads to problems (e.g subresource integrity) you can use this option as a fallback.
+
+Please note that this option will not interact with any settings provided in the `sourcemaps` option. Using `uploadLegacySourcemaps` is a completely separate upload mechanism we provide for backwards-compatibility.
+
+The `IncludeEntry` type looks as follows:
+
+```typescript
+type IncludeEntry = {
+ /**
+ * One or more paths to scan for files to upload.
+ */
+ paths: string[];
+
+ /**
+ * One or more paths to ignore during upload.
+ * Overrides entries in ignoreFile file.
+ *
+ * Defaults to `['node_modules']` if neither `ignoreFile` nor `ignore` is set.
+ */
+ ignore?: string | string[];
+
+ /**
+ * Path to a file containing list of files/directories to ignore.
+ *
+ * Can point to `.gitignore` or anything with the same format.
+ */
+ ignoreFile?: string;
+
+ /**
+ * Array of file extensions of files to be collected for the file upload.
+ *
+ * By default the following file extensions are processed: js, map, jsbundle and bundle.
+ */
+ ext?: string[];
+
+ /**
+ * URL prefix to add to the beginning of all filenames.
+ * Defaults to '~/' but you might want to set this to the full URL.
+ *
+ * This is also useful if your files are stored in a sub folder. eg: url-prefix '~/static/js'.
+ */
+ urlPrefix?: string;
+
+ /**
+ * URL suffix to add to the end of all filenames.
+ * Useful for appending query parameters.
+ */
+ urlSuffix?: string;
+
+ /**
+ * When paired with the `rewrite` option, this will remove a prefix from filename references inside of
+ * sourcemaps. For instance you can use this to remove a path that is build machine specific.
+ * Note that this will NOT change the names of uploaded files.
+ */
+ stripPrefix?: string[];
+
+ /**
+ * When paired with the `rewrite` option, this will add `~` to the `stripPrefix` array.
+ *
+ * Defaults to `false`.
+ */
+ stripCommonPrefix?: boolean;
+
+ /**
+ * Determines whether sentry-cli should attempt to link minified files with their corresponding maps.
+ * By default, it will match files and maps based on name, and add a Sourcemap header to each minified file
+ * for which it finds a map. Can be disabled if all minified files contain sourceMappingURL.
+ *
+ * Defaults to true.
+ */
+ sourceMapReference?: boolean;
+
+ /**
+ * Enables rewriting of matching source maps so that indexed maps are flattened and missing sources
+ * are inlined if possible.
+ *
+ * Defaults to true
+ */
+ rewrite?: boolean;
+
+ /**
+ * When `true`, attempts source map validation before upload if rewriting is not enabled.
+ * It will spot a variety of issues with source maps and cancel the upload if any are found.
+ *
+ * Defaults to `false` as this can cause false positives.
+ */
+ validate?: boolean;
+};
+```
+
+
+
+## Bundle Size Optimizations
+
+Options for bundle size optimizations by excluding certain features.
+
+
+
+Exclude debug statements from the bundle, thus disabling features like the SDK's `debug` option.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) any debugging code within the Sentry SDK during the build.
+Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+
+
+
+
+Exclude tracing functionality from the bundle, thus disabling features like performance monitoring.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) code within the Sentry SDK that is related to tracing and performance monitoring.
+Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+**Notice:** Do not enable this when you're using any performance monitoring-related SDK features (e.g. `Sentry.startSpan()`).
+
+
+
+
+
+Exclude the Node SDK's runtime diagnostics-channel injection from the bundle.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) code that installs the Node SDK's runtime module hooks (e.g. for Express instrumentation) at load time. Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+Only enable this when the diagnostics channels are injected at build time (via the bundler plugin) or when you otherwise do not rely on the runtime channel injection. This is equivalent to setting `enableRuntimeChannelInjection: false` in the SDK's `init` options.
+
+
+
+
+
+Exclude Replay Shadow DOM functionality from the bundle.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay Shadow DOM recording functionality.
+Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+This option is safe to be used when you do not want to capture any Shadow DOM activity via Sentry Session Replay.
+
+
+
+
+
+Exclude Replay iFrame functionality from the bundle.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay `iframe` recording functionality.
+Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+You can safely do this when you do not want to capture any `iframe` activity via Sentry Session Replay.
+
+
+
+
+
+Exclude Replay worker functionality from the bundle.
+
+If set to `true`, the plugin will attempt to tree-shake (remove) code related to the Sentry SDK's Session Replay's Compression Web Worker.
+Note that the success of this depends on tree-shaking being enabled in your build tooling.
+
+**Notice:** You should only use this option if you manually host a compression worker and configure it in your Sentry Session Replay integration config via the `workerUrl` option.
+
+
+
+## React Component Annotation
+
+
+
+Use the React component annotation feature with caution. The option will pass additional properties to your React components which may lead to errors if libraries or your own code iterate through component props without checking for the additional Sentry props.
+
+
+
+Options related to React component name annotations.
+Disabled by default, unless a value is set for this option.
+When enabled, your app's DOM will automatically be annotated during build-time with their respective component names.
+This will unlock the capability to search for Replays in Sentry by component name, as well as see component names in breadcrumbs and performance monitoring.
+
+The esbuild plugin doesn't support these options.
+
+
+
+Whether the component name annotate plugin should be enabled or not.
+
+
+
+
+
+A list of strings representing the names of components to ignore. The plugin will not apply `data-sentry` annotations on the DOM element for these components.
+
+
+
+
+
+An experimental component annotation injection mode that injects annotations into HTML rather than React components.
+
+
+
+## Other Options
+
+
+
+Metadata that should be associated with the built application.
+
+The metadata is serialized and can be looked up at runtime from within the SDK (for example in the `beforeSend`, event processors, or the transport), allowing for custom event filtering logic or routing of events.
+
+Metadata can either be passed directly or alternatively a callback can be provided that will be called with the following parameters:
+
+- `org`: The organization slug.
+- `project`: The project slug (when multiple projects are configured, this is the first project).
+- `projects`: An array of all project slugs (available when multiple projects are configured).
+- `release`: The release name.
+
+
+
+
+
+A key which will be embedded in all the bundled files. The SDK will be able to use the key to apply filtering rules, for example using the `thirdPartyErrorFilterIntegration`.
+
+
+
+
+
+Options that are considered experimental and subject to change. This option does not follow semantic versioning and may change in any release.
+
+
+
+
+
+If set to true, the plugin will inject an additional `SENTRY_BUILD_INFO` variable. This contains information about the build, e.g. dependencies, node version and other useful data.
+
+
+
+## Configuration File
+
+As an additional configuration method, the Sentry bundler plugins will pick up environment variables configured inside a `.env.sentry-build-plugin` file located in the current working directory when building your app.
+
+
+
+## Node.js Options
+
+These options are only available in the plugins from your Sentry SDK package. `@sentry/bundler-plugins` doesn't support them.
+
+
+
+Automatic instrumentation of server-side dependencies at build time. Set to `false` to turn it off.
+
+
+
+
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx
index 494b76807ea67..b6595835f4cd4 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/esbuild.mdx
@@ -43,20 +43,30 @@ If you want to configure source map uploading with esbuild manually, follow the
## Manual Setup
+
+
Install the Sentry esbuild plugin:
```bash {tabTitle:npm}
-npm install @sentry/esbuild-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/esbuild-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/esbuild-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
+
+
+
+
+The Sentry esbuild plugin is part of your Sentry SDK package. You don't need to install another package.
+
+
+
### Configure
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -66,7 +76,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry esbuild Plugin documentation](https://www.npmjs.com/package/@sentry/esbuild-plugin).
+Learn more about configuring the plugin in our Sentry esbuild Plugin documentation.
@@ -76,8 +86,36 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Example:
+
+
+```javascript {filename:esbuild.config.js}
+const { sentryEsbuildPlugin } = require("@sentry/bundler-plugins/esbuild");
+
+require("esbuild").build({
+ sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
+ plugins: [
+ // Put the Sentry esbuild plugin after all other plugins
+ sentryEsbuildPlugin({
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+
+ sourcemaps: {
+ // As you're enabling client source maps, you probably want to delete them after they're uploaded to Sentry.
+ // Set the appropriate glob pattern for your output folder - some glob examples below:
+ filesToDeleteAfterUpload: ["./**/*.map", ".*/**/public/**/*.map", "./dist/**/client/**/*.map"]
+ }
+ }),
+ ],
+});
+```
+
+
+
+
+
```javascript {filename:esbuild.config.js}
-const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
+const { sentryEsbuildPlugin } = require("___SDK_PACKAGE___/esbuild");
require("esbuild").build({
sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
@@ -98,11 +136,13 @@ require("esbuild").build({
});
```
+
+
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Esbuild Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/esbuild-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Esbuild Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx
index 29b44acd07dd1..1595ac6fcb59a 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx
@@ -23,20 +23,30 @@ If you'd rather manually configure source map uploading with the CLI, follow the
## Manual Setup
+
+
Install the Sentry Rollup plugin:
```bash {tabTitle:npm}
-npm install @sentry/rollup-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/rollup-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/rollup-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
+
+
+
+
+The Sentry Rollup plugin is part of `@sentry/node`. You don't need to install another package.
+
+
+
### Configuration
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -46,7 +56,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry Rollup Plugin documentation](https://www.npmjs.com/package/@sentry/rollup-plugin).
+Learn more about configuring the plugin in our Sentry Rollup Plugin documentation.
@@ -56,8 +66,10 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Example:
+
+
```javascript {filename:rollup.config.js}
-import { sentryRollupPlugin } from "@sentry/rollup-plugin";
+import { sentryRollupPlugin } from "@sentry/bundler-plugins/rollup";
export default {
output: {
@@ -79,10 +91,39 @@ export default {
};
```
+
+
+
+
+```javascript {filename:rollup.config.js}
+import { sentryRollupPlugin } from "@sentry/node/rollup";
+
+export default {
+ output: {
+ sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
+ },
+ plugins: [
+ // Put the Sentry rollup plugin after all other plugins
+ sentryRollupPlugin({
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+ sourcemaps: {
+ // As you're enabling client source maps, you probably want to delete them after they're uploaded to Sentry.
+ // Set the appropriate glob pattern for your output folder - some glob examples below:
+ filesToDeleteAfterUpload: ["./**/*.map", ".*/**/public/**/*.map", "./dist/**/client/**/*.map"]
+ }
+ }),
+ ],
+};
+```
+
+
+
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Rollup Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/rollup-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Rollup Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx
index 7440da1fd816d..f80aaf701c107 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/vite.mdx
@@ -23,20 +23,30 @@ If you'd rather configure source map uploading with Vite manually, follow the st
## Manual Setup
+
+
Install the Sentry Vite plugin:
```bash {tabTitle:npm}
-npm install @sentry/vite-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/vite-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/vite-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
+
+
+
+
+The Sentry Vite plugin is part of `@sentry/node`. You don't need to install another package.
+
+
+
### Configuration
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -46,7 +56,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
+Learn more about configuring the plugin in our Sentry Vite Plugin documentation.
@@ -64,9 +74,11 @@ Place the Sentry Vite plugin **after all other plugins** in your `plugins` array
Example:
+
+
```javascript {filename:vite.config.js}
import { defineConfig } from "vite";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
export default defineConfig({
build: {
@@ -89,11 +101,42 @@ export default defineConfig({
});
```
+
+
+
+
+```javascript {filename:vite.config.js}
+import { defineConfig } from "vite";
+import { sentryVitePlugin } from "@sentry/node/vite";
+
+export default defineConfig({
+ build: {
+ sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
+ },
+ plugins: [
+ // Put the Sentry Vite plugin after all other plugins
+ sentryVitePlugin({
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+
+ sourcemaps: {
+ // As you're enabling client source maps, you probably want to delete them after they're uploaded to Sentry.
+ // Set the appropriate glob pattern for your output folder - some glob examples below:
+ filesToDeleteAfterUpload: ["./**/*.map", ".*/**/public/**/*.map", "./dist/**/client/**/*.map"]
+ }
+ }),
+ ],
+});
+```
+
+
+
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Vite Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx
index 645a7934a727b..3ecc5dc434c6e 100644
--- a/docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx
+++ b/docs/platforms/javascript/common/sourcemaps/uploading/webpack.mdx
@@ -22,20 +22,30 @@ If you'd rather configure source map uploading with webpack manually, follow the
## Manual Setup
+
+
Install the Sentry webpack plugin:
```bash {tabTitle:npm}
-npm install @sentry/webpack-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/webpack-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/webpack-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
+
+
+
+
+The Sentry webpack plugin is part of your Sentry SDK package. You don't need to install another package.
+
+
+
### Configuration
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -45,7 +55,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
+Learn more about configuring the plugin in our Sentry webpack plugin documentation.
@@ -57,8 +67,10 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
And the following webpack config:
+
+
```javascript {filename:webpack.config.js}
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
// ... other config above ...
@@ -82,12 +94,41 @@ module.exports = {
+
+
+```javascript {filename:webpack.config.js}
+const { sentryWebpackPlugin } = require("___SDK_PACKAGE___/webpack");
+
+module.exports = {
+ // ... other config above ...
+
+ devtool: "hidden-source-map", // Source map generation must be turned on ("hidden-source-map", "source-map", etc.)
+ plugins: [
+ sentryWebpackPlugin({
+ org: "___ORG_SLUG___",
+ project: "___PROJECT_SLUG___",
+ authToken: process.env.SENTRY_AUTH_TOKEN,
+
+ sourcemaps: {
+ // As you're enabling client source maps, you probably want to delete them after they're uploaded to Sentry.
+ // Set the appropriate glob pattern for your output folder - some glob examples below:
+ filesToDeleteAfterUpload: ["./**/*.map", ".*/**/public/**/*.map", "./dist/**/client/**/*.map"]
+ }
+ }),
+ ],
+};
+```
+
+
+
+
+
Add the following to your `gatsby-node.js` file:
```javascript {filename:gatsby-node.js}
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
@@ -113,8 +154,8 @@ exports.onCreateWebpackConfig = ({ actions }) => {
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
- deny access to `.js.map` files, or by using [Sentry Webpack Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/webpack-plugin#sourcemapsfilestodeleteafterupload)
+ deny access to `.js.map` files, or by using Sentry Webpack Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/guides/cordova/configuration/tree-shaking.mdx b/docs/platforms/javascript/guides/cordova/configuration/tree-shaking.mdx
index b12e6692e1ad6..4302ac3884a28 100644
--- a/docs/platforms/javascript/guides/cordova/configuration/tree-shaking.mdx
+++ b/docs/platforms/javascript/guides/cordova/configuration/tree-shaking.mdx
@@ -31,7 +31,7 @@ _This configuration is available starting with v2.9.0 of the bundler plugins._
If you're using one of our bundler plugins, you can use the `bundleSizeOptimizations` configuration option to tree shake optional code:
```javascript
-// For example, the @sentry/webpack-plugin passed to the webpack config
+// For example, the @sentry/bundler-plugins/webpack passed to the webpack config
sentryPlugin({
// other config
bundleSizeOptimizations: {
@@ -48,10 +48,11 @@ sentryPlugin({
For more details, see the documentation for the specific bundler plugin you're using:
-- [Sentry Webpack Plugin](https://www.npmjs.com/package/@sentry/webpack-plugin)
-- [Sentry Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin)
-- [Sentry Esbuild Plugin](https://www.npmjs.com/package/@sentry/esbuild-plugin)
-- [Sentry Rollup Plugin](https://www.npmjs.com/package/@sentry/rollup-plugin)
+- Sentry Webpack Plugin
+- Sentry Vite Plugin
+- Sentry Esbuild Plugin
+- Sentry Rollup Plugin
+- [Bundler Plugin Options](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#bundle-size-optimizations)
### Manual Tree Shaking
diff --git a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/esbuild.mdx b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/esbuild.mdx
index a55d1834b9f28..dead3b14915d2 100644
--- a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/esbuild.mdx
+++ b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/esbuild.mdx
@@ -25,15 +25,15 @@ If you want to configure source map uploading with esbuild manually, follow the
Install the Sentry esbuild plugin:
```bash {tabTitle:npm}
-npm install @sentry/esbuild-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/esbuild-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/esbuild-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
### Configure
@@ -45,7 +45,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry esbuild Plugin documentation](https://www.npmjs.com/package/@sentry/esbuild-plugin).
+Learn more about configuring the plugin in our [Sentry esbuild Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/).
@@ -56,7 +56,7 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Example:
```javascript {filename:esbuild.config.js}
-const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
+const { sentryEsbuildPlugin } = require("@sentry/bundler-plugins/esbuild");
require("esbuild").build({
sourcemap: "hidden", // Source map generation must be turned on ("hidden", true, etc.)
@@ -81,7 +81,7 @@ require("esbuild").build({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
deny access to `.js.map` files, or by using [Sentry Esbuild Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/esbuild-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx
index 29b44acd07dd1..066d1b6ba87f4 100644
--- a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx
+++ b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx
@@ -26,15 +26,15 @@ If you'd rather manually configure source map uploading with the CLI, follow the
Install the Sentry Rollup plugin:
```bash {tabTitle:npm}
-npm install @sentry/rollup-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/rollup-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/rollup-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
### Configuration
@@ -46,7 +46,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry Rollup Plugin documentation](https://www.npmjs.com/package/@sentry/rollup-plugin).
+Learn more about configuring the plugin in our [Sentry Rollup Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/).
@@ -57,7 +57,7 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
Example:
```javascript {filename:rollup.config.js}
-import { sentryRollupPlugin } from "@sentry/rollup-plugin";
+import { sentryRollupPlugin } from "@sentry/bundler-plugins/rollup";
export default {
output: {
@@ -83,6 +83,6 @@ export default {
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
deny access to `.js.map` files, or by using [Sentry Rollup Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/rollup-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/vite.mdx b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/vite.mdx
index 7440da1fd816d..dc338d99470c8 100644
--- a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/vite.mdx
+++ b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/vite.mdx
@@ -26,15 +26,15 @@ If you'd rather configure source map uploading with Vite manually, follow the st
Install the Sentry Vite plugin:
```bash {tabTitle:npm}
-npm install @sentry/vite-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/vite-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/vite-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
### Configuration
@@ -46,7 +46,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
+Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/).
@@ -66,7 +66,7 @@ Example:
```javascript {filename:vite.config.js}
import { defineConfig } from "vite";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
export default defineConfig({
build: {
@@ -93,7 +93,7 @@ export default defineConfig({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
deny access to `.js.map` files, or by using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/webpack.mdx b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/webpack.mdx
index 64ddd6c3d923f..a2f2839024e8e 100644
--- a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/webpack.mdx
+++ b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/webpack.mdx
@@ -25,15 +25,15 @@ If you'd rather configure source map uploading with webpack manually, follow the
Install the Sentry webpack plugin:
```bash {tabTitle:npm}
-npm install @sentry/webpack-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/webpack-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/webpack-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
### Configuration
@@ -45,7 +45,7 @@ Alternatively, you can also use a [Personal Token](https://sentry.io/orgredirect
Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file (don't forget to add it to your `.gitignore` file, as this is sensitive data) in the working directory when building your project.
We recommend you add the auth token to your CI/CD environment as an environment variable.
-Learn more about configuring the plugin in our [Sentry webpack plugin documentation](https://www.npmjs.com/package/@sentry/webpack-plugin).
+Learn more about configuring the plugin in our [Sentry webpack plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/).
@@ -56,7 +56,7 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___
And the following webpack config:
```javascript {filename:webpack.config.js}
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
// ... other config above ...
@@ -82,7 +82,7 @@ module.exports = {
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to
deny access to `.js.map` files, or by using [Sentry Webpack Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/webpack-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx b/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
index 17b8795745151..65cc4f66e263a 100644
--- a/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
+++ b/docs/platforms/javascript/guides/nextjs/configuration/build/index.mdx
@@ -295,7 +295,7 @@ export const { POST } = createSentryTunnelRoute({
Enables the use of the [`runAfterProductionCompile` hook from Next.js](https://nextjs.org/docs/architecture/nextjs-compiler#runafterproductioncompile) to upload sourcemaps after the build is completed.
- This option is set to `true` by default for Turbopack as there are no alternative ways to upload sourcemaps here.
-- This option is set to `false` for Webpack as the default behavior is to upload sourcemaps during the build process using the [Sentry Webpack Plugin](https://github.com/getsentry/sentry-javascript-bundler-plugins).
+- This option is set to `false` for Webpack as the default behavior is to upload sourcemaps during the build process using the Sentry Webpack Plugin.
**Important:** Enabling this option will mutate your Next.js build output by injecting [Debug IDs](/platforms/javascript/guides/nextjs/sourcemaps/troubleshooting_js/debug-ids/) via the Sentry CLI. If you are relying on any sort of integrity hashes for your build artifacts, you will need to disable this option.
diff --git a/docs/platforms/javascript/guides/react/features/component-names.mdx b/docs/platforms/javascript/guides/react/features/component-names.mdx
index c4c905065e515..f4aa42ce24016 100644
--- a/docs/platforms/javascript/guides/react/features/component-names.mdx
+++ b/docs/platforms/javascript/guides/react/features/component-names.mdx
@@ -20,7 +20,7 @@ CommonOptions
## Component Name Capturing
-You can capture the names of React components in your application via a [Babel plugin](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate), which can unlock powerful workflows and decrease ambiguity. For example, you can search for replays where a specific React component was clicked on. You can also see the name of the component that was clicked on in breadcrumbs and spans on Sentry's **Performance** page. This significantly decreases the amount of ambiguity involved in figuring out which element was interacted with as compared to trying to figure it out by looking at the element's CSS selector alone (which becomes even more ambiguous after the minification process).
+You can capture the names of React components in your application via a Babel plugin, which can unlock powerful workflows and decrease ambiguity. For example, you can search for replays where a specific React component was clicked on. You can also see the name of the component that was clicked on in breadcrumbs and spans on Sentry's **Performance** page. This significantly decreases the amount of ambiguity involved in figuring out which element was interacted with as compared to trying to figure it out by looking at the element's CSS selector alone (which becomes even more ambiguous after the minification process).
We're working to release more features that will leverage component name capturing in the future and highly recommended that you configure your project to use it.
@@ -35,18 +35,18 @@ Only React components in `.jsx` or `.tsx` files can be tracked.
There are two different ways you can set up React component name capturing in your application:
-1. By installing [Sentry's bundler plugins](https://www.npmjs.com/package/@sentry/bundler-plugin-core)
-2. By directly installing [@sentry/babel-plugin-component-annotate](https://www.npmjs.com/package/@sentry/babel-plugin-component-annotate)
+1. By installing Sentry's bundler plugins
+2. By directly installing `@sentry/bundler-plugins/babel-plugin`
We recommend that you use the first option because the Sentry bundler plugins come packed with additional useful features to enrich your Sentry workflows, including: automatic sourcemap upload,
release creation, automatic release name discovery, and release injection.
**Set up using bundler plugins**:
-Follow the instructions in the npm page for the bundler that your project uses:
-- [Rollup](https://www.npmjs.com/package/@sentry/rollup-plugin)
-- [Vite](https://www.npmjs.com/package/@sentry/vite-plugin)
-- [Webpack](https://www.npmjs.com/package/@sentry/webpack-plugin)
+Follow the instructions in the guide for the bundler that your project uses:
+- Rollup
+- Vite
+- Webpack
Please note that although there is a Sentry bundler plugin for **esbuild**, React component name capturing is currently not supported.
@@ -78,6 +78,30 @@ To avoid these errors, you can exclude specific components from annotation by us
+**Set up using the Babel plugin**:
+
+Install `@sentry/bundler-plugins`:
+
+```bash {tabTitle:npm}
+npm install @sentry/bundler-plugins --save-dev
+```
+
+```bash {tabTitle:yarn}
+yarn add @sentry/bundler-plugins --dev
+```
+
+```bash {tabTitle:pnpm}
+pnpm add @sentry/bundler-plugins --save-dev
+```
+
+Then add the plugin to your Babel config:
+
+```json {filename:.babelrc}
+{
+ "plugins": ["@sentry/bundler-plugins/babel-plugin"]
+}
+```
+
Now, you will be able to see your component names in breadcrumbs, spans, and search for replays by component names.
See [this page](/concepts/search/searchable-properties/session-replay/#clickcomponent_name) for more information on searching for Replays by component name.
diff --git a/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx b/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
index 202086bd256c2..5663884faf889 100644
--- a/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
+++ b/docs/platforms/javascript/guides/tanstackstart-react/features/sentryTanstackStart.mdx
@@ -51,7 +51,7 @@ export default defineConfig({
## Configuration Options
-The plugin passes through all options to the underlying [`@sentry/vite-plugin`](/platforms/javascript/sourcemaps/uploading/vite/). See the [Sentry Vite Plugin documentation](/platforms/javascript/sourcemaps/uploading/vite/) for the full list of available options.
+The plugin passes through all options to the underlying [`@sentry/bundler-plugins/vite`](/platforms/javascript/sourcemaps/uploading/vite/). See the [Sentry Vite Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/) for the full list of available options.
### Automatic Middleware Instrumentation
diff --git a/docs/product/sentry-basics/getting-started-tutorial/enable-readable-stack-traces.mdx b/docs/product/sentry-basics/getting-started-tutorial/enable-readable-stack-traces.mdx
index 12c7cd7f2ee7e..e2c22d765a748 100644
--- a/docs/product/sentry-basics/getting-started-tutorial/enable-readable-stack-traces.mdx
+++ b/docs/product/sentry-basics/getting-started-tutorial/enable-readable-stack-traces.mdx
@@ -29,15 +29,15 @@ The sample frontend app uses [Vite](https://vite.dev/) as its build tool, and th
In the `tracing-tutorial-frontend` project folder, install the plugin as a dev dependency:
```bash {tabTitle:npm}
-npm install @sentry/vite-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/vite-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/vite-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
## 2. Add an Auth Token
@@ -72,7 +72,7 @@ Now open `vite.config.js` and add `sentryVitePlugin` as shown below, replacing `
```javascript {filename:vite.config.js}
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
export default defineConfig({
build: {
diff --git a/platform-includes/configuration/filter-application-key/javascript.mdx b/platform-includes/configuration/filter-application-key/javascript.mdx
index d101bab6445fc..c827a88c670ce 100644
--- a/platform-includes/configuration/filter-application-key/javascript.mdx
+++ b/platform-includes/configuration/filter-application-key/javascript.mdx
@@ -1,7 +1,7 @@
```ts {tabTitle:Vite} {mdExpandTabs} {8}
// vite.config.ts
import { defineConfig } from "vite";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
export default defineConfig({
plugins: [
@@ -14,7 +14,7 @@ export default defineConfig({
```js {tabTitle:Webpack} {7}
// webpack.config.js
-const { sentryWebpackPlugin } = require("@sentry/webpack-plugin");
+const { sentryWebpackPlugin } = require("@sentry/bundler-plugins/webpack");
module.exports = {
plugins: [
@@ -27,7 +27,7 @@ module.exports = {
```js {tabTitle:esbuild} {7}
// esbuild.config.js
-const { sentryEsbuildPlugin } = require("@sentry/esbuild-plugin");
+const { sentryEsbuildPlugin } = require("@sentry/bundler-plugins/esbuild");
require("esbuild").build({
plugins: [
@@ -40,7 +40,7 @@ require("esbuild").build({
```js {tabTitle:Rollup} {7}
// rollup.config.mjs
-import { sentryRollupPlugin } from "@sentry/rollup-plugin";
+import { sentryRollupPlugin } from "@sentry/bundler-plugins/rollup";
export default {
plugins: [
diff --git a/platform-includes/sourcemaps/overview/javascript.astro.mdx b/platform-includes/sourcemaps/overview/javascript.astro.mdx
index bbb9bc7a66ebb..6d2e2aa84d71e 100644
--- a/platform-includes/sourcemaps/overview/javascript.astro.mdx
+++ b/platform-includes/sourcemaps/overview/javascript.astro.mdx
@@ -61,5 +61,5 @@ Source maps work best with [organization-scoped auth tokens](/account/auth-token
The Astro SDK uses the Sentry Vite plugin to upload source maps.
This plugin collects telemetry data to help us improve the source map uploading experience.
-Read more about this in our [Vite plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin#telemetry).
+Read more about this in our [Vite plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#telemetry).
You can disable telemetry collection by setting `telemetry: false` in the `sentry` integration options.
diff --git a/platform-includes/sourcemaps/overview/javascript.nuxt.mdx b/platform-includes/sourcemaps/overview/javascript.nuxt.mdx
index ded141af5c79e..6cb5dd02670a6 100644
--- a/platform-includes/sourcemaps/overview/javascript.nuxt.mdx
+++ b/platform-includes/sourcemaps/overview/javascript.nuxt.mdx
@@ -76,7 +76,7 @@ export default defineNuxtConfig({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to deny access to `.js.map` files, or by
using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/platform-includes/sourcemaps/overview/javascript.svelte.mdx b/platform-includes/sourcemaps/overview/javascript.svelte.mdx
index a7544f97288bf..75a2ed86f9691 100644
--- a/platform-includes/sourcemaps/overview/javascript.svelte.mdx
+++ b/platform-includes/sourcemaps/overview/javascript.svelte.mdx
@@ -38,15 +38,15 @@ export default config;
If you're using Vite in you Svelte project, you can use Sentry's Vite plugin for convenience:
```bash {tabTitle:npm}
-npm install @sentry/vite-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/vite-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/vite-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -70,7 +70,7 @@ Configure Vite to emit source maps and use the Sentry Vite plugin:
```JavaScript {filename:vite.config.js}
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
export default defineConfig({
build: {
@@ -98,8 +98,8 @@ export default defineConfig({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to deny access to `.js.map` files, or by
- using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ using Sentry Vite Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/platform-includes/sourcemaps/overview/javascript.vue.mdx b/platform-includes/sourcemaps/overview/javascript.vue.mdx
index e0bbedc90db61..c99da813efd0d 100644
--- a/platform-includes/sourcemaps/overview/javascript.vue.mdx
+++ b/platform-includes/sourcemaps/overview/javascript.vue.mdx
@@ -24,20 +24,20 @@ You can use the Sentry Vite plugin to automatically create [releases](/product/r
#### Installation
```bash {tabTitle:npm}
-npm install @sentry/vite-plugin --save-dev
+npm install @sentry/bundler-plugins --save-dev
```
```bash {tabTitle:yarn}
-yarn add @sentry/vite-plugin --dev
+yarn add @sentry/bundler-plugins --dev
```
```bash {tabTitle:pnpm}
-pnpm add @sentry/vite-plugin --save-dev
+pnpm add @sentry/bundler-plugins --save-dev
```
#### Configuration
-Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
+Learn more about configuring the plugin in our Sentry Vite Plugin documentation.
To upload source maps you have to configure an [Organization Token](https://sentry.io/orgredirect/organizations/:orgslug/settings/auth-tokens/).
@@ -60,7 +60,7 @@ Example:
```javascript {filename:vite.config.js}
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
-import { sentryVitePlugin } from "@sentry/vite-plugin";
+import { sentryVitePlugin } from "@sentry/bundler-plugins/vite";
// https://vitejs.dev/config/
export default defineConfig({
@@ -89,8 +89,8 @@ export default defineConfig({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to deny access to `.js.map` files, or by
- using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ using Sentry Vite Plugin's
+ `sourcemaps.filesToDeleteAfterUpload`
option to delete source maps after they've been uploaded to Sentry.
diff --git a/platform-includes/sourcemaps/primer/javascript.astro.mdx b/platform-includes/sourcemaps/primer/javascript.astro.mdx
index d78f181bc6b8a..a61dbf9f70ed7 100644
--- a/platform-includes/sourcemaps/primer/javascript.astro.mdx
+++ b/platform-includes/sourcemaps/primer/javascript.astro.mdx
@@ -1,3 +1,3 @@
The Sentry Astro SDK will generate and upload source maps automatically during a production build, so that errors in Sentry contain readable stack traces.
-It uses the [Sentry Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin/) to upload source maps. See the Manual Configuration page and the Sentry [Vite plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin/#configuration) for more details.
+It uses the Sentry Vite Plugin to upload source maps. See the Manual Configuration page and the Sentry [Vite plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/) for more details.
diff --git a/platform-includes/sourcemaps/primer/javascript.nuxt.mdx b/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
index 368f3c66327ea..59632620a68c6 100644
--- a/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
+++ b/platform-includes/sourcemaps/primer/javascript.nuxt.mdx
@@ -1,4 +1,4 @@
-`@sentry/nuxt` uses the [Sentry Vite Plugin](https://www.npmjs.com/package/@sentry/vite-plugin) and the [Sentry Rollup Plugin](https://www.npmjs.com/package/@sentry/rollup-plugin) to generate and upload source maps automatically. This means that when you run a production build (`nuxt build`), source maps will be generated and uploaded to Sentry, so that errors in Sentry will contain readable stack traces.
+`@sentry/nuxt` uses the Sentry Vite Plugin and the Sentry Rollup Plugin to generate and upload source maps automatically. This means that when you run a production build (`nuxt build`), source maps will be generated and uploaded to Sentry, so that errors in Sentry will contain readable stack traces.
## Configure Source Maps Upload
@@ -50,7 +50,7 @@ export default defineNuxtConfig({
Generating source maps **may expose them to the public**, potentially causing your
source code to be leaked. You can prevent this by configuring your server to deny access to `.js.map` files, or by
using [Sentry Vite Plugin's
- `sourcemaps.filesToDeleteAfterUpload`](https://www.npmjs.com/package/@sentry/vite-plugin#sourcemapsfilestodeleteafterupload)
+ `sourcemaps.filesToDeleteAfterUpload`](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/#sourcemaps.filesToDeleteAfterUpload)
option to delete source maps after they've been uploaded to Sentry.
diff --git a/platform-includes/sourcemaps/primer/javascript.solidstart.mdx b/platform-includes/sourcemaps/primer/javascript.solidstart.mdx
index ba3bdf68156bd..0ea543c2bf354 100644
--- a/platform-includes/sourcemaps/primer/javascript.solidstart.mdx
+++ b/platform-includes/sourcemaps/primer/javascript.solidstart.mdx
@@ -6,7 +6,7 @@ The easiest way to configure uploading source maps is by using the [Sentry Wizar
npx @sentry/wizard@latest -i solidstart
```
-The SolidStart SDK uses the Sentry Vite Plugin under the hood to upload source maps. See the [Vite plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin/#configuration) for more details.
+The SolidStart SDK uses the Sentry Vite Plugin under the hood to upload source maps. See the [Vite plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/) for more details.
**Note:** Source maps are only generated and uploaded during **production builds** (`npm run build`). Development builds (`npm run dev`) do not generate source maps for upload.
diff --git a/platform-includes/sourcemaps/primer/javascript.sveltekit.mdx b/platform-includes/sourcemaps/primer/javascript.sveltekit.mdx
index 7bfc3fb1a65b7..b494a6348344f 100644
--- a/platform-includes/sourcemaps/primer/javascript.sveltekit.mdx
+++ b/platform-includes/sourcemaps/primer/javascript.sveltekit.mdx
@@ -1,3 +1,3 @@
`@sentry/sveltekit` will generate and upload source maps automatically, so that errors in Sentry will contain readable stack traces.
-The SvelteKit SDK uses the Sentry Vite Plugin to upload source maps. See the [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin#options) for all available options.
+The SvelteKit SDK uses the Sentry Vite Plugin to upload source maps. See the [Sentry Vite Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/) for all available options.
diff --git a/platform-includes/sourcemaps/upload/primer/javascript.svelte.mdx b/platform-includes/sourcemaps/upload/primer/javascript.svelte.mdx
index deaafdc781c0a..bef71655697fa 100644
--- a/platform-includes/sourcemaps/upload/primer/javascript.svelte.mdx
+++ b/platform-includes/sourcemaps/upload/primer/javascript.svelte.mdx
@@ -1,6 +1,6 @@
To upload your Svelte project's source maps to Sentry, you currently have two options:
-- Use the [Sentry Vite plugin](https://www.npmjs.com/package/@sentry/vite-plugin) to set releases and upload source maps.
+- Use the Sentry Vite plugin to set releases and upload source maps.
- Upload source maps manually using [Sentry-CLI](./cli/). Take a look at this [bash script](https://github.com/getsentry/sentry-javascript/tree/master/packages/svelte#sourcemaps-and-releases) as an example of how to configure the CLI for a typical Svelte project.
For other bundlers or more advanced configurations, take a look at the following guides and options for uploading sourcemaps:
diff --git a/platform-includes/sourcemaps/upload/primer/javascript.sveltekit.mdx b/platform-includes/sourcemaps/upload/primer/javascript.sveltekit.mdx
index de8e5ec131a6a..79c93fe859d73 100644
--- a/platform-includes/sourcemaps/upload/primer/javascript.sveltekit.mdx
+++ b/platform-includes/sourcemaps/upload/primer/javascript.sveltekit.mdx
@@ -23,7 +23,7 @@ SENTRY_URL="https://your-sentry-instance.com"
**Option 2**
-You can also set your org and project slugs directly in the `sentrySvelteKit` options, as seen in the example below. For a full list of available options, see the [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin#options).
+You can also set your org and project slugs directly in the `sentrySvelteKit` options, as seen in the example below. For a full list of available options, see the [Sentry Vite Plugin documentation](/platforms/javascript/sourcemaps/uploading/bundler-plugin-options/).
```javascript {filename:vite.config.(js|ts)} {6-12}
import { sveltekit } from "@sveltejs/kit/vite";
From 54d30eb59cace3c887639c86b0e6e769bc9a066a Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 17:50:05 +0000
Subject: [PATCH 041/143] Bump API schema to c97b5635 (#20293)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 9c914f0a741bc..3aada75746459 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'c22a3401c4e45aaaec56d1ac3b370e1a3b3b2621';
+const SENTRY_API_SCHEMA_SHA = 'c97b5635f2ce85e04ad086ffe663aa11863413a8';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From e067681157f8679c3731937b9041f3694b8f8323 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 17:53:10 +0000
Subject: [PATCH 042/143] Bump API schema to bd6c8410 (#20294)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 3aada75746459..ba5dae403796a 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'c97b5635f2ce85e04ad086ffe663aa11863413a8';
+const SENTRY_API_SCHEMA_SHA = 'bd6c8410ffc459d136b6cfc0174aef2c47dac21b';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 5274594220826c576e485b4fd9216bcbd4832200 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 20:32:33 +0000
Subject: [PATCH 043/143] Bump API schema to 27c9db10 (#20295)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index ba5dae403796a..fc044bc982c58 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'bd6c8410ffc459d136b6cfc0174aef2c47dac21b';
+const SENTRY_API_SCHEMA_SHA = '27c9db10d51ce98c2e8fc8a4f765a485264e6926';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 58396c94554f3b608ae7f620d68bfe950e60dae4 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 20:37:52 +0000
Subject: [PATCH 044/143] Bump API schema to 7c7b6c1e (#20296)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index fc044bc982c58..bfe2cc44e2fc2 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '27c9db10d51ce98c2e8fc8a4f765a485264e6926';
+const SENTRY_API_SCHEMA_SHA = '7c7b6c1eb5a438a53e776bee44283b4ace944847';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From f2901f3c16ea9e06cc85ca40d72dda9b0e2d83cd Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 21:44:19 +0000
Subject: [PATCH 045/143] Bump API schema to 64186e7d (#20298)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index bfe2cc44e2fc2..caf2bb6955c01 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '7c7b6c1eb5a438a53e776bee44283b4ace944847';
+const SENTRY_API_SCHEMA_SHA = '64186e7d7496254a73e247e38a59969962f92768';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From ad36acb437d76101a47c9f5518842d5ba2925144 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 21:47:37 +0000
Subject: [PATCH 046/143] Bump API schema to 3aba9d56 (#20299)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index caf2bb6955c01..c0cda4b589b18 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '64186e7d7496254a73e247e38a59969962f92768';
+const SENTRY_API_SCHEMA_SHA = '3aba9d569fb2573fc46c9f307fa224bb614ff932';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 2cf93320e1041d9a85384fd75a9783eda298ab4e Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 21:59:24 +0000
Subject: [PATCH 047/143] Bump API schema to 706e9c62 (#20300)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index c0cda4b589b18..83dc1424368e0 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '3aba9d569fb2573fc46c9f307fa224bb614ff932';
+const SENTRY_API_SCHEMA_SHA = '706e9c6272b1b68a35d0c4ca86cf0b33e81582b5';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 4175344713529f9e16d389c24c3d588ae38cfe82 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 22:03:10 +0000
Subject: [PATCH 048/143] Bump API schema to 51d997b9 (#20301)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 83dc1424368e0..6e90027c2975c 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '706e9c6272b1b68a35d0c4ca86cf0b33e81582b5';
+const SENTRY_API_SCHEMA_SHA = '51d997b94cf24bffba63e47e23e143daf0c63e73';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 7e9125b7c56a90e7e6ae53d7defb8bf669b4e4e5 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 22:15:30 +0000
Subject: [PATCH 049/143] Bump API schema to 595f666b (#20302)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 6e90027c2975c..7f33d72d3bfba 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '51d997b94cf24bffba63e47e23e143daf0c63e73';
+const SENTRY_API_SCHEMA_SHA = '595f666b2b4cc9a004f27f7631aa20a4ad9c46af';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From aa90db0815f6fb7ea5f3c7dbdaa4eab6286f9111 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 22:19:25 +0000
Subject: [PATCH 050/143] Bump API schema to 1891c6e5 (#20304)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 7f33d72d3bfba..c88645f07f926 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '595f666b2b4cc9a004f27f7631aa20a4ad9c46af';
+const SENTRY_API_SCHEMA_SHA = '1891c6e5c92e2b1d35f9bfdc7122a45f447e6e26';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From ef4c535aabc428b31a9a2ac1bdd0529fbb65ea1d Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 22:43:07 +0000
Subject: [PATCH 051/143] Bump API schema to c660f5a9 (#20305)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index c88645f07f926..59c85ee6e7c8c 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '1891c6e5c92e2b1d35f9bfdc7122a45f447e6e26';
+const SENTRY_API_SCHEMA_SHA = 'c660f5a94612cac5f8b4c6402b20c2b320913982';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From e0a3fbdeab06b75b3494d5106cac3ebf6cfb1f37 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 22:46:36 +0000
Subject: [PATCH 052/143] Bump API schema to 99563f64 (#20306)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 59c85ee6e7c8c..be9e8408ce88f 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'c660f5a94612cac5f8b4c6402b20c2b320913982';
+const SENTRY_API_SCHEMA_SHA = '99563f64dea0a50d64f6be6ca6ab5f19a847b0eb';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From afef69407b8c02a5283daf649278be8be0d62d32 Mon Sep 17 00:00:00 2001
From: Alex Krawiec
Date: Wed, 28 Oct 2026 16:06:24 -0700
Subject: [PATCH 053/143] Updates to improve lighthouse accessibility score
(#20275)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## DESCRIBE YOUR PR
Fixes every weighted accessibility failure flagged by a Chrome mobile
Lighthouse run against docs.sentry.io. Verified with Lighthouse 13
against a local dev server: **mobile accessibility 81 β 100**, desktop
also 100, with no weighted failures left in either.
To verify: run mobile lighthouse scan on
https://sentry-docs-git-coolguyzone-fixlighthouse-a11y.sentry.dev/
Noticeable UI changes:
1. Homepage inline links are now underlined β the most noticeable
change.
2. The "or" divider pill is a deeper purple β #8d84d0 β #6a5fc1. Subtle
but visible side by side.
3. The header "or" separator is darker and warmer β light purple-gray
#bbadc6 β --gray-11. Desktop only (hidden md:inline).
Details:
- **Platform filter** (`src/components/platformFilter/`) β the Radix
`Collapsible.Trigger` was rendering `aria-expanded` onto a plain
`
`, and each card wrapped its chevron in an empty `` with
no accessible name (14 of each on the homepage). The trigger is now a
real `` whose accessible name is the platform
title, and the chevron is a ``. Clears `aria-allowed-attr` and
`button-name`. This fixes genuinely broken keyboard and screen-reader
behavior on the platform list, not just the score.
- **Theme toggle** β added `aria-label="Toggle theme"`. The Radix
tooltip supplies `aria-describedby`, not an accessible name.
- **Homepage "or" divider** β `color-mix(β¦, transparent 25%)` rendered
`#8d84d0` on `#f6f5fb`, a contrast ratio of 3.05:1. Now
`var(--accent-purple)` at 4.82:1.
- **Homepage inline links** (`.seeAllLink`) β these sit inline in body
copy with `text-decoration: none` and only 1.16:1 contrast against the
surrounding text, so color alone distinguished them. Now always
underlined.
- **Search bar "or" separator** β `var(--desatPurple10)` on white is
2.08:1. Now `var(--gray-11)`. This element is `hidden md:inline`, so it
affects desktop only.
Worth flagging for reviewers: the `desatPurple0β15` scale in
`app/globals.css` is not overridden in `.dark`, so no fixed step on it
clears 4.5:1 in both themes (step 6 is 5.24 light / 3.39 dark; step 8 is
3.48 light / 5.12 dark). That's why the search separator moved to the
theme-aware Radix `--gray-11` rather than a darker purple.
Two things reviewers should eyeball in the preview, since Lighthouse
only audits light mode: the two color changes are deliberate visual
deltas (the search separator goes from muted purple to warm gray), and
dark mode is unverified.
## 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
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
π€ Generated with [Claude Code](https://claude.com/claude-code)
---
src/components/home.module.scss | 10 ++++------
src/components/platformFilter/client.tsx | 12 ++++++------
src/components/platformFilter/style.module.scss | 7 +++++++
src/components/search/index.tsx | 2 +-
src/components/theme-toggle.tsx | 1 +
5 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/src/components/home.module.scss b/src/components/home.module.scss
index f629fc785a469..44841f711466b 100644
--- a/src/components/home.module.scss
+++ b/src/components/home.module.scss
@@ -155,7 +155,7 @@
padding: 2px 36px;
border-radius: 999px;
background: color-mix(in srgb, var(--accent-purple), transparent 94%);
- color: color-mix(in srgb, var(--accent-purple), transparent 25%);
+ color: var(--accent-purple);
font-size: 15px;
font-weight: 600;
line-height: 1.2;
@@ -188,11 +188,9 @@
.seeAllLink {
color: var(--accent);
- text-decoration: none;
-
- &:hover {
- text-decoration: underline;
- }
+ // these links sit inline in body copy, so color alone isn't enough to tell
+ // them apart from the surrounding text
+ text-decoration: underline;
}
// Shared command/action pill.
diff --git a/src/components/platformFilter/client.tsx b/src/components/platformFilter/client.tsx
index ab7eafe498e34..f9cc8274d8f9a 100644
--- a/src/components/platformFilter/client.tsx
+++ b/src/components/platformFilter/client.tsx
@@ -145,8 +145,8 @@ function PlatformWithGuides({
onOpenChange={setExpanded}
>
-
-
+
+
{platform.title}
-
-
+
+
-
-
+
+ , so reset the UA styles back to the surrounding text
+ width: 100%;
+ border: none;
+ font: inherit;
+ color: inherit;
+ text-align: left;
+
&:hover {
background-color: var(--item-hover-bg);
}
diff --git a/src/components/search/index.tsx b/src/components/search/index.tsx
index af4d521ce8f39..1239e5a5fb91e 100644
--- a/src/components/search/index.tsx
+++ b/src/components/search/index.tsx
@@ -424,7 +424,7 @@ export function Search({
- or
+ or {
// Set 'system' theme if the next theme matches the system theme
const resolvedTheme = theme === 'system' ? systemTheme : theme;
From acf05fa91088321cb96e859ade26138005b6d6da Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 16:40:18 -0700
Subject: [PATCH 054/143] feat(docs): Apply new quick start template to Python
quick start guides (#19982)
## DESCRIBE YOUR PR
Applies the quick start template from #19295 (Ember) to the Python quick
start and the Django, Flask, FastAPI, Starlette, and Celery quick
starts.
- Removes the onboarding option checkboxes and `___PRODUCT_OPTION___`
markers.
- Configure names the features each guide sets up: Error Monitoring,
Logs, Application Metrics, Tracing, and Profiling. The init snippets
include Tracing and Profiling by default, and a note explains that
unwanted options can be removed.
- Adds **Send Logs** and **Send Application Metrics** as their own
steps. `sentry_sdk.logger` and `sentry_sdk.metrics` work without extra
options. Send Logs explains that stdlib `logging` and Loguru records
need `capture_sentry_logs=True` on their integrations, and links to
both.
- Framework-specific configuration (capturing errors, instrumentation)
stays in Configure. Verify is reduced to one minimal error trigger per
framework.
- Removes "(Optional)" from headings and trims Next Steps.
The shared Python init include is reused by other pages, so FastAPI,
Flask, and Starlette now inline their snippets instead of editing it.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
via **shannon.anahata**.
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0BB8KQT6MU%3A1792013336.218129/?project=4510944073809921)
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Shannon Anahata
Co-authored-by: Shannon Anahata
---
docs/platforms/python/index.mdx | 115 +++++++++--------
.../python/integrations/celery/index.mdx | 122 ++++++++----------
.../python/integrations/django/index.mdx | 97 +++++++-------
.../python/integrations/fastapi/index.mdx | 101 +++++++++------
.../python/integrations/flask/index.mdx | 103 +++++++++------
.../python/integrations/starlette/index.mdx | 103 ++++++++++-----
.../getting-started-prerequisites/python.mdx | 1 +
7 files changed, 361 insertions(+), 281 deletions(-)
diff --git a/docs/platforms/python/index.mdx b/docs/platforms/python/index.mdx
index 245773b8724b1..871d81a8f54aa 100644
--- a/docs/platforms/python/index.mdx
+++ b/docs/platforms/python/index.mdx
@@ -1,6 +1,6 @@
---
title: Python
-description: Learn how to set up Sentry in your Python app, capture your first errors and traces, and view them in Sentry.
+description: Learn how to set up Sentry in your Python app, capture your first events and traces, and view them in Sentry.
caseStyle: snake_case
supportLevel: production
sdk: sentry.python
@@ -26,13 +26,12 @@ This guide focuses on plain Python. If you're working with Django, FastAPI, Star
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -42,12 +41,16 @@ Configuration should happen as **early as possible** in your application's lifec
Import and initialize the SDK in your app's entry point:
+The snippet also turns on:
+
+- Collection of user data, such as the user's IP address: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippet.
+
```python
import sentry_sdk
-# ___PRODUCT_OPTION_START___ metrics
-from sentry_sdk import metrics
-# ___PRODUCT_OPTION_END___ metrics
-
sentry_sdk.init(
dsn="___PUBLIC_DSN___",
@@ -55,48 +58,36 @@ sentry_sdk.init(
data_collection={
"user_info": True,
},
- # ___PRODUCT_OPTION_START___ performance
- # Set traces_sample_rate to 1.0 to capture 100%
- # of transactions for tracing.
- # see https://docs.sentry.io/platforms/python/configuration/options/#traces_sample_rate for more info
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
traces_sample_rate=1.0,
- # ___PRODUCT_OPTION_END___ performance
- # ___PRODUCT_OPTION_START___ profiling
- # Enables continuous profiling.
- # To collect profiles for all profile sessions,
- # set `profile_session_sample_rate` to 1.0.
- # see https://docs.sentry.io/platforms/python/configuration/options/#profile_session_sample_rate for more info
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
profile_session_sample_rate=1.0,
-
- # Profiles will be automatically collected while
- # there is an active span.
- # see https://docs.sentry.io/platforms/python/configuration/options/#profile_lifecycle for more info
+ # Profiles are collected while a transaction is active.
profile_lifecycle="trace",
- # ___PRODUCT_OPTION_END___ profiling
)
```
-In async programs, we recommend to initialize the Sentry SDK inside an `async` function to ensure async code is instrumented properly. If possible, call `sentry_sdk.init()` at the beginning of the first `async` function you call:
+In async programs, add the `AsyncioIntegration` to instrument your async code. This integration isn't enabled by default. Call `sentry_sdk.init()` at the beginning of the first `async` function you call:
```python
import asyncio
import sentry_sdk
-# ___PRODUCT_OPTION_START___ metrics
-from sentry_sdk import metrics
-# ___PRODUCT_OPTION_END___ metrics
-
+from sentry_sdk.integrations.asyncio import AsyncioIntegration
async def main():
sentry_sdk.init(
- ... # same as above
+ ..., # same options as above
+ integrations=[AsyncioIntegration()],
)
asyncio.run(main())
```
-
### Instrumenting Your App
The Sentry SDK automatically enables integrations for many popular libraries, so operations like HTTP requests or database queries made with supported libraries will be captured as spans automatically.
@@ -113,41 +104,55 @@ def some_function():
...
```
-
+## Send Logs
-## Verify Your Setup
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-Let's test your setup and confirm that data reaches your Sentry project.
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-
+See Set Up Logs for all available logging methods and formatting options.
-### Issues
+```python
+import sentry_sdk
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
+```
-```py
+## Send Application Metrics
+
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
+
+See Set Up Metrics for all available metric types and configuration options.
+
+```python
import sentry_sdk
-division_by_zero = 1 / 0
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
```
-
-
-
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Run this code after `sentry_sdk.init()` to send a test error, along with a trace, a log, and a metric:
-
+```python
+import sentry_sdk
-
+with sentry_sdk.start_transaction(op="test", name="Verify Sentry setup"):
+ sentry_sdk.logger.info("Sentry verification log")
+ sentry_sdk.metrics.count("sentry.verification", 1)
+ 1 / 0
+```
-
+
-
+The SDK sends profiles after a transaction finishes, so a script that exits right away, like the one above, might not send a profile. Profiles appear for applications that keep running after their transactions complete.
-
+
### View Captured Data in Sentry
@@ -157,15 +162,11 @@ Now, head over to your project on [Sentry.io](https://sentry.io) to view the col
## Next Steps
-At this point, you should have integrated Sentry into your Python application and should already be sending data to your Sentry project.
-
-Now's a good time to customize your setup and look into more advanced topics.
-Our next recommended steps for you are:
+At this point, you should have integrated Sentry into your Python application. Here's what to explore next:
- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
-- Continue to customize your configuration
-- Learn more about manually capturing errors or messages
-- Dive straight into the API with our [API docs](https://getsentry.github.io/sentry-python/)
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/docs/platforms/python/integrations/celery/index.mdx b/docs/platforms/python/integrations/celery/index.mdx
index e8aac80935497..74f6d04882f84 100644
--- a/docs/platforms/python/integrations/celery/index.mdx
+++ b/docs/platforms/python/integrations/celery/index.mdx
@@ -1,6 +1,6 @@
---
title: Celery
-description: "Learn how to set up Sentry in your Celery app, capture your first errors and traces, and view them in Sentry."
+description: "Learn how to set up Sentry in your Celery app, capture your first events and traces, and view them in Sentry."
---
@@ -24,13 +24,12 @@ You need:
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -38,6 +37,14 @@ Choose the features you want to configure, and this guide will show you how:
Configuration should happen as **early as possible** in your application's lifecycle.
+The init snippets also turn on:
+
+- Collection of task arguments in error events: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippets.
+
If you have the `celery` package in your dependencies, the Celery integration will be enabled automatically when you initialize the Sentry SDK.
@@ -55,9 +62,6 @@ When using Celery without Django, you'll need to initialize the Sentry SDK in bo
```python {filename:tasks.py}
from celery import Celery, signals
import sentry_sdk
-# ___PRODUCT_OPTION_START___ metrics
-from sentry_sdk import metrics
-# ___PRODUCT_OPTION_END___ metrics
# Initializing Celery
app = Celery("tasks", broker="...")
@@ -71,19 +75,15 @@ def init_sentry(**_kwargs):
data_collection={
"queues": True,
},
- # ___PRODUCT_OPTION_START___ performance
- # Set traces_sample_rate to 1.0 to capture 100%
- # of transactions for tracing.
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
traces_sample_rate=1.0,
- # ___PRODUCT_OPTION_END___ performance
- # ___PRODUCT_OPTION_START___ profiling
- # To collect profiles for all profile sessions,
- # set `profile_session_sample_rate` to 1.0.
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
profile_session_sample_rate=1.0,
- # Profiles will be automatically collected while
- # there is an active span.
+ # Profiles are collected while a transaction is active.
profile_lifecycle="trace",
- # ___PRODUCT_OPTION_END___ profiling
)
# Task definitions go here
@@ -99,9 +99,6 @@ The [`celeryd_init`](https://docs.celeryq.dev/en/stable/userguide/signals.html?#
```python {filename:main.py}
from tasks import add
import sentry_sdk
-# ___PRODUCT_OPTION_START___ metrics
-from sentry_sdk import metrics
-# ___PRODUCT_OPTION_END___ metrics
def main():
# Initializing Sentry SDK in our process
@@ -111,19 +108,15 @@ def main():
data_collection={
"queues": True,
},
- # ___PRODUCT_OPTION_START___ performance
- # Set traces_sample_rate to 1.0 to capture 100%
- # of transactions for tracing.
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
traces_sample_rate=1.0,
- # ___PRODUCT_OPTION_END___ performance
- # ___PRODUCT_OPTION_START___ profiling
- # To collect profiles for all profile sessions,
- # set `profile_session_sample_rate` to 1.0.
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
profile_session_sample_rate=1.0,
- # Profiles will be automatically collected while
- # there is an active span.
+ # Profiles are collected while a transaction is active.
profile_lifecycle="trace",
- # ___PRODUCT_OPTION_END___ profiling
)
# Enqueueing a task to be processed by Celery
@@ -147,7 +140,6 @@ Sentry automatically captures errors and exceptions raised in your Celery tasks
To learn how to manually report issues, see Capturing Errors.
-
### Instrumenting Your App
The Sentry SDK automatically creates spans for your Celery tasks, and propagates the trace from the code that enqueues a task to the worker that runs it.
@@ -198,52 +190,46 @@ my_task_b.apply_async(
# Note: overriding the tracing behaviour using `task_x.delay()` is not possible.
```
-
-
-## Verify Your Setup
+## Send Logs
-Let's test your setup and confirm that data reaches your Sentry project.
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-### Issues
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+See Set Up Logs for all available logging methods and formatting options.
-```python {filename:tasks.py}
-from celery import Celery, signals
+```python
import sentry_sdk
-app = Celery("tasks", broker="...")
-
-@signals.celeryd_init.connect
-def init_sentry(**_kwargs):
- sentry_sdk.init(...) # same as above
-
-@app.task
-def debug_sentry():
- 1/0
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
```
-Trigger the error by calling `debug_sentry.delay()`.
-
-To confirm that your SDK is initialized on worker start, pass `debug=True` to `sentry_sdk.init()`. This will add extra output to your Celery logs when the SDK is initialized. If you see the output during worker startup, and not just after a task has started, then it's working correctly.
-
-
+## Send Application Metrics
-
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
-
+See Set Up Metrics for all available metric types and configuration options.
-
+```python
+import sentry_sdk
-
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
+```
-
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Add a task that raises an exception, then call `debug_sentry.delay()` from a running Celery worker:
-
+```python
+@app.task
+def debug_sentry():
+ 1 / 0
+```
### View Captured Data in Sentry
@@ -286,12 +272,8 @@ If this is set to `False`:
- errors in Celery tasks won't be matched to the triggering function.
- your Celery tasks will start a new trace and won't be connected to the trace in the calling function.
-
-
See [Distributed Traces](#distributed-traces) to learn how to get more fine-grained control over distributed tracing in Celery tasks.
-
-
@@ -314,7 +296,11 @@ See Celery Beat Auto Discovery
+At this point, you should have integrated Sentry into your Celery application. Here's what to explore next:
+
+- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/docs/platforms/python/integrations/django/index.mdx b/docs/platforms/python/integrations/django/index.mdx
index 5eef058c81143..b848d8274af8e 100644
--- a/docs/platforms/python/integrations/django/index.mdx
+++ b/docs/platforms/python/integrations/django/index.mdx
@@ -2,7 +2,7 @@
title: Django
caseStyle: snake_case
supportLevel: production
-description: "Learn how to set up Sentry in your Django app, capture your first errors and traces, and view them in Sentry."
+description: "Learn how to set up Sentry in your Django app, capture your first events and traces, and view them in Sentry."
---
@@ -26,13 +26,12 @@ You need:
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -42,11 +41,16 @@ Configuration should happen as **early as possible** in your application's lifec
To configure the Sentry SDK, initialize it in your `settings.py` file:
+The snippet also turns on:
+
+- Collection of user data, such as the user's IP address: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippet.
+
```python {filename:settings.py}
import sentry_sdk
-# ___PRODUCT_OPTION_START___ metrics
-from sentry_sdk import metrics
-# ___PRODUCT_OPTION_END___ metrics
sentry_sdk.init(
dsn="___PUBLIC_DSN___",
@@ -54,19 +58,15 @@ sentry_sdk.init(
data_collection={
"user_info": True,
},
- # ___PRODUCT_OPTION_START___ performance
- # Set traces_sample_rate to 1.0 to capture 100%
- # of transactions for tracing.
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
traces_sample_rate=1.0,
- # ___PRODUCT_OPTION_END___ performance
- # ___PRODUCT_OPTION_START___ profiling
- # To collect profiles for all profile sessions,
- # set `profile_session_sample_rate` to 1.0.
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
profile_session_sample_rate=1.0,
- # Profiles will be automatically collected while
- # there is an active span.
+ # Profiles are collected while a transaction is active.
profile_lifecycle="trace",
- # ___PRODUCT_OPTION_END___ profiling
)
```
@@ -83,7 +83,6 @@ You can also expect the following for your Django project:
To learn how to manually report issues, see Capturing Errors.
-
### Instrumenting Your App
@@ -98,47 +97,49 @@ The Sentry SDK automatically monitors the following parts of your Django project
You can also manually capture performance data β see Custom Instrumentation to learn more.
-
+## Send Logs
-## Verify Your Setup
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-Let's test your setup and confirm that data reaches your Sentry project.
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-
-
-### Issues
-
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+See Set Up Logs for all available logging methods and formatting options.
```python
-from django.urls import path
-
-def trigger_error(request):
- division_by_zero = 1 / 0
+import sentry_sdk
-urlpatterns = [
- path('sentry-debug/', trigger_error),
- # ...
-]
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
```
-
+## Send Application Metrics
-
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
-
+See Set Up Metrics for all available metric types and configuration options.
-
+```python
+import sentry_sdk
-
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
+```
-
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Add a view that raises an exception and route it in your Django application:
-
+```python
+from django.urls import path
+
+def trigger_error(request):
+ 1 / 0
+
+urlpatterns = [path("sentry-debug/", trigger_error)]
+```
### View Captured Data in Sentry
@@ -246,7 +247,11 @@ The default is `{*range(500, 600)}`, meaning that all 5xx status codes are repor
## Next Steps
-
+At this point, you should have integrated Sentry into your Django application. Here's what to explore next:
+
+- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/docs/platforms/python/integrations/fastapi/index.mdx b/docs/platforms/python/integrations/fastapi/index.mdx
index 1d930ba2d3021..a8b591a8c6838 100644
--- a/docs/platforms/python/integrations/fastapi/index.mdx
+++ b/docs/platforms/python/integrations/fastapi/index.mdx
@@ -1,6 +1,6 @@
---
title: FastAPI
-description: Learn how to set up Sentry in your FastAPI app, capture your first errors and traces, and view them in Sentry.
+description: Learn how to set up Sentry in your FastAPI app, capture your first events and traces, and view them in Sentry.
og_image: /og-images/platforms-python-integrations-fastapi.png
---
@@ -23,13 +23,12 @@ You need:
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -45,10 +44,37 @@ If you have the `fastapi` package in your dependencies, the Sentry FastAPI integ
Import and initialize the SDK in your app's entry point:
-
+The snippet also turns on:
+
+- Collection of user data, such as the user's IP address: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippet.
+
+```python
+import sentry_sdk
+
+sentry_sdk.init(
+ dsn="___PUBLIC_DSN___",
+
+ # Check https://docs.sentry.io/platforms/python/data-management/data-collected/ to configure what data is collected
+ data_collection={
+ "user_info": True,
+ },
+
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
+ traces_sample_rate=1.0,
+
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
+ profile_session_sample_rate=1.0,
+ # Profiles are collected while a transaction is active.
+ profile_lifecycle="trace",
+)
+```
To further customize your setup, review the [Options section](#options) below.
@@ -63,8 +89,6 @@ You can also expect the following for your FastAPI project:
To learn how to manually report issues, see Capturing Errors.
-
-
### Instrumenting Your App
The Sentry SDK automatically monitors the following parts of your FastAPI project:
@@ -76,45 +100,46 @@ The Sentry SDK automatically monitors the following parts of your FastAPI projec
You can also manually capture performance data β see Custom Instrumentation to learn more.
-
+## Send Logs
-## Verify Your Setup
-
-Let's test your setup and confirm that data reaches your Sentry project.
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-### Issues
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+See Set Up Logs for all available logging methods and formatting options.
```python
-from fastapi import FastAPI
+import sentry_sdk
-sentry_sdk.init(...) # same as above
-
-app = FastAPI()
-
-@app.get("/sentry-debug")
-async def trigger_error():
- division_by_zero = 1 / 0
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
```
-
+## Send Application Metrics
-
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
-
+See Set Up Metrics for all available metric types and configuration options.
-
+```python
+import sentry_sdk
-
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
+```
-
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Add this route to your FastAPI app, then request `/sentry-debug`:
-
+```python
+@app.get("/sentry-debug")
+async def trigger_error():
+ 1 / 0
+```
### View Captured Data in Sentry
@@ -229,7 +254,11 @@ Note that `OPTIONS` and `HEAD` are excluded by default.
## Next Steps
-
+At this point, you should have integrated Sentry into your FastAPI application. Here's what to explore next:
+
+- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/docs/platforms/python/integrations/flask/index.mdx b/docs/platforms/python/integrations/flask/index.mdx
index 475392cd9660a..cb6c15eb2d78c 100644
--- a/docs/platforms/python/integrations/flask/index.mdx
+++ b/docs/platforms/python/integrations/flask/index.mdx
@@ -1,6 +1,6 @@
---
title: Flask
-description: "Learn how to set up Sentry in your Flask app, capture your first errors and traces, and view them in Sentry."
+description: "Learn how to set up Sentry in your Flask app, capture your first events and traces, and view them in Sentry."
---
@@ -24,13 +24,12 @@ You need:
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -47,10 +46,37 @@ The SDK hooks into Flask's signals, not anything on the app object.
Import and initialize the SDK in your app's entry point:
-
+The snippet also turns on:
+
+- Collection of user data, such as the user's IP address: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippet.
+
+```python
+import sentry_sdk
+
+sentry_sdk.init(
+ dsn="___PUBLIC_DSN___",
+
+ # Check https://docs.sentry.io/platforms/python/data-management/data-collected/ to configure what data is collected
+ data_collection={
+ "user_info": True,
+ },
+
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
+ traces_sample_rate=1.0,
+
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
+ profile_session_sample_rate=1.0,
+ # Profiles are collected while a transaction is active.
+ profile_lifecycle="trace",
+)
+```
To further customize your setup, review the [Options section](#options) below.
@@ -63,53 +89,48 @@ You can also expect the following for your Flask app:
- Request data will be attached to all events: HTTP method, URL, headers, form data, JSON payloads. Sentry excludes raw bodies and multipart file uploads.
- Logs emitted by any `app.logger` or _any_ logger will be recorded by the [Logging](/platforms/python/integrations/logging/) integration (this integration is enabled by default).
-
-
-
-
-## Verify Your Setup
-
-Let's test your setup and confirm that data reaches your Sentry project.
+## Send Logs
-
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-### Issues
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+See Set Up Logs for all available logging methods and formatting options.
```python
import sentry_sdk
-from flask import Flask
-
-sentry_sdk.init(...) # same as above
-app = Flask(__name__)
-
-@app.route("/")
-def hello_world():
- 1 / 0 # raises an error
- return "
Hello, World!
"
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
```
-
+## Send Application Metrics
-
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
-
+See Set Up Metrics for all available metric types and configuration options.
-
+```python
+import sentry_sdk
-
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
+```
-
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Add this route to your Flask app, then request `/sentry-debug`:
-
+```python
+@app.route("/sentry-debug")
+def trigger_error():
+ 1 / 0
+```
### View Captured Data in Sentry
@@ -169,7 +190,11 @@ Note that `OPTIONS` and `HEAD` are excluded by default.
## Next Steps
-
+At this point, you should have integrated Sentry into your Flask application. Here's what to explore next:
+
+- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/docs/platforms/python/integrations/starlette/index.mdx b/docs/platforms/python/integrations/starlette/index.mdx
index 7c76cf26af4c4..7e9607c586fb5 100644
--- a/docs/platforms/python/integrations/starlette/index.mdx
+++ b/docs/platforms/python/integrations/starlette/index.mdx
@@ -1,6 +1,6 @@
---
title: Starlette
-description: "Learn how to set up Sentry in your Starlette app, capture your first errors and traces, and view them in Sentry."
+description: "Learn how to set up Sentry in your Starlette app, capture your first events and traces, and view them in Sentry."
---
@@ -22,13 +22,12 @@ You need:
-## Configure
+This guide requires `sentry-sdk` version 2.70.0 or later. If you already have the SDK installed, upgrade it with `pip install --upgrade sentry-sdk`.
-Choose the features you want to configure, and this guide will show you how:
+## Configure
-
+**Error Monitoring** starts working as soon as you call `sentry_sdk.init()`. **Logs** and **Application Metrics** need no extra configuration when using `sentry_sdk.logger` and `sentry_sdk.metrics`, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-).
+This guide also enables **Tracing** and **Profiling**.
@@ -44,10 +43,37 @@ If you have the `starlette` package in your dependencies, the Sentry Starlette i
Import and initialize the SDK in your app's entry point:
-
+The snippet also turns on:
+
+- Collection of user data, such as the user's IP address: via `data_collection`
+- Tracing: via `traces_sample_rate`
+- Profiling: via `profile_session_sample_rate` and `profile_lifecycle`
+
+Don't need a feature? Remove its options from the snippet.
+
+```python
+import sentry_sdk
+
+sentry_sdk.init(
+ dsn="___PUBLIC_DSN___",
+
+ # Check https://docs.sentry.io/platforms/python/data-management/data-collected/ to configure what data is collected
+ data_collection={
+ "user_info": True,
+ },
+
+ # Enables Tracing.
+ # Set to 1.0 to capture 100% of spans for tracing.
+ # We recommend reducing this value in production.
+ traces_sample_rate=1.0,
+
+ # Enables Profiling.
+ # Set to 1.0 to profile 100% of sessions.
+ profile_session_sample_rate=1.0,
+ # Profiles are collected while a transaction is active.
+ profile_lifecycle="trace",
+)
+```
To further customize your setup, review the [Options section](#options) below.
@@ -62,47 +88,50 @@ You can also expect the following for your Starlette project:
To learn how to manually report issues, see Capturing Errors.
-## Verify Your Setup
+## Send Logs
-Let's test your setup and confirm that data reaches your Sentry project.
+Use `sentry_sdk.logger` to send structured logs at different levels. You can include searchable attributes with each message.
-### Issues
+To capture records from Python's standard-library `logging` module or Loguru, configure `capture_sentry_logs=True` on the corresponding integration. See the standard logging and Loguru integration guides.
-To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application:
+See Set Up Logs for all available logging methods and formatting options.
```python
-from starlette.applications import Starlette
-from starlette.routing import Route
+import sentry_sdk
-sentry_sdk.init(...) # same as above
-
-async def trigger_error(request):
- division_by_zero = 1 / 0
-
-app = Starlette(routes=[
- Route("/sentry-debug", trigger_error),
-])
+sentry_sdk.logger.info("Order processed {order_id}", order_id="order-123")
+sentry_sdk.logger.warning("Rate limit reached", attributes={"endpoint": "/api/orders"})
```
-Point your browser to [http://localhost:8000/sentry-debug](http://localhost:8000/sentry-debug) to trigger the error which will be sent to Sentry.
+## Send Application Metrics
-
+Use `sentry_sdk.metrics` to send counters, gauges, and distributions from your app. Metrics are enabled by default after you initialize the SDK.
-
+See Set Up Metrics for all available metric types and configuration options.
-
+```python
+import sentry_sdk
-
+sentry_sdk.metrics.count("checkout.failed", 1)
+sentry_sdk.metrics.gauge("active_connections", 42)
+sentry_sdk.metrics.distribution("api_latency", 187, unit="millisecond")
+```
+
+## Verify Your Setup
-
+Let's test your setup and confirm that data reaches your Sentry project.
-
+Add this route to your Starlette app, then request `/sentry-debug`:
-
+```python
+from starlette.applications import Starlette
+from starlette.routing import Route
-
+async def trigger_error(request):
+ 1 / 0
-
+app = Starlette(routes=[Route("/sentry-debug", trigger_error)])
+```
### View Captured Data in Sentry
@@ -191,7 +220,11 @@ Note that `OPTIONS` and `HEAD` are excluded by default.
## Next Steps
-
+At this point, you should have integrated Sentry into your Starlette application. Here's what to explore next:
+
+- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup
+- Set up Agent Tracing to monitor your AI systems
+- Learn how to manually capture errors
diff --git a/platform-includes/getting-started-prerequisites/python.mdx b/platform-includes/getting-started-prerequisites/python.mdx
index b22b687efb7bc..b32708902e4d4 100644
--- a/platform-includes/getting-started-prerequisites/python.mdx
+++ b/platform-includes/getting-started-prerequisites/python.mdx
@@ -4,3 +4,4 @@ You need:
- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/)
- Your application up and running
+- Python `3.6` or above
From 491d8c207499b8b60d32f776ce384488dce147aa Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 23:44:39 +0000
Subject: [PATCH 055/143] Bump API schema to 0e210e04 (#20307)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index be9e8408ce88f..f042325a5c511 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '99563f64dea0a50d64f6be6ca6ab5f19a847b0eb';
+const SENTRY_API_SCHEMA_SHA = '0e210e047d50b9019ef904aefaa6d8af65d81230';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 516099f197a4e19345d7ae1a454429d1fd5bd430 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Wed, 28 Oct 2026 23:47:30 +0000
Subject: [PATCH 056/143] Bump API schema to 2d713eaf (#20308)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index f042325a5c511..2ec89dce19ad4 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '0e210e047d50b9019ef904aefaa6d8af65d81230';
+const SENTRY_API_SCHEMA_SHA = '2d713eaf8e8434ad2e608c90548c8ca14b960da5';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 8bfa88bc1ad33b27e09212bff651d6e397389a02 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 00:00:10 +0000
Subject: [PATCH 057/143] Bump API schema to faaa6aa8 (#20309)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 2ec89dce19ad4..0bfe6f2ca8ba5 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '2d713eaf8e8434ad2e608c90548c8ca14b960da5';
+const SENTRY_API_SCHEMA_SHA = 'faaa6aa8d278cd2bbcaae893bf65f42209c646e5';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 04c132993086fe7bc3f75b37a25bc83149edb748 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 00:03:30 +0000
Subject: [PATCH 058/143] Bump API schema to 93d0d1dd (#20310)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 0bfe6f2ca8ba5..9c7793415f0bb 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'faaa6aa8d278cd2bbcaae893bf65f42209c646e5';
+const SENTRY_API_SCHEMA_SHA = '93d0d1dd0390eada498fef7f106981626eab7901';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 70e7eb7fb8ab02c0aa7813855adeed710a045cff Mon Sep 17 00:00:00 2001
From: Alexander Dinauer
Date: Thu, 29 Oct 2026 06:24:11 +0100
Subject: [PATCH 059/143] docs(android): Correct replay callback fallback
(#19965)
Correct the Android Session Replay documentation for
`beforeErrorSampling` callback failures.
The docs currently describe callback failures as fail-open. The Java SDK
now skips replay capture when this callback fails while retaining the
error event, preventing a failed user filter from triggering replay
capture. This updates both the option reference and the Session Replay
guide to match that behavior.
Refs getsentry/sentry-java#6140
Co-authored-by: Claude
---
docs/platforms/android/session-replay/configuration.mdx | 2 +-
docs/platforms/android/session-replay/index.mdx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/platforms/android/session-replay/configuration.mdx b/docs/platforms/android/session-replay/configuration.mdx
index 6f728fc660794..ba62355c41629 100644
--- a/docs/platforms/android/session-replay/configuration.mdx
+++ b/docs/platforms/android/session-replay/configuration.mdx
@@ -30,7 +30,7 @@ and the following options provide further customization:
| networkResponseHeaders| `io.sentry.session-replay.network-response-headers` | List<String> | `['Content-Type', 'Content-Length', 'Accept']` | Response header names to capture for enabled URLs. |
| debug | `io.sentry.session-replay.debug` | boolean | `false` | Enables Session Replay debug logging, which prints diagnostic information when a replay is recorded. |
| captureSurfaceViews | `io.sentry.session-replay.capture-surface-views` | boolean | `false` | When enabled, the SDK captures content rendered inside `SurfaceView` components (e.g. Unity, video players, maps) that are normally invisible to the default PixelCopy window capture. Only works with the `PixelCopy` strategy (default). See [SurfaceView Capture](/platforms/android/session-replay/#surfaceview-capture). **Experimental.** |
- | beforeErrorSampling | `β` | `BeforeErrorSamplingCallback` | `null` | A callback invoked before the `onErrorSampleRate` is checked. Return `false` to skip replay capture for this error, or `true` to proceed with the normal sample rate check. If the callback throws, replay capture proceeds normally (fail-open). Only configurable in code. See [Ignore Certain Errors from Error Sampling](/platforms/android/session-replay/#ignore-certain-errors-from-error-sampling). |
+ | beforeErrorSampling | `β` | `BeforeErrorSamplingCallback` | `null` | A callback invoked before the `onErrorSampleRate` is checked. Return `false` to skip replay capture for this error, or `true` to proceed with the normal sample rate check. If the callback throws, replay capture is skipped and the error event is still sent. Only configurable in code. See [Ignore Certain Errors from Error Sampling](/platforms/android/session-replay/#ignore-certain-errors-from-error-sampling). |
## Disable Automatic Replay Sampling
diff --git a/docs/platforms/android/session-replay/index.mdx b/docs/platforms/android/session-replay/index.mdx
index 723bf7cbfb0cd..94c5bcc83212d 100644
--- a/docs/platforms/android/session-replay/index.mdx
+++ b/docs/platforms/android/session-replay/index.mdx
@@ -125,7 +125,7 @@ Sampling begins as soon as a session starts. `sessionSampleRate` is evaluated fi
Once you've enabled `onErrorSampleRate`, you can further customize which errors should trigger a replay capture by using the `beforeErrorSampling` callback. This is useful if you want to capture replays only for unhandled errors, or exclude certain error types from replay capture.
-The `beforeErrorSampling` callback is called when an error occurs and receives the event and hint as arguments. Returning `false` will prevent the replay from being captured for that specific error. If the callback throws an exception, replay capture proceeds normally (fail-open).
+The `beforeErrorSampling` callback is called when an error occurs and receives the event and hint as arguments. Returning `false` prevents the replay from being captured for that specific error. If the callback throws an exception, replay capture is skipped and the error event is still sent.
```kotlin {tabTitle:Kotlin}
SentryAndroid.init(context) { options ->
From ee268f0fe74cee63c4fda92e687a8b866ba8f048 Mon Sep 17 00:00:00 2001
From: Ricardo Colombo Oliveira
Date: Thu, 29 Oct 2026 11:19:58 +0100
Subject: [PATCH 060/143] docs(dotnet): Add 6.x to 7.x migration guide for
7.0.0-rc.2 (#20143)
## DESCRIBE YOUR PR
This PR adds the migration guide for version 7 of the Sentry SDK for
.NET, ready for the public release candidate, `7.0.0-rc.2`. It follows
the pattern of the Flutter v10 guide from #19390:
- A full guide at `/platforms/dotnet/migration/v6-to-v7/`, built from
one include per change in `includes/migration/dotnet-v7/`.
- An interactive checklist at
`/platforms/dotnet/migration/v6-to-v7/interactive/` that renders the
same includes through ``.
- An agent prompt callout that points at the guide's `.md` URL.
- A "Migrating to 7.x" section at the top of the existing .NET migration
page, which links to both.
Both pages live under `common/`, so they render for every .NET guide,
such as ASP.NET Core, MAUI, WPF and Serilog. Xamarin uses a separate
SDK, so the new pages exclude it. I didn't move the 6.x, 4.x and 3.x
sections, so every existing URL and anchor keeps working and the PR
needs no redirects.
To register the collection, the PR adds `dotnet-v7` to the `MIGRATIONS`
map in the `MigrationGuide` component and to the validator's
`COLLECTIONS` map, with specs for both. These changes in
`src/components/migrationGuide/` and `scripts/` touch code that the
JavaScript and Flutter guides share, so they need an approval from the
docs team. For reference, msonnb approved the last change to the
component in #19729, and andreiborza approved the JavaScript interactive
guide that added it in #19076.
The checklist shows one step only on the MAUI guide. Every other step
applies to every .NET guide, because .NET apps combine integrations,
such as a Serilog sink in an ASP.NET Core app.
I checked the guide against `7.0.0-rc.2` from nuget.org and against the
`version7` branch at getsentry/sentry-dotnet@a56c63455. The guide
describes 7.0.0. Where rc.2 still behaves differently, the release
candidate note at the top says so.
### Why this goes live during the release candidate
I'd like to merge this as soon as it's approved, while 7.0 is still in
release candidate. 7.0.0 GA is planned for 2026-11-30. People who try
the release candidate need the guide now, and the agent prompt needs a
published `.md` URL to point at.
Two develop-docs rules pull in different directions here. [Managing
Linear
projects](https://develop.sentry.dev/sdk/getting-started/playbooks/coordination/managing-linear-projects/#visibility-for-major-releases)
says docs "MUST NOT go live before the SDK ships". The [breaking changes
playbook](https://develop.sentry.dev/sdk/getting-started/playbooks/sdk-lifecycle/breaking-changes/#6-update-docs-and-changelog)
says to publish the migration guide "before or alongside the major
release". I read the first rule as protecting users from docs for code
they can't get. Version `7.0.0-rc.2` is public on nuget.org, and the
guide's first block says it's a release candidate and names that
version. Other SDKs made the same call:
- The Python 2.0 guide merged on 2024-02-28, while only the `2.0.0a1`
alpha was out. Its note at the top said so.
- The JavaScript v11 guide merged on 2026-09-08 with `11.0.0-beta.1`
out, and its interactive version followed on 2026-09-11.
- The Flutter v10 guide merged on 2026-10-05 with `10.0.0-rc.2` out,
four days before 10.0.0.
### The release candidate note
The guide opens with one ``. It says there is no stable 7.0 yet,
names `7.0.0-rc.2`, and says the rest of the .NET docs describe 6.x
until 7.0.0 ships. It also covers what only the release candidate has:
- `Logging.AddSentry()` after `ClearProviders()` doesn't add Sentry's
logger providers back yet. That came with getsentry/sentry-dotnet#5776,
after rc.2.
- `DecompressionMethods` still includes Brotli, which
getsentry/sentry-dotnet#5816 takes out of the default after rc.2. The
note says how to leave it out until then.
- An ASP.NET Core app that sends `ILogger` entries through NLog crashes
with `Debug` on, tracked in getsentry/sentry-dotnet#5822. The guide's
verify step turns `Debug` on, so the note says to leave it off in those
apps.
- Its `net11.0` builds depend on the .NET 11 release candidate versions
of three `Microsoft.Extensions` packages.
The rest of the guide describes 7.0.0 as released. At GA, I'll delete
that one block from `includes/dotnet-v7-migration-overview.mdx`, and
nothing else needs to change.
### What this PR leaves to other PRs
This PR only adds the guide and what it needs. The reference pages are
in other PRs, and this one doesn't need any of them to merge first:
- Logs and the logging integrations: #19925
- `Microsoft.Extensions.Logging` and ASP.NET Core: #19961
- OpenTelemetry propagation: #19924
- Release and environment: #19960
- Hangfire monitor schedules: #19781
Three links in the guide point to the "Apps That Call UseSentry"
sections that #19925 adds to the Serilog, NLog and log4net guides. Until
#19925 merges, they open those guides at the top, and the migration
guide sums up the same setups itself.
There is no page for the new `Sentry.Extensions.Hosting` package yet.
I'll link it from the guide once that page exists.
Refs https://linear.app/getsentry/issue/NET-860
Refs https://github.com/getsentry/sentry-dotnet/issues/5710
## 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.
- [x] Urgent deadline (GA date, etc.): 2026-11-30
- [ ] Other deadline: YYYY-MM-DD
- [ ] No deadline: Not urgent, can wait up to 1 week+
## 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](https://github.com/orgs/getsentry/teams/docs)
---------
Co-authored-by: Claude Opus 5.5
Co-authored-by: James Crosswell
Co-authored-by: Alex Krawiec
---
.../dotnet/common/migration/index.mdx | 8 ++
.../common/migration/v6-to-v7/index.mdx | 129 ++++++++++++++++++
.../common/migration/v6-to-v7/interactive.mdx | 25 ++++
includes/dotnet-v7-agent-migration.mdx | 5 +
includes/dotnet-v7-migration-overview.mdx | 27 ++++
...all-usesentry-on-webapplicationbuilder.mdx | 54 ++++++++
...ssionmethods-no-longer-includes-brotli.mdx | 26 ++++
...ablelogs-is-removed-from-sentryoptions.mdx | 52 +++++++
.../dotnet-v7/enablemetrics-is-removed.mdx | 34 +++++
.../generic-host-apps-call-usesentry.mdx | 94 +++++++++++++
...hangfire-sends-recurring-job-schedules.mdx | 23 ++++
.../ihub-is-registered-only-by-usesentry.mdx | 43 ++++++
...ging-frameworks-no-longer-close-sentry.mdx | 43 ++++++
...tegrations-no-longer-initialize-sentry.mdx | 64 +++++++++
.../logging-integrations-send-logs.mdx | 56 ++++++++
.../logging-options-only-set-log-levels.mdx | 75 ++++++++++
.../more-apps-report-the-host-environment.mdx | 34 +++++
...k-settings-out-of-the-log4net-appender.mdx | 46 +++++++
...ve-sdk-settings-out-of-the-nlog-target.mdx | 118 ++++++++++++++++
...e-sdk-settings-out-of-the-serilog-sink.mdx | 94 +++++++++++++
.../other-removed-and-internal-apis.mdx | 65 +++++++++
...se-and-distribution-are-set-on-options.mdx | 38 ++++++
...emove-redundant-loggingaddsentry-calls.mdx | 56 ++++++++
...sdk-name-release-and-scope-environment.mdx | 25 ++++
.../some-requests-are-no-longer-traced.mdx | 50 +++++++
.../supported-net-versions-and-platforms.mdx | 50 +++++++
...y-exporter-no-longer-sets-a-propagator.mdx | 47 +++++++
.../update-all-sentry-packages-together.mdx | 29 ++++
...ntry-overrides-appsettingsjson-in-maui.mdx | 37 +++++
scripts/validate-migration-items.mjs | 6 +-
scripts/validate-migration-items.spec.ts | 14 +-
src/components/migrationGuide/index.spec.tsx | 30 ++++
src/components/migrationGuide/index.tsx | 1 +
33 files changed, 1495 insertions(+), 3 deletions(-)
create mode 100644 docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx
create mode 100644 docs/platforms/dotnet/common/migration/v6-to-v7/interactive.mdx
create mode 100644 includes/dotnet-v7-agent-migration.mdx
create mode 100644 includes/dotnet-v7-migration-overview.mdx
create mode 100644 includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx
create mode 100644 includes/migration/dotnet-v7/decompressionmethods-no-longer-includes-brotli.mdx
create mode 100644 includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx
create mode 100644 includes/migration/dotnet-v7/enablemetrics-is-removed.mdx
create mode 100644 includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx
create mode 100644 includes/migration/dotnet-v7/hangfire-sends-recurring-job-schedules.mdx
create mode 100644 includes/migration/dotnet-v7/ihub-is-registered-only-by-usesentry.mdx
create mode 100644 includes/migration/dotnet-v7/logging-frameworks-no-longer-close-sentry.mdx
create mode 100644 includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx
create mode 100644 includes/migration/dotnet-v7/logging-integrations-send-logs.mdx
create mode 100644 includes/migration/dotnet-v7/logging-options-only-set-log-levels.mdx
create mode 100644 includes/migration/dotnet-v7/more-apps-report-the-host-environment.mdx
create mode 100644 includes/migration/dotnet-v7/move-sdk-settings-out-of-the-log4net-appender.mdx
create mode 100644 includes/migration/dotnet-v7/move-sdk-settings-out-of-the-nlog-target.mdx
create mode 100644 includes/migration/dotnet-v7/move-sdk-settings-out-of-the-serilog-sink.mdx
create mode 100644 includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx
create mode 100644 includes/migration/dotnet-v7/release-and-distribution-are-set-on-options.mdx
create mode 100644 includes/migration/dotnet-v7/remove-redundant-loggingaddsentry-calls.mdx
create mode 100644 includes/migration/dotnet-v7/sdk-name-release-and-scope-environment.mdx
create mode 100644 includes/migration/dotnet-v7/some-requests-are-no-longer-traced.mdx
create mode 100644 includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx
create mode 100644 includes/migration/dotnet-v7/the-opentelemetry-exporter-no-longer-sets-a-propagator.mdx
create mode 100644 includes/migration/dotnet-v7/update-all-sentry-packages-together.mdx
create mode 100644 includes/migration/dotnet-v7/usesentry-overrides-appsettingsjson-in-maui.mdx
diff --git a/docs/platforms/dotnet/common/migration/index.mdx b/docs/platforms/dotnet/common/migration/index.mdx
index b8f43a16e820c..f82b6b712ae9f 100644
--- a/docs/platforms/dotnet/common/migration/index.mdx
+++ b/docs/platforms/dotnet/common/migration/index.mdx
@@ -7,6 +7,14 @@ sidebar_section: configuration
Upgrading includes both breaking changes and new features.
+
+
+## Migrating to 7.x
+
+See the 6.x to 7.x migration guide for every change, or use the interactive migration checklist to track your progress.
+
+
+
## Migrating to 6.x
### .NET Target Framework Changes
diff --git a/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx b/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx
new file mode 100644
index 0000000000000..85c3c3c37e0bc
--- /dev/null
+++ b/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx
@@ -0,0 +1,129 @@
+---
+title: Migrate from 6.x to 7.x
+sidebar_order: 1
+description: "Learn how to migrate your app from version 6.x to 7.x of the Sentry SDK for .NET."
+notSupported:
+ - dotnet.xamarin
+---
+
+
+
+
+
+
+
+The [Interactive 7.x Migration Guide](./interactive/) lets you check off completed migration steps.
+
+
+
+## Versions and Packages
+
+### Supported .NET Versions and Platforms
+
+
+
+### Update All Sentry Packages Together
+
+
+
+## Initializing Sentry
+
+### Logging Integrations No Longer Initialize Sentry
+
+
+
+### Generic Host Apps Call UseSentry
+
+
+
+### Logging Options Only Set Log Levels
+
+
+
+### IHub Is Registered Only by UseSentry
+
+
+
+### Remove Redundant Logging.AddSentry Calls
+
+
+
+### Move SDK Settings Out of the Serilog Sink
+
+
+
+### Move SDK Settings Out of the NLog Target
+
+
+
+### Move SDK Settings Out of the log4net Appender
+
+
+
+## Logs and Metrics
+
+### EnableLogs Is Removed from SentryOptions
+
+
+
+### Logging Integrations Send Logs
+
+
+
+### Logging Frameworks No Longer Close Sentry
+
+
+
+### EnableMetrics Is Removed
+
+
+
+## Tracing and OpenTelemetry
+
+### Some Requests Are No Longer Traced
+
+
+
+### The OpenTelemetry Exporter No Longer Sets a Propagator
+
+
+
+## Release, Environment and SDK Name
+
+### Release and Distribution Are Set on Options
+
+
+
+### More Apps Report the Host Environment
+
+
+
+### SDK Name, Release and Scope Environment
+
+
+
+## Requests to Sentry
+
+### DecompressionMethods No Longer Includes Brotli
+
+
+
+## Integrations
+
+### UseSentry Overrides appsettings.json in MAUI
+
+
+
+### Hangfire Sends Recurring Job Schedules
+
+
+
+## Other Removed and Internal APIs
+
+
+
+## Optional Cleanup
+
+### Call UseSentry on WebApplicationBuilder
+
+
diff --git a/docs/platforms/dotnet/common/migration/v6-to-v7/interactive.mdx b/docs/platforms/dotnet/common/migration/v6-to-v7/interactive.mdx
new file mode 100644
index 0000000000000..47223d52eea21
--- /dev/null
+++ b/docs/platforms/dotnet/common/migration/v6-to-v7/interactive.mdx
@@ -0,0 +1,25 @@
+---
+title: Interactive 7.x Migration Guide
+sidebar_order: 2
+description: "Migrate from version 6.x to 7.x of the Sentry SDK for .NET with an interactive checklist."
+notSupported:
+ - dotnet.xamarin
+---
+
+
+
+
+
+This checklist covers the 7.x migration. Some steps only apply to specific integrations, platforms or configuration options. Check off a step after you complete it or confirm that it doesn't apply to your app. This browser saves your progress.
+
+For details about each change, see the [migration guide](../).
+
+
+
+The compiler won't catch every change. Read through the steps before upgrading, including the changes to logs, tracing and the reported environment.
+
+
+
+## Your Migration Steps
+
+
diff --git a/includes/dotnet-v7-agent-migration.mdx b/includes/dotnet-v7-agent-migration.mdx
new file mode 100644
index 0000000000000..7ff4233c5bbfc
--- /dev/null
+++ b/includes/dotnet-v7-agent-migration.mdx
@@ -0,0 +1,5 @@
+
diff --git a/includes/dotnet-v7-migration-overview.mdx b/includes/dotnet-v7-migration-overview.mdx
new file mode 100644
index 0000000000000..26e7f9942a35e
--- /dev/null
+++ b/includes/dotnet-v7-migration-overview.mdx
@@ -0,0 +1,27 @@
+
+
+There is no stable 7.0 release of the Sentry SDK for .NET yet. The current release candidate is `7.0.0-rc.2`. Until 7.0.0 ships, use that version wherever this guide says `7.0.0`. The rest of the .NET docs still describe 6.x until then, so where they differ from this guide, follow this guide. If you run into problems, [open an issue on GitHub](https://github.com/getsentry/sentry-dotnet/issues).
+
+On `7.0.0-rc.2`, three things work differently from what this guide describes:
+
+- `Logging.AddSentry()` after `ClearProviders()` doesn't add Sentry's logger providers back. Call `UseSentry` after `ClearProviders()` instead.
+- `DecompressionMethods` still includes Brotli, which the next release takes out of the default. To leave it out now, set `options.DecompressionMethods = DecompressionMethods.GZip | DecompressionMethods.Deflate` where you initialize Sentry.
+- An ASP.NET Core app that sends `ILogger` entries through NLog crashes with a stack overflow when `Debug` is on. In these apps, leave `Debug` off and check that the test event arrives in Sentry instead.
+
+The release candidate's `net11.0` builds depend on the .NET 11 release candidate versions of `Microsoft.Extensions.Http`, `Microsoft.Extensions.Logging.Configuration` and `Microsoft.Extensions.Configuration.Binder`. A .NET 11 app that references 10.0.x of one of these packages directly fails to restore with error NU1605. Remove that reference, or update it to the same .NET 11 release candidate version.
+
+
+
+Version 7 of the Sentry SDK for .NET adds support for .NET 11 and moves SDK initialization out of the logging integrations. The biggest changes are:
+
+- **One place to initialize Sentry.** The Serilog, NLog, log4net and `Microsoft.Extensions.Logging` integrations no longer start the SDK. Call `UseSentry` or `SentrySdk.Init` first, and move the DSN and other SDK settings there.
+- **`UseSentry` for generic host apps.** Worker services, Azure Functions isolated worker apps and other apps on the .NET Generic Host can now call `UseSentry` from the new `Sentry.Extensions.Hosting` package.
+- **Logs.** Version 7 removes `SentryOptions.EnableLogs`. Structured logs are now enabled automatically if you add the Serilog, NLog or log4net integrations, or call `Logging.AddSentry()` after `SentrySdk.Init`, so check the volume and content of your logs after upgrading if you use any of these integrations.
+- **Platforms.** Android, iOS, Mac Catalyst and MAUI apps need .NET 10 or later.
+- **Defaults.** The SDK traces fewer incoming requests, and more apps report the host environment instead of `production`.
+
+Upgrade to the latest 6.x release first, and fix its obsolete warnings. Some APIs that 7.0 removes, such as `EnableMetrics` and the iOS option `EnableAppHangTrackingV2`, are already obsolete in 6.x.
+
+The `Sentry.OpenTelemetry` package has been obsolete since 6.12.0. Code using this integration, such as `AddSentry()` on the tracer provider builder with `options.UseOpenTelemetry()`, still compiles on 7.0, but you will get warnings. The package will not see any future improvements or bug fixes, and it will be removed in a future version. Its replacement is the OTLP exporter from `Sentry.OpenTelemetry.Exporter`, with `AddSentryOtlpExporter` and `UseOtlp`. See [OpenTelemetry (OTLP)](/platforms/dotnet/tracing/instrumentation/opentelemetry-otlp/).
+
+The compiler catches most of the changes. A few only show up at runtime or in your data. A logging integration sends nothing until you initialize Sentry. An app that calls `SentrySdk.Init` and injects `IHub` fails when the container resolves the service. The new defaults change log volume, traced requests and the reported environment. Read the behavior changes before you upgrade.
diff --git a/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx b/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx
new file mode 100644
index 0000000000000..76e76106fe8e4
--- /dev/null
+++ b/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx
@@ -0,0 +1,54 @@
+---
+id: call-usesentry-on-webapplicationbuilder
+title: "Call UseSentry on WebApplicationBuilder"
+phase: cleanup
+category: rename
+severity: informational
+frameworks: all
+platformCategory: all
+order: 10
+---
+
+ASP.NET Core apps can now call `UseSentry` on `WebApplicationBuilder` and keep chaining. `builder.WebHost.UseSentry()` still works, so this change is optional.
+
+In 6.x, `UseSentry` was only available on the web host:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.WebHost.UseSentry(options => options.Dsn = "___PUBLIC_DSN___");
+```
+
+In 7.x, call it on the builder:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options => options.Dsn = "___PUBLIC_DSN___");
+```
+
+A helper declared in the `Microsoft.Extensions.Hosting` namespace needs a static call instead. The `AddServiceDefaults` method that .NET Aspire templates generate is one example. Inside that namespace, `web.UseSentry()` binds to the generic host overload from `Sentry.Extensions.Hosting`, even for a `WebApplicationBuilder`. The app then misses request data, the middleware and the transactions for incoming requests. Call the ASP.NET Core overload as a static method:
+
+```csharp {filename:Extensions.cs}
+using Microsoft.AspNetCore.Builder;
+
+namespace Microsoft.Extensions.Hosting;
+
+public static class Extensions
+{
+ public static TBuilder AddServiceDefaults(this TBuilder builder)
+ where TBuilder : IHostApplicationBuilder
+ {
+ if (builder is WebApplicationBuilder web)
+ {
+ SentryWebApplicationBuilderExtensions.UseSentry(web);
+ }
+ else
+ {
+ builder.UseSentry();
+ }
+
+ return builder;
+ }
+}
+```
+
+When `UseSentry` from `Sentry.Extensions.Hosting` runs in an ASP.NET Core app, the SDK logs a warning through `ILogger` when the host starts.
diff --git a/includes/migration/dotnet-v7/decompressionmethods-no-longer-includes-brotli.mdx b/includes/migration/dotnet-v7/decompressionmethods-no-longer-includes-brotli.mdx
new file mode 100644
index 0000000000000..67c2f6e383669
--- /dev/null
+++ b/includes/migration/dotnet-v7/decompressionmethods-no-longer-includes-brotli.mdx
@@ -0,0 +1,26 @@
+---
+id: decompressionmethods-no-longer-includes-brotli
+title: "DecompressionMethods No Longer Includes Brotli"
+phase: verify
+category: behavior
+severity: informational
+frameworks: all
+platformCategory: all
+order: 80
+---
+
+`SentryOptions.DecompressionMethods` now defaults to `GZip | Deflate`. In 6.x, it included every method, so the SDK asked your Sentry server for Brotli-compressed responses and decoded them. Sentry's responses to the SDK are small, so this shouldn't make a visible difference.
+
+The new default keeps the SDK away from the .NET Brotli decoder, which has a security issue in unpatched runtimes. See [CVE-2026-111497](https://github.com/dotnet/announcements/issues/494). This matters most for self-contained, Native AOT and mobile apps, which carry their own runtime.
+
+To accept Brotli-compressed responses again, add it back. `DecompressionMethods.Brotli` is available on .NET Core 3.0 and later:
+
+```csharp {filename:Program.cs}
+using System.Net;
+
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.DecompressionMethods |= DecompressionMethods.Brotli;
+});
+```
diff --git a/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx b/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx
new file mode 100644
index 0000000000000..84290d1012a22
--- /dev/null
+++ b/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx
@@ -0,0 +1,52 @@
+---
+id: enablelogs-is-removed-from-sentryoptions
+title: "EnableLogs Is Removed from SentryOptions"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 90
+---
+
+Version 7 removes `EnableLogs` from `SentryOptions`, the core options of the SDK, so setting it in `SentrySdk.Init` fails to compile with error CS1061. Remove the line.
+
+Whether logs are on now depends on how your app writes them:
+
+- **Logging integrations.** If you add the Serilog, NLog or log4net integration, or call `Logging.AddSentry()` after `SentrySdk.Init`, logs are on by default. Your logging framework's configuration, such as its minimum level, controls which entries they send. See [Logging Integrations Send Logs](#logging-integrations-send-logs).
+- **Host integrations.** In ASP.NET Core, MAUI, Blazor WebAssembly and generic host apps, `UseSentry` adds an `ILogger` integration. It sends errors and breadcrumbs, but its logs are off by default. To turn them on, set `EnableLogs = true` on the options of `UseSentry`. `EnableLogs` doesn't affect a Serilog, NLog or log4net integration in the same app.
+- **`SentrySdk.Logger`.** It sends logs in every app and needs no option.
+
+In 6.x, `SentrySdk.Init` turned logs on:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.EnableLogs = true;
+});
+```
+
+In 7.x, remove `EnableLogs`:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+});
+```
+
+In apps that call `UseSentry`, keep `EnableLogs` on its options to send `ILogger` entries as logs. You can also set it in the `Sentry` section of `appsettings.json`:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.EnableLogs = true;
+});
+```
+
+A generic host app that set `EnableLogs` on `Logging.AddSentry` in 6.x sets it on `UseSentry` now.
+
+The Serilog sink no longer takes an `enableLogs` argument. NLog's `enableLogs` setting no longer turns logs off, and setting it to `false` writes a warning to standard error. To drop logs and keep errors and breadcrumbs, use `SetBeforeSendLog`, as shown in [Logging Integrations Send Logs](#logging-integrations-send-logs).
diff --git a/includes/migration/dotnet-v7/enablemetrics-is-removed.mdx b/includes/migration/dotnet-v7/enablemetrics-is-removed.mdx
new file mode 100644
index 0000000000000..3d2b8aa59c87c
--- /dev/null
+++ b/includes/migration/dotnet-v7/enablemetrics-is-removed.mdx
@@ -0,0 +1,34 @@
+---
+id: enablemetrics-is-removed
+title: "EnableMetrics Is Removed"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 100
+---
+
+Version 7 removes `SentryOptions.EnableMetrics`, so setting it fails to compile with error CS1061. The option has been obsolete and ignored since 6.10.0, because metrics are always on. To drop metrics, return `null` from `SetBeforeSendMetric`.
+
+In 6.x, the obsolete option compiled but had no effect:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.EnableMetrics = false;
+});
+```
+
+In 7.x, drop metrics in the callback:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.SetBeforeSendMetric(_ => null);
+});
+```
+
+The SDK ignores an `EnableMetrics` key in the `Sentry` section of `appsettings.json`. Remove it.
diff --git a/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx b/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx
new file mode 100644
index 0000000000000..fe0bb345b47aa
--- /dev/null
+++ b/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx
@@ -0,0 +1,94 @@
+---
+id: generic-host-apps-call-usesentry
+title: "Generic Host Apps Call UseSentry"
+phase: code-changes
+category: package
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 20
+---
+
+Worker services, Azure Functions isolated worker apps, Windows services and console apps on `Host.CreateApplicationBuilder` often started Sentry with `Logging.AddSentry`. Install `Sentry.Extensions.Hosting` and call `UseSentry` on the host builder instead.
+
+```shell
+dotnet add package Sentry.Extensions.Hosting
+```
+
+`Sentry.Extensions.Hosting` brings in `Sentry.Extensions.Logging`, so remove the app's direct `Sentry.Extensions.Logging` reference.
+
+In 6.x, `Logging.AddSentry()` started Sentry with the settings under `Logging:Sentry`:
+
+```csharp {filename:Program.cs}
+var builder = Host.CreateApplicationBuilder(args);
+builder.Logging.AddSentry();
+builder.Services.AddHostedService();
+builder.Build().Run();
+```
+
+```json {filename:appsettings.json}
+{
+ "Logging": {
+ "Sentry": {
+ "Dsn": "___PUBLIC_DSN___",
+ "MinimumEventLevel": "Error"
+ }
+ }
+}
+```
+
+In 7.x, `UseSentry()` starts Sentry with the settings in the `Sentry` section and adds the `ILogger` integration. The log levels stay under `Logging:Sentry`:
+
+```csharp {filename:Program.cs}
+var builder = Host.CreateApplicationBuilder(args);
+builder.UseSentry();
+builder.Services.AddHostedService();
+builder.Build().Run();
+```
+
+```json {filename:appsettings.json}
+{
+ "Logging": {
+ "Sentry": {
+ "MinimumEventLevel": "Error"
+ }
+ },
+ "Sentry": {
+ "Dsn": "___PUBLIC_DSN___"
+ }
+}
+```
+
+If the app set the options in code, move them from `Logging.AddSentry` to `UseSentry`. In 6.x, the code looked like this:
+
+```csharp {filename:Program.cs}
+var builder = Host.CreateApplicationBuilder(args);
+builder.Logging.AddSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.TracesSampleRate = 1.0;
+});
+builder.Services.AddHostedService();
+builder.Build().Run();
+```
+
+In 7.x, pass the same options to `UseSentry`:
+
+```csharp {filename:Program.cs}
+var builder = Host.CreateApplicationBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.TracesSampleRate = 1.0;
+});
+builder.Services.AddHostedService();
+builder.Build().Run();
+```
+
+`UseSentry` also registers `IHub` for dependency injection and sets the environment from the host environment. It works on `IHostApplicationBuilder` types such as `Host.CreateApplicationBuilder` on .NET 8 and later. It also works on `IHostBuilder` types such as `Host.CreateDefaultBuilder` on every target, including .NET Framework.
+
+If the app calls `builder.Logging.ClearProviders()`, call `UseSentry` after it. `ClearProviders` removes every logger provider registered before it, including Sentry's, and the app then sends no errors from `ILogger`. If the app has to clear providers after `UseSentry`, call `builder.Logging.AddSentry()` after `ClearProviders` to add Sentry's providers back. Skip that if Serilog, NLog or log4net already sends the app's `ILogger` entries to Sentry, because each entry would then arrive twice.
+
+A helper that takes any `IHostApplicationBuilder` and runs in an ASP.NET Core app, such as the `AddServiceDefaults` method of .NET Aspire, needs a different call. See [Call UseSentry on WebApplicationBuilder](#call-usesentry-on-webapplicationbuilder).
+
+Like ASP.NET Core, `UseSentry` sends `ILogger` entries as logs only when you set `EnableLogs`. See [EnableLogs Is Removed from SentryOptions](#enablelogs-is-removed-from-sentryoptions).
diff --git a/includes/migration/dotnet-v7/hangfire-sends-recurring-job-schedules.mdx b/includes/migration/dotnet-v7/hangfire-sends-recurring-job-schedules.mdx
new file mode 100644
index 0000000000000..0ea63bd0a0c2f
--- /dev/null
+++ b/includes/migration/dotnet-v7/hangfire-sends-recurring-job-schedules.mdx
@@ -0,0 +1,23 @@
+---
+id: hangfire-sends-recurring-job-schedules
+title: "Hangfire Sends Recurring Job Schedules"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 70
+---
+
+Hangfire recurring jobs marked with `[SentryMonitorSlug]` now send their cron schedule and time zone with each check-in. Sentry creates monitors that don't exist yet. On each job's next run, Sentry also updates the schedule and time zone of existing monitors and keeps their other settings.
+
+If you manage monitor schedules in Sentry, turn this off:
+
+```csharp {filename:Program.cs}
+using Hangfire;
+using Sentry.Hangfire;
+
+GlobalConfiguration.Configuration.UseSentry(options => options.SendMonitorConfig = false);
+```
+
+See [Hangfire](/platforms/dotnet/crons/hangfire/) for more about cron monitoring with Hangfire.
diff --git a/includes/migration/dotnet-v7/ihub-is-registered-only-by-usesentry.mdx b/includes/migration/dotnet-v7/ihub-is-registered-only-by-usesentry.mdx
new file mode 100644
index 0000000000000..25845949f975a
--- /dev/null
+++ b/includes/migration/dotnet-v7/ihub-is-registered-only-by-usesentry.mdx
@@ -0,0 +1,43 @@
+---
+id: ihub-is-registered-only-by-usesentry
+title: "IHub Is Registered Only by UseSentry"
+phase: code-changes
+category: behavior
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 40
+---
+
+`Logging.AddSentry()` no longer registers `IHub`, `ISentryClient` or `Func` for dependency injection. If the app initializes Sentry with `SentrySdk.Init` and injects one of them, the service container throws `InvalidOperationException` when it resolves the service.
+
+The compiler can't catch this. The app fails at runtime with an error like `Unable to resolve service for type 'Sentry.IHub'`.
+
+If the app has a host, use `UseSentry`, which registers all three. Otherwise, register `HubAdapter.Instance` for each one. `HubAdapter` is in the `Sentry.Extensibility` namespace.
+
+In 6.x, `Logging.AddSentry` registered them:
+
+```csharp {filename:Program.cs}
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+
+var services = new ServiceCollection();
+services.AddLogging(logging =>
+ logging.AddSentry(options => options.Dsn = "___PUBLIC_DSN___"));
+```
+
+In 7.x, if you are resolving any of these services for use in your application, you will need to register them yourself:
+
+```csharp {filename:Program.cs}
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Logging;
+using Sentry.Extensibility;
+
+using var sentry = SentrySdk.Init(options => options.Dsn = "___PUBLIC_DSN___");
+
+var services = new ServiceCollection();
+services.AddLogging(logging => logging.AddSentry());
+services.AddSingleton(HubAdapter.Instance);
+services.AddSingleton(HubAdapter.Instance);
+services.AddSingleton>(() => HubAdapter.Instance);
+```
diff --git a/includes/migration/dotnet-v7/logging-frameworks-no-longer-close-sentry.mdx b/includes/migration/dotnet-v7/logging-frameworks-no-longer-close-sentry.mdx
new file mode 100644
index 0000000000000..16610d46d8b85
--- /dev/null
+++ b/includes/migration/dotnet-v7/logging-frameworks-no-longer-close-sentry.mdx
@@ -0,0 +1,43 @@
+---
+id: logging-frameworks-no-longer-close-sentry
+title: "Logging Frameworks No Longer Close Sentry"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 50
+---
+
+`Log.CloseAndFlush()` in Serilog, `LogManager.Shutdown()` in NLog and shutting down the log4net repository no longer close Sentry. In 6.x, they closed Sentry when the logging integration had initialized it. Now the code that calls `SentrySdk.Init` or `UseSentry` owns the SDK.
+
+The SDK still flushes when the process exits. In a short-lived app, dispose the object that `SentrySdk.Init` returns, or call `SentrySdk.Flush()`, before the app exits:
+
+```csharp {filename:Program.cs}
+using Serilog;
+
+using var sentry = SentrySdk.Init(options => options.Dsn = "___PUBLIC_DSN___");
+
+Log.Logger = new LoggerConfiguration()
+ .WriteTo.Sentry()
+ .CreateLogger();
+
+try
+{
+ Log.Information("Running the job");
+}
+finally
+{
+ Log.CloseAndFlush();
+}
+```
+
+The NLog target flushes Sentry when NLog flushes. It now waits up to `SentryOptions.FlushTimeout`, which defaults to 2 seconds, instead of the 15 seconds it used to wait. To keep 15 seconds, set the timeout where you initialize Sentry:
+
+```csharp {filename:Program.cs}
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.FlushTimeout = TimeSpan.FromSeconds(15);
+});
+```
diff --git a/includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx b/includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx
new file mode 100644
index 0000000000000..e175efac4fc60
--- /dev/null
+++ b/includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx
@@ -0,0 +1,64 @@
+---
+id: logging-integrations-no-longer-initialize-sentry
+title: "Logging Integrations No Longer Initialize Sentry"
+phase: code-changes
+category: behavior
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 10
+---
+
+The Serilog sink, the NLog target, the log4net appender and `Logging.AddSentry()` no longer start the SDK. Initialize Sentry once at startup, before the logging framework, and move the DSN and every other SDK setting there.
+
+Initialize Sentry with the call that matches your app:
+
+| App | Initialize Sentry with |
+| --------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| ASP.NET Core | `UseSentry` from `Sentry.AspNetCore` |
+| MAUI | `UseSentry` from `Sentry.Maui` |
+| Blazor WebAssembly | `UseSentry` from `Sentry.AspNetCore.Blazor.WebAssembly` |
+| Worker services, Azure Functions isolated worker apps and other apps on the .NET Generic Host | `UseSentry` from `Sentry.Extensions.Hosting` |
+| Console apps that build their own `ServiceCollection` without a host | `SentrySdk.Init`, then `Logging.AddSentry()`. If the app injects `IHub`, see [IHub Is Registered Only by UseSentry](#ihub-is-registered-only-by-usesentry) |
+| Other console apps, ASP.NET on .NET Framework and any other app | `SentrySdk.Init` |
+
+`UseSentry` reads its settings from the `Sentry` section of `appsettings.json`. `SentrySdk.Init` only uses the options you set in code and environment variables such as `SENTRY_DSN`.
+
+`UseSentry` also adds Sentry's own `ILogger` integration. If your app sends `ILogger` entries through Serilog, NLog or log4net as well, Sentry receives each entry twice unless only one of them sends it:
+
+- **Serilog.** Add Serilog with `builder.Services.AddSerilog(...)` from `Serilog.Extensions.Hosting`, or with `builder.Host.UseSerilog(...)`. Both replace the app's `ILogger` factory, so each entry reaches Sentry once, through the sink. Don't use `builder.Logging.AddSerilog()` or `writeToProviders: true`.
+- **NLog.** Set `ReplaceLoggerFactory = true` when you add NLog, for example with `builder.Logging.AddNLog(new NLogProviderOptions { ReplaceLoggerFactory = true })`. `UseNLog` in ASP.NET Core takes the same option.
+- **log4net.** `AddLog4Net()` can't replace the factory. Set `MinimumEventLevel` and `MinimumBreadcrumbLevel` to `LogLevel.None` on the options of `UseSentry`, and leave `EnableLogs` off, so each entry reaches Sentry once, through the appender.
+
+The [Serilog](/platforms/dotnet/guides/serilog/#apps-that-call-usesentry), [NLog](/platforms/dotnet/guides/nlog/#apps-that-call-usesentry) and [log4net](/platforms/dotnet/guides/log4net/#apps-that-call-usesentry) guides show the full setup.
+
+A logging integration sends nothing until you initialize Sentry. SDK settings left on the integration fail in different ways:
+
+- `Logging.AddSentry(o => o.Dsn = ...)`, the Serilog `WriteTo.Sentry(dsn)` overload and the NLog `AddSentry(dsn)` overloads fail to compile with error CS0619, to make it clear that these integrations no longer initialize the SDK. The error message explains what to change.
+- Other SDK settings in code, such as `TracesSampleRate` on `SentryLoggingOptions` or `Environment` on the Serilog and NLog options, fail to compile with error CS1061.
+- `Dsn` or any other SDK setting under `Logging:Sentry` in configuration throws `NotSupportedException` at startup.
+- A `dsn` argument in Serilog's JSON configuration fails when Serilog reads the configuration, with a `TargetInvocationException` whose inner `NotSupportedException` explains the change. Serilog ignores other SDK arguments, such as `environment`, without a message.
+- The NLog target writes one message to standard error for `dsn`. NLog ignores `environment`, `release` and the other SDK settings without a message.
+- The log4net appender writes an error to standard error for `Dsn` and for `Environment`.
+
+The changes for each integration are in these sections:
+
+- [Generic Host Apps Call UseSentry](#generic-host-apps-call-usesentry)
+- [Logging Options Only Set Log Levels](#logging-options-only-set-log-levels)
+- [Move SDK Settings Out of the Serilog Sink](#move-sdk-settings-out-of-the-serilog-sink)
+- [Move SDK Settings Out of the NLog Target](#move-sdk-settings-out-of-the-nlog-target)
+- [Move SDK Settings Out of the log4net Appender](#move-sdk-settings-out-of-the-log4net-appender)
+
+After the upgrade, run the app once and confirm that Sentry starts. A build alone doesn't catch a missing initialization. An NLog or log4net app with only the package versions bumped builds, runs and sends nothing. Set `Debug` to `true` where you initialize Sentry, look for `Initializing Hub for Dsn` in the console output, and capture a test event:
+
+```csharp {filename:Program.cs}
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Debug = true;
+});
+
+SentrySdk.CaptureMessage("Sentry 7 is set up");
+```
+
+Turn `Debug` off again once the event arrives.
diff --git a/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx b/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx
new file mode 100644
index 0000000000000..e8a636d93cd61
--- /dev/null
+++ b/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx
@@ -0,0 +1,56 @@
+---
+id: logging-integrations-send-logs
+title: "Logging Integrations Send Logs"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 10
+---
+
+The Serilog sink, the NLog target, the log4net appender and `Logging.AddSentry()` after `SentrySdk.Init` send every entry they receive to Sentry as a log. In 6.x, they sent logs only with `EnableLogs` on, so an upgraded app can send many more logs.
+
+Adding one of these integrations is now the opt-in for its logs, in every kind of app. `EnableLogs` on the options of `UseSentry` doesn't change this. See [EnableLogs Is Removed from SentryOptions](#enablelogs-is-removed-from-sentryoptions).
+
+Each integration sends the entries its logging framework passes to it:
+
+- The Serilog sink gets entries at the logger's minimum level, which is `Information` unless you change it.
+- The NLog target gets the levels of the rules that write to it.
+- The log4net appender gets entries at its `threshold`.
+- `Logging.AddSentry()` gets the levels from the `Logging` configuration, which default to `Information`.
+
+Logs carry whatever the app writes at those levels. Debug and Information lines can hold personal data, such as customer email addresses, that 6.x didn't send to Sentry as logs. Check what those levels contain before you upgrade.
+
+To keep only warnings and more severe logs, filter on the level in `SetBeforeSendLog`:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.SetBeforeSendLog(log => log.Level >= SentryLogLevel.Warning ? log : null);
+});
+```
+
+To drop every log and keep sending errors and breadcrumbs, return `null`:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.SetBeforeSendLog(_ => null);
+});
+```
+
+In apps that call `UseSentry`, set the same callback on its options. The callback applies to every log, including logs from `SentrySdk.Logger` and from the `ILogger` integration.
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.SetBeforeSendLog(_ => null);
+});
+```
+
+See [Logs](/platforms/dotnet/logs/) for more about filtering logs.
diff --git a/includes/migration/dotnet-v7/logging-options-only-set-log-levels.mdx b/includes/migration/dotnet-v7/logging-options-only-set-log-levels.mdx
new file mode 100644
index 0000000000000..d91cca5a93afc
--- /dev/null
+++ b/includes/migration/dotnet-v7/logging-options-only-set-log-levels.mdx
@@ -0,0 +1,75 @@
+---
+id: logging-options-only-set-log-levels
+title: "Logging Options Only Set Log Levels"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 30
+---
+
+`SentryLoggingOptions` and the `Logging:Sentry` configuration section now only set log levels. `SentryLoggingOptions` no longer derives from `SentryOptions`, so SDK settings passed to `Logging.AddSentry` fail to compile. Move them to where you initialize Sentry.
+
+In 6.x, `Logging.AddSentry` accepted every SDK option:
+
+```csharp {filename:Program.cs}
+using Microsoft.Extensions.Logging;
+
+using var loggerFactory = LoggerFactory.Create(logging =>
+ logging.AddSentry(options =>
+ {
+ options.Dsn = "___PUBLIC_DSN___";
+ options.MinimumEventLevel = LogLevel.Error;
+ }));
+```
+
+In 7.x, initialize Sentry first and keep only the log levels on the logging integration:
+
+```csharp {filename:Program.cs}
+using Microsoft.Extensions.Logging;
+
+using var sentry = SentrySdk.Init(options => options.Dsn = "___PUBLIC_DSN___");
+
+using var loggerFactory = LoggerFactory.Create(logging =>
+ logging.AddSentry(options => options.MinimumEventLevel = LogLevel.Error));
+```
+
+In configuration, `Logging:Sentry` accepts only `MinimumEventLevel`, `MinimumBreadcrumbLevel` and `LogLevel`. Any other key throws `NotSupportedException` at startup. This includes ASP.NET Core, Blazor WebAssembly and generic host apps, because `UseSentry` reads the log levels from `Logging:Sentry`. In 6.x, the SDK settings lived under `Logging:Sentry`:
+
+```json {filename:appsettings.json}
+{
+ "Logging": {
+ "Sentry": {
+ "Dsn": "___PUBLIC_DSN___",
+ "SendDefaultPii": true,
+ "MinimumEventLevel": "Error"
+ }
+ }
+}
+```
+
+In 7.x, move the SDK settings to the `Sentry` section, which `UseSentry` reads:
+
+```json {filename:appsettings.json}
+{
+ "Logging": {
+ "Sentry": {
+ "MinimumEventLevel": "Error"
+ }
+ },
+ "Sentry": {
+ "Dsn": "___PUBLIC_DSN___",
+ "SendDefaultPii": true
+ }
+}
+```
+
+`SentrySdk.Init` doesn't read the `Sentry` section. If the app initializes Sentry with `SentrySdk.Init`, set the options in code, or switch to `UseSentry` if the app has a host.
+
+Other members moved with this change:
+
+- `ConfigureScope` moved from `SentryLoggingOptions` to the options of `UseSentry`. With `SentrySdk.Init`, call `SentrySdk.ConfigureScope` after initializing.
+- `InitializeSdk` fails to compile. Remove it, since no logging integration initializes the SDK anymore.
+- The options of `UseSentry`, such as `SentryAspNetCoreOptions` and `SentryMauiOptions`, now derive from the new `SentryHostOptions` class instead of `SentryLoggingOptions`. Code that takes these options as `SentryLoggingOptions` needs to take `SentryHostOptions`.
+- `AddSentry()` on `IServiceCollection` now requires `TOptions` to derive from `SentryHostOptions`.
diff --git a/includes/migration/dotnet-v7/more-apps-report-the-host-environment.mdx b/includes/migration/dotnet-v7/more-apps-report-the-host-environment.mdx
new file mode 100644
index 0000000000000..6433dfa5c6a92
--- /dev/null
+++ b/includes/migration/dotnet-v7/more-apps-report-the-host-environment.mdx
@@ -0,0 +1,34 @@
+---
+id: more-apps-report-the-host-environment
+title: "More Apps Report the Host Environment"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 30
+---
+
+More apps that don't set `Environment` now report the .NET host environment, such as `development` or `staging`. In 6.x, these apps reported `production`, or `debug` with a debugger attached.
+
+The change affects these apps:
+
+- Blazor WebAssembly apps.
+- Google Cloud Functions.
+- ASP.NET Core apps that call the `UseSentry` overload that takes an `ISentryBuilder` callback, as gRPC apps do.
+- Generic host apps that move from `Logging.AddSentry` to `UseSentry` from `Sentry.Extensions.Hosting`.
+
+The SDK lowercases the standard names `Production`, `Staging` and `Development`, and keeps custom names as they are. An `Environment` set in code or in the `Sentry` section of `appsettings.json` still wins, followed by the `SENTRY_ENVIRONMENT` environment variable.
+
+Update alerts, saved searches and dashboards that filter on the old value. To keep reporting `production`, set the environment explicitly:
+
+```csharp {filename:Program.cs}
+using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
+
+var builder = WebAssemblyHostBuilder.CreateDefault(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "production";
+});
+```
diff --git a/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-log4net-appender.mdx b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-log4net-appender.mdx
new file mode 100644
index 0000000000000..be122868e8ca4
--- /dev/null
+++ b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-log4net-appender.mdx
@@ -0,0 +1,46 @@
+---
+id: move-sdk-settings-out-of-the-log4net-appender
+title: "Move SDK Settings Out of the log4net Appender"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 80
+---
+
+The log4net appender no longer initializes Sentry, and version 7 removes its `Environment` setting. Initialize Sentry first, and remove `Dsn` and `Environment` from the appender. log4net writes an error to standard error for each of them.
+
+In 6.x, the appender initialized Sentry from its configuration:
+
+```xml {filename:app.config}
+
+
+
+
+
+
+```
+
+In 7.x, the appender keeps `SendIdentity`, `MinimumEventLevel` and the log4net settings such as `threshold`:
+
+```xml {filename:app.config}
+
+
+
+
+```
+
+Initialize Sentry in code before log4net writes its first entry:
+
+```csharp {filename:Program.cs}
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+});
+
+log4net.Config.XmlConfigurator.Configure();
+```
+
+In an ASP.NET app on .NET Framework, call `SentrySdk.Init` in `Application_Start`, as the ASP.NET integration already requires. The appender now sends logs once you add it. See [Logging Integrations Send Logs](#logging-integrations-send-logs).
diff --git a/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-nlog-target.mdx b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-nlog-target.mdx
new file mode 100644
index 0000000000000..07c534b76613a
--- /dev/null
+++ b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-nlog-target.mdx
@@ -0,0 +1,118 @@
+---
+id: move-sdk-settings-out-of-the-nlog-target
+title: "Move SDK Settings Out of the NLog Target"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 70
+---
+
+The NLog target no longer initializes Sentry. Initialize Sentry first, and remove every SDK setting from the target, including the ones NLog doesn't report. A target that keeps `environment` or `release` stops sending them without a warning.
+
+The target writes one message to standard error for `dsn`, or for `initializeSdk` set to `true`. NLog ignores the other settings below without a message. Move each one to the options of `SentrySdk.Init` or `UseSentry`:
+
+| NLog target setting in 6.x | 7.x |
+| ------------------------------------------------------------------------------------ | ----------------------------------------------- |
+| `dsn` | `options.Dsn` |
+| `environment` | `options.Environment` |
+| `release` | `options.Release` |
+| `flushTimeoutSeconds` | `options.FlushTimeout` |
+| `shutdownTimeoutSeconds` | `options.ShutdownTimeout` |
+| `initializeSdk` | Remove it |
+| SDK settings in ``, such as `sendDefaultPii`, `attachStacktrace` or `debug` | The `SentryOptions` property with the same name |
+
+NLog layouts in these settings don't carry over, because `SentryOptions` takes plain values. A release written as a layout, such as `${assembly-version:cached=true:type=File}`, needs a value you set in code. If you leave `Release` unset, the SDK uses the entry assembly's name and version, such as `MyApp@1.2.3`, which differs from what the layout produced.
+
+Target settings such as `minimumEventLevel`, `minimumBreadcrumbLevel`, `layout`, `breadcrumbLayout`, `` and `includeEventDataOnBreadcrumbs` keep working. In 6.x, the target carried the SDK settings:
+
+```xml {filename:NLog.config}
+
+
+
+
+
+
+
+
+
+
+
+
+
+```
+
+In 7.x, the target keeps only its own settings:
+
+```xml {filename:NLog.config}
+
+
+
+
+
+
+
+
+
+
+
+```
+
+Initialize Sentry with the SDK settings before NLog writes its first entry:
+
+```csharp {filename:Program.cs}
+using NLog;
+
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+ options.Release = "my-app@1.2.3";
+ options.SendDefaultPii = true;
+});
+
+var logger = LogManager.GetCurrentClassLogger();
+```
+
+If you configure the target in code, `SentryNLogOptions` no longer derives from `SentryOptions`, so SDK settings fail to compile with error CS1061. In 6.x, `AddSentry` took them:
+
+```csharp {filename:Program.cs}
+using NLog;
+using NLog.Config;
+
+LogManager.Configuration = new LoggingConfiguration()
+ .AddSentry(options =>
+ {
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+ options.MinimumEventLevel = LogLevel.Error;
+ });
+```
+
+In 7.x, move them to `SentrySdk.Init`:
+
+```csharp {filename:Program.cs}
+using NLog;
+using NLog.Config;
+
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+});
+
+LogManager.Configuration = new LoggingConfiguration()
+ .AddSentry(options => options.MinimumEventLevel = LogLevel.Error);
+```
+
+NLog's `enableLogs` setting is obsolete and has no effect, because the target now sends logs once you add it. See [Logging Integrations Send Logs](#logging-integrations-send-logs). The target now flushes with `SentryOptions.FlushTimeout`, which defaults to 2 seconds instead of 15. See [Logging Frameworks No Longer Close Sentry](#logging-frameworks-no-longer-close-sentry).
diff --git a/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-serilog-sink.mdx b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-serilog-sink.mdx
new file mode 100644
index 0000000000000..e7e5a8183e23c
--- /dev/null
+++ b/includes/migration/dotnet-v7/move-sdk-settings-out-of-the-serilog-sink.mdx
@@ -0,0 +1,94 @@
+---
+id: move-sdk-settings-out-of-the-serilog-sink
+title: "Move SDK Settings Out of the Serilog Sink"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 60
+---
+
+The Serilog sink no longer initializes Sentry, and `SentrySerilogOptions` no longer derives from `SentryOptions`. Initialize Sentry first, call `UseSerilog()` on its options, and keep only the sink's own settings in `WriteTo.Sentry`.
+
+SDK settings on the sink options, such as `Dsn`, `Environment`, `Release`, `AttachStacktrace` or `InitializeSdk`, fail to compile with error CS1061. In 6.x, the sink took them all:
+
+```csharp {filename:Program.cs}
+using Serilog;
+using Serilog.Events;
+
+Log.Logger = new LoggerConfiguration()
+ .WriteTo.Sentry(options =>
+ {
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+ options.MinimumEventLevel = LogEventLevel.Error;
+ options.MinimumBreadcrumbLevel = LogEventLevel.Information;
+ })
+ .CreateLogger();
+```
+
+In 7.x, move the SDK settings to `SentrySdk.Init`. The sink keeps only its own settings, which are `MinimumEventLevel`, `MinimumBreadcrumbLevel`, `RestrictedToMinimumLevel`, `LevelSwitch`, `FormatProvider` and `TextFormatter`:
+
+```csharp {filename:Program.cs}
+using Sentry.Serilog;
+using Serilog;
+using Serilog.Events;
+
+using var sentry = SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Environment = "staging";
+ options.UseSerilog();
+});
+
+Log.Logger = new LoggerConfiguration()
+ .WriteTo.Sentry(options =>
+ {
+ options.MinimumEventLevel = LogEventLevel.Error;
+ options.MinimumBreadcrumbLevel = LogEventLevel.Information;
+ })
+ .CreateLogger();
+```
+
+In ASP.NET Core and other apps that call `UseSentry`, call `options.UseSerilog()` in the `UseSentry` options instead.
+
+`UseSerilog()` replaces `ApplySerilogScopeToEvents()`. It adds properties from Serilog's `LogContext` to Sentry events. The sink also does this the first time it writes, so the call only matters for events captured before then. `UseSerilog()` is in the `Sentry.Serilog` namespace and returns `void`, so it can't be chained like `ApplySerilogScopeToEvents()`.
+
+If you configure the sink in `appsettings.json`, remove `dsn` and every other SDK setting from its `Args`. A `dsn` argument fails when Serilog reads the configuration, with a `TargetInvocationException` whose inner `NotSupportedException` explains the change. Serilog ignores other SDK arguments, such as `environment`, without a message. In 6.x, the sink arguments included the SDK settings:
+
+```json {filename:appsettings.json}
+{
+ "Serilog": {
+ "WriteTo": [
+ {
+ "Name": "Sentry",
+ "Args": {
+ "dsn": "___PUBLIC_DSN___",
+ "environment": "staging",
+ "minimumEventLevel": "Error"
+ }
+ }
+ ]
+ }
+}
+```
+
+In 7.x, keep only the sink settings, and initialize Sentry in code or with `UseSentry`:
+
+```json {filename:appsettings.json}
+{
+ "Serilog": {
+ "WriteTo": [
+ {
+ "Name": "Sentry",
+ "Args": {
+ "minimumEventLevel": "Error"
+ }
+ }
+ ]
+ }
+}
+```
+
+The `enableLogs` argument is gone too, because the sink now sends logs once you add it. See [Logging Integrations Send Logs](#logging-integrations-send-logs). `Log.CloseAndFlush()` no longer closes Sentry. See [Logging Frameworks No Longer Close Sentry](#logging-frameworks-no-longer-close-sentry).
diff --git a/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx b/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx
new file mode 100644
index 0000000000000..f9422e5e10e14
--- /dev/null
+++ b/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx
@@ -0,0 +1,65 @@
+---
+id: other-removed-and-internal-apis
+title: "Other Removed and Internal APIs"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 130
+---
+
+Version 7 removes a few APIs that most apps don't use, makes others internal and reorders some parameters. Update any code that uses them:
+
+| API | Migration |
+| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
+| `Envelope.FromEvent`, `Envelope.FromFeedback`, `Envelope.FromTransaction` | The `IDiagnosticLogger` parameter moves to the end. Reorder the arguments or pass them by name. |
+| `options.Native.EnableAppHangTrackingV2` on iOS and Mac Catalyst | Use `options.Native.EnableAppHangTracking`. App hang tracking V2 is already the default. |
+| `options.Native.AddInAppExclude(string)` on iOS and Mac Catalyst | Remove the call. It had no effect. |
+| `SentryOptions.ScopeObserver`, `SentryOptions.EnableScopeSync`, `SentryOptions.CrashedLastRun` | These are internal now, because only the SDK's native integrations set them. Remove references to them. |
+
+The SDK ignores an `EnableScopeSync` key in the `Sentry` section of `appsettings.json`.
+
+The `Envelope` factory methods only matter if you build envelopes yourself, for example in a custom transport. In 6.x, the logger came second:
+
+```csharp {filename:Program.cs}
+using Sentry.Extensibility;
+using Sentry.Protocol.Envelopes;
+
+static Envelope CreateEnvelope(SentryEvent @event, IDiagnosticLogger logger,
+ IReadOnlyCollection attachments, SessionUpdate sessionUpdate)
+ => Envelope.FromEvent(@event, logger, attachments, sessionUpdate);
+```
+
+In 7.x, the logger comes last:
+
+```csharp {filename:Program.cs}
+using Sentry.Extensibility;
+using Sentry.Protocol.Envelopes;
+
+static Envelope CreateEnvelope(SentryEvent @event, IDiagnosticLogger logger,
+ IReadOnlyCollection attachments, SessionUpdate sessionUpdate)
+ => Envelope.FromEvent(@event, attachments, sessionUpdate, logger);
+```
+
+On iOS and Mac Catalyst, the 6.x app hang option looked like this:
+
+```csharp {filename:MauiProgram.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Native.EnableAppHangTrackingV2 = true;
+});
+```
+
+In 7.x, use the main option:
+
+```csharp {filename:MauiProgram.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Native.EnableAppHangTracking = true;
+});
+```
+
+The SDK no longer reads the breadcrumb level `"critical"` as `Fatal`. Only envelopes that a 5.x app cached on disk and never sent used that level.
diff --git a/includes/migration/dotnet-v7/release-and-distribution-are-set-on-options.mdx b/includes/migration/dotnet-v7/release-and-distribution-are-set-on-options.mdx
new file mode 100644
index 0000000000000..ef1a345980ab3
--- /dev/null
+++ b/includes/migration/dotnet-v7/release-and-distribution-are-set-on-options.mdx
@@ -0,0 +1,38 @@
+---
+id: release-and-distribution-are-set-on-options
+title: "Release and Distribution Are Set on Options"
+phase: code-changes
+category: removed-api
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 110
+---
+
+Version 7 removes `Scope.Release`, `Scope.Distribution` and `SentryOptions.ApplyDefaultTags`. `Release` and `Distribution` also move from `IEventLike` to `ITransactionData`. Set the release and distribution on `SentryOptions` instead.
+
+In 6.x, the scope could set the release:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options => options.Dsn = "___PUBLIC_DSN___");
+SentrySdk.ConfigureScope(scope =>
+{
+ scope.Release = "my-app@1.2.3";
+ scope.Distribution = "42";
+});
+```
+
+In 7.x, set both on the options:
+
+```csharp {filename:Program.cs}
+SentrySdk.Init(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.Release = "my-app@1.2.3";
+ options.Distribution = "42";
+});
+```
+
+Events, transactions and check-ins keep their own `Release` property. To change the release of a single event, set `Release` on the event in `SetBeforeSend`. Code that reads `Release` or `Distribution` through an `IEventLike` variable needs a `SentryEvent` or `ITransactionData` variable instead.
+
+`DefaultTags` are still applied to events and transactions. Remove calls to `options.ApplyDefaultTags`.
diff --git a/includes/migration/dotnet-v7/remove-redundant-loggingaddsentry-calls.mdx b/includes/migration/dotnet-v7/remove-redundant-loggingaddsentry-calls.mdx
new file mode 100644
index 0000000000000..5a4b5606836a7
--- /dev/null
+++ b/includes/migration/dotnet-v7/remove-redundant-loggingaddsentry-calls.mdx
@@ -0,0 +1,56 @@
+---
+id: remove-redundant-loggingaddsentry-calls
+title: "Remove Redundant Logging.AddSentry Calls"
+phase: code-changes
+category: behavior
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 50
+---
+
+In an app that calls `UseSentry`, `Logging.AddSentry()` now does nothing, and options passed to it in code no longer apply. Move those options to `UseSentry` and remove the call.
+
+The exception is an app that calls `ClearProviders()` after `UseSentry`, which also removes Sentry's logger providers. Keep `Logging.AddSentry()` there to add them back. It uses the options of `UseSentry`, not the ones passed to it. Leave it out if Serilog, NLog or log4net already sends the app's `ILogger` entries to Sentry, because each entry would then arrive twice.
+
+In 6.x, an app with both calls captured each error, breadcrumb and log twice. In 7.x, the `ILogger` integration that `UseSentry` adds captures them once, with the options of `UseSentry`. With `Debug` on, the SDK logs a warning about the redundant call.
+
+In 6.x, the app passed the logging options to `Logging.AddSentry`:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.WebHost.UseSentry(options => options.Dsn = "___PUBLIC_DSN___");
+builder.Logging.AddSentry(options => options.MinimumBreadcrumbLevel = LogLevel.Debug);
+```
+
+In 7.x, set them on the options of `UseSentry`:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.MinimumBreadcrumbLevel = LogLevel.Debug;
+});
+```
+
+Blazor WebAssembly apps often called `Logging.AddSentry` with `InitializeSdk = false`. That line now fails to compile with error CS0619. In 6.x, the setup looked like this:
+
+```csharp {filename:Program.cs}
+using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
+
+var builder = WebAssemblyHostBuilder.CreateDefault(args);
+builder.UseSentry(options => options.Dsn = "___PUBLIC_DSN___");
+builder.Logging.AddSentry(options => options.InitializeSdk = false);
+```
+
+In 7.x, remove the `Logging.AddSentry` line:
+
+```csharp {filename:Program.cs}
+using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
+
+var builder = WebAssemblyHostBuilder.CreateDefault(args);
+builder.UseSentry(options => options.Dsn = "___PUBLIC_DSN___");
+```
+
+The log levels under `Logging:Sentry` keep working, because `UseSentry` reads that section too.
diff --git a/includes/migration/dotnet-v7/sdk-name-release-and-scope-environment.mdx b/includes/migration/dotnet-v7/sdk-name-release-and-scope-environment.mdx
new file mode 100644
index 0000000000000..070631320bab2
--- /dev/null
+++ b/includes/migration/dotnet-v7/sdk-name-release-and-scope-environment.mdx
@@ -0,0 +1,25 @@
+---
+id: sdk-name-release-and-scope-environment
+title: "SDK Name, Release and Scope Environment"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 40
+---
+
+The SDK now resolves the SDK name, release and environment once, when Sentry starts, and applies them to every kind of telemetry the same way. Check searches, alerts and dashboards that depend on these values.
+
+Events, transactions, logs and metrics report the SDK name of the integration that initialized Sentry, such as `sentry.dotnet.aspnetcore`, `sentry.dotnet.extensions.hosting` or `sentry.dotnet`. Events captured by Serilog, NLog, log4net or `ILogger` no longer report `sentry.dotnet.serilog`, `sentry.dotnet.nlog`, `sentry.dotnet.log4net` or `sentry.dotnet.extensions.logging`. Blazor WebAssembly apps now report `sentry.dotnet.aspnetcore.blazor.webassembly`. Update searches and alerts that filter on `sdk.name`.
+
+On Android, iOS and Mac Catalyst, a `SENTRY_RELEASE` environment variable now takes precedence over the release that the SDK derives from the app package.
+
+An environment set on the scope now also applies to logs, metrics, sessions, check-ins and trace propagation, as it already did to events. Set `Scope.Environment` to `null` to go back to the environment from the options:
+
+```csharp {filename:Program.cs}
+SentrySdk.ConfigureScope(scope => scope.Environment = "canary");
+
+// Later, to report the environment from the options again:
+SentrySdk.ConfigureScope(scope => scope.Environment = null);
+```
diff --git a/includes/migration/dotnet-v7/some-requests-are-no-longer-traced.mdx b/includes/migration/dotnet-v7/some-requests-are-no-longer-traced.mdx
new file mode 100644
index 0000000000000..1bc97ee4d2601
--- /dev/null
+++ b/includes/migration/dotnet-v7/some-requests-are-no-longer-traced.mdx
@@ -0,0 +1,50 @@
+---
+id: some-requests-are-no-longer-traced
+title: "Some Requests Are No Longer Traced"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: all
+platformCategory: all
+order: 20
+---
+
+ASP.NET Core and ASP.NET apps no longer send a transaction for an incoming request that ends in 301, 305 to 399, or 401 to 404. `TraceIgnoreStatusCodes` now contains these codes by default, so dashboards and alerts that count these transactions see fewer of them.
+
+The default leaves out 302 and 303, because ASP.NET Core apps use them to redirect after a successful form post. The setting only affects the SDK's own `http.server` transactions, including the ones the `Sentry.OpenTelemetry` span processor creates. The SDK still traces outgoing `HttpClient` requests whatever their status code. OpenTelemetry spans that the OTLP exporter sends don't go through this setting, so a 404 still shows up there.
+
+To trace every request again, clear the list:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.TracesSampleRate = 1.0;
+ options.TraceIgnoreStatusCodes.Clear();
+});
+```
+
+To ignore only some status codes, replace the list:
+
+```csharp {filename:Program.cs}
+var builder = WebApplication.CreateBuilder(args);
+builder.UseSentry(options =>
+{
+ options.Dsn = "___PUBLIC_DSN___";
+ options.TracesSampleRate = 1.0;
+ options.TraceIgnoreStatusCodes = [404, (500, 599)];
+});
+```
+
+You can also replace the list in `appsettings.json`:
+
+```json {filename:appsettings.json}
+{
+ "Sentry": {
+ "TraceIgnoreStatusCodes": [404]
+ }
+}
+```
+
+An empty array in configuration doesn't clear the list, because configuration binds `[]` as a missing value. To trace every request from configuration alone, set `[0]`. Configuration can't express ranges.
diff --git a/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx b/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx
new file mode 100644
index 0000000000000..e14568a96c5f4
--- /dev/null
+++ b/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx
@@ -0,0 +1,50 @@
+---
+id: supported-net-versions-and-platforms
+title: "Supported .NET Versions and Platforms"
+phase: prerequisites
+category: version-support
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 10
+---
+
+Android, iOS, Mac Catalyst and MAUI apps need .NET 10 or later. Version 7 adds support for .NET 11 and drops the .NET 9 targets for these platforms. Server, desktop and console apps keep the same minimums, including WPF, WinForms and WinUI apps.
+
+| Target | 6.x | 7.x |
+| ------------------------------------------------- | ------------- | ----------------- |
+| .NET | .NET 8, 9, 10 | .NET 8, 9, 10, 11 |
+| .NET Standard | 2.0, 2.1 | 2.0, 2.1 |
+| .NET Framework | 4.6.2 | 4.6.2 |
+| Android, iOS and Mac Catalyst targets of `Sentry` | .NET 9, 10 | .NET 10, 11 |
+| `Sentry.Maui`, including its Windows target | .NET 9, 10 | .NET 10, 11 |
+| `Sentry.Maui.CommunityToolkit.Mvvm` | .NET 9 | .NET 10 and later |
+
+Each package keeps the .NET Standard and .NET Framework targets it had in 6.x. `Sentry` has no Windows-specific target, so WPF, WinForms and WinUI apps use its plain .NET builds, as they did in 6.x. On .NET 11, the platform minimums go up:
+
+| Platform | .NET 10 | .NET 11 |
+| ----------------- | ------- | ------- |
+| Android API level | 21 | 24 |
+| Mac Catalyst | 15.0 | 17.0 |
+| iOS | 15.0 | 15.0 |
+
+Move each mobile or MAUI project to .NET 10 or .NET 11 before you update the Sentry packages:
+
+```xml {filename:MyApp.csproj}
+
+ net10.0-android;net10.0-ios;net10.0-maccatalyst
+
+```
+
+An app that targets .NET 11 also needs the higher platform minimums:
+
+```xml {filename:MyApp.csproj}
+
+ 24.0
+ 17.0
+
+```
+
+If a project still targets `net9.0-android`, `net9.0-ios` or `net9.0-maccatalyst`, NuGet gives it the plain `net9.0` build of `Sentry` 7. That build has no native SDK, so the app loses native crash reporting. Stay on 6.x until you move the app to .NET 10.
+
+A .NET 9 MAUI project can't use `Sentry.Maui` 7 at all. The package has no .NET 9 target, so NuGet fails the restore with error NU1202.
diff --git a/includes/migration/dotnet-v7/the-opentelemetry-exporter-no-longer-sets-a-propagator.mdx b/includes/migration/dotnet-v7/the-opentelemetry-exporter-no-longer-sets-a-propagator.mdx
new file mode 100644
index 0000000000000..94b5a6cbae606
--- /dev/null
+++ b/includes/migration/dotnet-v7/the-opentelemetry-exporter-no-longer-sets-a-propagator.mdx
@@ -0,0 +1,47 @@
+---
+id: the-opentelemetry-exporter-no-longer-sets-a-propagator
+title: "The OpenTelemetry Exporter No Longer Sets a Propagator"
+phase: code-changes
+category: behavior
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 120
+---
+
+`AddSentryOtlpExporter` and `UseOtlp` no longer set `SentryPropagator` as OpenTelemetry's default propagator, and they no longer take a `defaultTextMapPropagator` parameter. OpenTelemetry's default W3C propagator applies instead, so `sentry-trace` headers stop going out unless you set the propagator yourself.
+
+A call that passes `defaultTextMapPropagator` fails to compile with error CS1739. In 6.x, the exporter set the propagator:
+
+```csharp {filename:Program.cs}
+using OpenTelemetry;
+using OpenTelemetry.Trace;
+using Sentry.OpenTelemetry;
+
+using var tracerProvider = Sdk.CreateTracerProviderBuilder()
+ .AddSource("MyApp")
+ .AddSentryOtlpExporter("___PUBLIC_DSN___", defaultTextMapPropagator: new SentryPropagator())
+ .Build();
+```
+
+In 7.x, set the propagator with the OpenTelemetry SDK. To keep sending and reading `sentry-trace` headers, add `SentryPropagator` next to the W3C propagator:
+
+```csharp {filename:Program.cs}
+using OpenTelemetry;
+using OpenTelemetry.Context.Propagation;
+using OpenTelemetry.Trace;
+using Sentry.OpenTelemetry;
+
+Sdk.SetDefaultTextMapPropagator(new CompositeTextMapPropagator(new TextMapPropagator[]
+{
+ new TraceContextPropagator(),
+ new SentryPropagator(),
+}));
+
+using var tracerProvider = Sdk.CreateTracerProviderBuilder()
+ .AddSource("MyApp")
+ .AddSentryOtlpExporter("___PUBLIC_DSN___")
+ .Build();
+```
+
+Services that only talk to other OpenTelemetry services don't need `SentryPropagator`, because the W3C `traceparent` header connects their traces. See [OpenTelemetry (OTLP)](/platforms/dotnet/tracing/instrumentation/opentelemetry-otlp/) for details.
diff --git a/includes/migration/dotnet-v7/update-all-sentry-packages-together.mdx b/includes/migration/dotnet-v7/update-all-sentry-packages-together.mdx
new file mode 100644
index 0000000000000..64267100c5763
--- /dev/null
+++ b/includes/migration/dotnet-v7/update-all-sentry-packages-together.mdx
@@ -0,0 +1,29 @@
+---
+id: update-all-sentry-packages-together
+title: "Update All Sentry Packages Together"
+phase: packages
+category: package
+severity: action-required
+frameworks: all
+platformCategory: all
+order: 10
+---
+
+Update every Sentry package in the solution to the same 7.x version. A 6.x integration package left next to `Sentry` 7 breaks at runtime with `MissingMethodException`, because it calls members that 7.0 removes.
+
+`Sentry.Extensions.Logging` 6.12.1 throws when the app builds its logger factory, and `Sentry.Serilog` 6.12.1 throws when the app calls `WriteTo.Sentry()` without arguments. Set up in other ways, `Sentry.Serilog` and `Sentry.NLog` 6.12.1 fail on every entry they write instead. Serilog and NLog swallow that exception, so the app keeps running and sends nothing to Sentry.
+
+```xml {filename:MyApp.csproj}
+
+
+
+
+```
+
+If the solution uses central package management, update the versions in `Directory.Packages.props` instead.
+
+Worker services and other generic host apps that started Sentry with `Logging.AddSentry` need the new `Sentry.Extensions.Hosting` package instead of `Sentry.Extensions.Logging`. `Sentry.Extensions.Hosting` brings in `Sentry.Extensions.Logging`, so remove the direct reference. See [Generic Host Apps Call UseSentry](#generic-host-apps-call-usesentry).
+
+```shell
+dotnet add package Sentry.Extensions.Hosting
+```
diff --git a/includes/migration/dotnet-v7/usesentry-overrides-appsettingsjson-in-maui.mdx b/includes/migration/dotnet-v7/usesentry-overrides-appsettingsjson-in-maui.mdx
new file mode 100644
index 0000000000000..265cb1756c49f
--- /dev/null
+++ b/includes/migration/dotnet-v7/usesentry-overrides-appsettingsjson-in-maui.mdx
@@ -0,0 +1,37 @@
+---
+id: usesentry-overrides-appsettingsjson-in-maui
+title: "UseSentry Overrides appsettings.json in MAUI"
+phase: verify
+category: behavior
+severity: behavior-change
+frameworks: [maui]
+platformCategory: all
+order: 60
+---
+
+In MAUI apps, options set in the `UseSentry` callback now override the same settings from configuration, such as an `appsettings.json` file the app loads. In 6.x, configuration won, which was the reverse of ASP.NET Core.
+
+The SDK now applies the `Sentry` configuration section first, then the `UseSentry` callback, then the settings MAUI requires. If you relied on configuration to override the callback, keep each setting in one place. In 6.x, a callback could hold defaults that configuration replaced:
+
+```csharp {filename:MauiProgram.cs}
+var builder = MauiApp.CreateBuilder();
+builder
+ .UseMauiApp()
+ .UseSentry(options =>
+ {
+ options.Dsn = "___PUBLIC_DSN___";
+ options.TracesSampleRate = 1.0;
+ });
+```
+
+In 7.x, remove from the callback any setting that configuration should control:
+
+```csharp {filename:MauiProgram.cs}
+var builder = MauiApp.CreateBuilder();
+builder
+ .UseMauiApp()
+ .UseSentry(options =>
+ {
+ options.Dsn = "___PUBLIC_DSN___";
+ });
+```
diff --git a/scripts/validate-migration-items.mjs b/scripts/validate-migration-items.mjs
index 3cd861015f32e..ce80596f08f77 100644
--- a/scripts/validate-migration-items.mjs
+++ b/scripts/validate-migration-items.mjs
@@ -7,8 +7,9 @@
* Validate it so mistakes cannot silently drop items from the guide.
*
* `loadItems` is called from `validate-migration-items.spec.ts`, so `pnpm test`
- * fails on invalid frontmatter. Run `pnpm migration-items` (JavaScript) or
- * `pnpm migration-items flutter-v10` for the phase, severity and category counts.
+ * fails on invalid frontmatter. Run `pnpm migration-items` (JavaScript),
+ * `pnpm migration-items flutter-v10` or `pnpm migration-items dotnet-v7` for the
+ * phase, severity and category counts.
*/
import {readdirSync, readFileSync} from 'fs';
import path from 'path';
@@ -19,6 +20,7 @@ import matter from 'gray-matter';
const COLLECTIONS = {
'javascript-v11': 'docs/platforms/javascript/guides',
'flutter-v10': 'docs/platforms/dart/guides',
+ 'dotnet-v7': 'docs/platforms/dotnet/guides',
};
/** The change itself, stated once. Anything longer is an explanation. */
diff --git a/scripts/validate-migration-items.spec.ts b/scripts/validate-migration-items.spec.ts
index 29a1b65699434..825e4c59872a1 100644
--- a/scripts/validate-migration-items.spec.ts
+++ b/scripts/validate-migration-items.spec.ts
@@ -16,7 +16,7 @@ import {afterEach, beforeEach, describe, expect, it} from 'vitest';
import {loadItems} from './validate-migration-items.mjs';
describe('migration collections', () => {
- it.each(['javascript-v11', 'flutter-v10'])('validates %s', collection => {
+ it.each(['javascript-v11', 'flutter-v10', 'dotnet-v7'])('validates %s', collection => {
const {items, errors} = loadItems(process.cwd(), collection);
expect(items.length).toBeGreaterThan(0);
expect(errors).toEqual([]);
@@ -33,6 +33,18 @@ describe('migration collections', () => {
.sort();
expect(included).toEqual(items.map(item => item.file.replace(/\.mdx$/, '')).sort());
});
+
+ it('includes every .NET checklist item exactly once in the full guide', () => {
+ const {items} = loadItems(process.cwd(), 'dotnet-v7');
+ const guide = readFileSync(
+ 'docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx',
+ 'utf8'
+ );
+ const included = [...guide.matchAll(/name="migration\/dotnet-v7\/([^"]+)"/g)]
+ .map(match => match[1])
+ .sort();
+ expect(included).toEqual(items.map(item => item.file.replace(/\.mdx$/, '')).sort());
+ });
});
describe('migration item validator CLI', () => {
diff --git a/src/components/migrationGuide/index.spec.tsx b/src/components/migrationGuide/index.spec.tsx
index 9c0fc31d03443..f47c300bd50ca 100644
--- a/src/components/migrationGuide/index.spec.tsx
+++ b/src/components/migrationGuide/index.spec.tsx
@@ -60,6 +60,36 @@ describe('migration guide collection selection', () => {
);
});
+ it('loads the .NET steps for the bare platform without guide-only steps', async () => {
+ context.platform = {type: 'platform', name: 'dotnet', categories: []};
+ const result = await MigrationGuide({migration: 'dotnet-v7'});
+ expect(result.props.storageKey).toBe('sentry-dotnet-v7-migration:dotnet');
+ expect(result.key).toBe(result.props.storageKey);
+ expect(
+ result.props.items.some(item => item.id === 'logging-integrations-send-logs')
+ ).toBe(true);
+ expect(
+ result.props.items.some(
+ item => item.id === 'usesentry-overrides-appsettingsjson-in-maui'
+ )
+ ).toBe(false);
+ expect(result.props.items.some(item => item.id === 'node-version')).toBe(false);
+ expect(result.props.bodies.map(item => item.id)).toEqual(
+ result.props.items.map(item => item.id)
+ );
+ });
+
+ it('adds the MAUI step for the .NET MAUI guide with its own saved progress', async () => {
+ context.platform = {type: 'guide', name: 'maui', categories: []};
+ const result = await MigrationGuide({migration: 'dotnet-v7'});
+ expect(result.props.storageKey).toBe('sentry-dotnet-v7-migration:maui');
+ expect(
+ result.props.items.some(
+ item => item.id === 'usesentry-overrides-appsettingsjson-in-maui'
+ )
+ ).toBe(true);
+ });
+
it('keeps JavaScript progress scoped to the selected framework', async () => {
context.platform = {type: 'guide', name: 'nextjs', categories: ['browser', 'server']};
const result = await MigrationGuide({});
diff --git a/src/components/migrationGuide/index.tsx b/src/components/migrationGuide/index.tsx
index b620a26031439..1f46b98d4ed71 100644
--- a/src/components/migrationGuide/index.tsx
+++ b/src/components/migrationGuide/index.tsx
@@ -13,6 +13,7 @@ import {compareItems, MigrationItem, PhaseId} from './constants';
const MIGRATIONS = {
'javascript-v11': {storagePrefix: 'sentry-v11-migration', platform: 'javascript'},
'flutter-v10': {storagePrefix: 'sentry-flutter-v10-migration', platform: 'dart'},
+ 'dotnet-v7': {storagePrefix: 'sentry-dotnet-v7-migration', platform: 'dotnet'},
} as const;
// Share the MDX component map across item bodies and platform pages.
From ac1163b6c92de129afe464e9f2b46d0d95dd2a2b Mon Sep 17 00:00:00 2001
From: J-P Nurmi
Date: Thu, 29 Oct 2026 13:31:01 +0100
Subject: [PATCH 061/143] docs(native): clean up deprecated APIs and use native
in snippets (#20288)
## DESCRIBE YOUR PR
Direct use of `sentry-native` is no longer considered experimental.
Replace the experimental notice with the list of downstream SDKs and
mention the console SDKs.
Drop references to deprecated APIs in favor of their replacements:
`sentry_shutdown`, `sentry_regenerate_trace`,
`sentry_value_new_user_feedback`, `sentry_capture_user_feedback`, and
`sentry_options_add_view_hierarchy`.
Use the native backend explicitly in the CMake examples, split the
install example into macOS, Linux, and Windows tabs, and replace the
unmaintained `exa` with `eza`. Generalize the bundling note to cover
both out-of-process backends, and document `sentry-wer.dll` and the
handler and database paths for the native backend.
Ref: getsentry/sentry-native#2044
Ref: getsentry/sentry-native#2175
## 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
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
## LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
---
.../sdk/telemetry/attachments/index.mdx | 8 ++-
.../native/configuration/backends/native.mdx | 22 ++++++-
docs/platforms/native/user-feedback/index.mdx | 6 --
.../configuration/drain-example/native.mdx | 2 +-
.../getting-started-config/native.qt.mdx | 2 +-
.../getting-started-install/native.mdx | 65 +++++++++++++------
.../getting-started-install/native.qt.mdx | 14 ++--
.../getting-started-primer/native.mdx | 11 +++-
.../performance/add-spans-example/native.mdx | 8 +--
9 files changed, 93 insertions(+), 45 deletions(-)
diff --git a/develop-docs/sdk/telemetry/attachments/index.mdx b/develop-docs/sdk/telemetry/attachments/index.mdx
index 1eed71fd9984a..5d50f088d9eb1 100644
--- a/develop-docs/sdk/telemetry/attachments/index.mdx
+++ b/develop-docs/sdk/telemetry/attachments/index.mdx
@@ -153,7 +153,13 @@ SDKs **MAY** attach a `view-hierarchy.json` file following the structure describ
For native SDKs (since 1.4.0), the path to the view hierarchy file **SHOULD** be configurable at SDK initialization. The SDK monitors the file and uploads it along with any event or crash:
```c
-sentry_options_add_view_hierarchy(options, "./view-hierarchy.json");
+void setup_scope(sentry_scope_t *scope, void *user_data) {
+ sentry_value_t attachment = sentry_attachment_from_file("./view-hierarchy.json");
+ sentry_attachment_set_type(attachment, SENTRY_ATTACHMENT_TYPE_VIEW_HIERARCHY);
+ sentry_scope_add_attachment(scope, attachment);
+}
+
+sentry_options_set_initial_scope(options, setup_scope, NULL);
```
diff --git a/docs/platforms/native/configuration/backends/native.mdx b/docs/platforms/native/configuration/backends/native.mdx
index b99de28dfd3a4..ff56ce7912041 100644
--- a/docs/platforms/native/configuration/backends/native.mdx
+++ b/docs/platforms/native/configuration/backends/native.mdx
@@ -15,7 +15,27 @@ cmake -B build -D SENTRY_BACKEND=native
This builds the `sentry-crash` executable alongside the `sentry` library. Ship
the executable with your application so the SDK can start it during
-initialization.
+initialization. On Windows, it also builds the `sentry-wer.dll` module for
+reporting fast-fail crashes via [Windows Error Reporting](/platforms/native/advanced-usage/windows-error-reporting/).
+Ship it in the same directory as `sentry-crash.exe`.
+
+The SDK will automatically look for a `sentry-crash` executable in the same
+directory as the running application. It will also use the `.sentry-native`
+directory as its database by default, relative to the current working directory
+of your application.
+This location temporarily hosts crash reports before they are uploaded to Sentry.
+
+Both of these paths can be customized like this:
+
+```c
+sentry_options_t *options = sentry_options_new();
+sentry_options_set_handler_path(options, "path/to/sentry-crash");
+sentry_options_set_database_path(options, "sentry-db-directory");
+sentry_init(options);
+```
+
+It is advised to specify both the path to the `sentry-crash` executable
+as well as the path to the database directory manually.
## Crash Reporting Modes
diff --git a/docs/platforms/native/user-feedback/index.mdx b/docs/platforms/native/user-feedback/index.mdx
index 9c1f636461b6d..19bdc1b1598e4 100644
--- a/docs/platforms/native/user-feedback/index.mdx
+++ b/docs/platforms/native/user-feedback/index.mdx
@@ -16,12 +16,6 @@ Sentry pairs the feedback with the original event, giving you additional insight
-
-
-`sentry_value_new_user_feedback` and `sentry_capture_user_feedback` are deprecated. They produce the older User Report envelope item, which doesn't carry scope data or attachments. Use `sentry_value_new_feedback` and `sentry_capture_feedback` instead.
-
-
-
### What Gets Sent With Feedback
diff --git a/platform-includes/configuration/drain-example/native.mdx b/platform-includes/configuration/drain-example/native.mdx
index c969121fa8ab3..41e0dfa46e1d8 100644
--- a/platform-includes/configuration/drain-example/native.mdx
+++ b/platform-includes/configuration/drain-example/native.mdx
@@ -4,7 +4,7 @@
sentry_close();
```
-Calling `sentry_close()` (formerly `sentry_shutdown()`) before exiting the application is critical to avoid
+Calling `sentry_close()` before exiting the application is critical to avoid
data loss.
After closing, the client cannot be used anymore. It's important to only call
diff --git a/platform-includes/getting-started-config/native.qt.mdx b/platform-includes/getting-started-config/native.qt.mdx
index 171256d96bec7..59fdb1e664455 100644
--- a/platform-includes/getting-started-config/native.qt.mdx
+++ b/platform-includes/getting-started-config/native.qt.mdx
@@ -28,7 +28,7 @@ Alternatively, the DSN can be passed as `SENTRY_DSN` environment variable during
-Calling `sentry_close()` (formerly `sentry_shutdown()`) before exiting the application is critical. It
+Calling `sentry_close()` before exiting the application is critical. It
ensures that events can be sent to Sentry before execution stops. Otherwise,
event data may be lost.
diff --git a/platform-includes/getting-started-install/native.mdx b/platform-includes/getting-started-install/native.mdx
index 0b1b9212d4df9..60797e0b8d97f 100644
--- a/platform-includes/getting-started-install/native.mdx
+++ b/platform-includes/getting-started-install/native.mdx
@@ -1,26 +1,25 @@
-The Native SDK currently supports **Windows**, **macOS**, and **Linux**. The Native SDK also acts as an **Android** NDK support library in downstream SDKs via the [Android SDK](/platforms/android/configuration/using-ndk/), but currently does not directly support the platform.
+The Native SDK currently supports **Windows**, **macOS**, and **Linux**. The Native SDK also acts as an **Android** NDK support library in downstream SDKs via the [Android SDK](/platforms/android/configuration/using-ndk/), but currently does not directly support the platform. **Nintendo Switch**, **PlayStation**, and **Xbox** are supported via Sentry's console SDKs. See the [Nintendo Switch](/platforms/nintendo-switch/), [PlayStation](/platforms/playstation/), and [Xbox](/platforms/xbox/) documentation to get access.
To build the SDK, download the latest sources from the [Releases page](https://github.com/getsentry/sentry-native/releases). The SDK is managed as a [CMake] project, which additionally supports several configuration options, such as the backend to use.
-For example, `CMake` can be used like this (on macOS):
+For example, `CMake` can be used like this:
-```shell
+```shell {tabTitle:macOS} {mdExpandTabs}
# When using CMake 4 ensure you have valid SDKROOT defined in your environment.
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
-# Configure the CMake build into the `build` directory with crashpad (the default
-# backend on macOS, thus optional to specify). Specifying `RelWithDebInfo` as the
-# `CMAKE_BUILD_TYPE` is also optional because it is the default in sentry-native
-# for all generators supporting it.
-cmake -B build -D SENTRY_BACKEND=crashpad -D CMAKE_BUILD_TYPE=RelWithDebInfo
+# Configure the CMake build into the `build` directory with the desired backend.
+# Specifying `RelWithDebInfo` as the `CMAKE_BUILD_TYPE` is optional because it
+# is the default in sentry-native for all generators supporting it.
+cmake -B build -D SENTRY_BACKEND=native -D CMAKE_BUILD_TYPE=RelWithDebInfo
# build the project
cmake --build build --parallel
# install the resulting artifacts into a specific prefix
cmake --install build --prefix install
-# which will result in the following (on macOS):
-exa --tree install --level 2
+# which will result in the following:
+eza --tree install --level 2
install
βββ bin
-β βββ crashpad_handler
+β βββ sentry-crash
βββ include
β βββ sentry.h
βββ lib
@@ -28,15 +27,34 @@ install
βββ libsentry.dylib
βββ libsentry.dylib.dSYM
```
-(For further details on the `SDKROOT` usage with CMake please consult the [macOS build section in the SDK README](https://github.com/getsentry/sentry-native?tab=readme-ov-file#building-and-installation))
-Contrast the above with the build-steps for a typical `msbuild` project on Windows:
+```shell {tabTitle:Linux}
+# Configure the CMake build into the `build` directory with the desired backend.
+# Specifying `RelWithDebInfo` as the `CMAKE_BUILD_TYPE` is optional because it
+# is the default in sentry-native for all generators supporting it.
+cmake -B build -D SENTRY_BACKEND=native -D CMAKE_BUILD_TYPE=RelWithDebInfo
+# build the project
+cmake --build build --parallel
+# install the resulting artifacts into a specific prefix
+cmake --install build --prefix install
+# which will result in the following:
+tree install -L 2
+install
+βββ bin
+β βββ sentry-crash
+βββ include
+β βββ sentry.h
+βββ lib
+ βββ cmake
+ βββ libsentry.so
+
+5 directories, 3 files
+```
-```shell
+```shell {tabTitle:Windows}
# The msbuild generator ignores the CMAKE_BUILD_TYPE because it contains all
-# build-types. Here we leave out the backend specification and rely on CMake
-# selecting crashpad as Windows' default backend.
-cmake -B build
+# build-types.
+cmake -B build -D SENTRY_BACKEND=native
# The actual build step then requires we specify which build-type we want
# to apply via the `--config` parameter. Please be aware that in msbuild
# projects, the `--parallel` option has no effect.
@@ -46,8 +64,9 @@ cmake --install build --prefix install --config RelWithDebInfo
# which will result in the following output (ignoring non-essential lines):
tree /f install
ββββbin
-β crashpad_handler.exe
-β crashpad_handler.pdb
+β sentry-crash.exe
+β sentry-wer.dll
+β sentry-wer.pdb
β sentry.dll
β sentry.pdb
β
@@ -56,12 +75,16 @@ tree /f install
β
ββββlib
β sentry.lib
+ β
+ ββββcmake
```
+(For further details on the `SDKROOT` usage with CMake please consult the [macOS build section in the SDK README](https://github.com/getsentry/sentry-native?tab=readme-ov-file#building-and-installation))
+
[cmake]: https://cmake.org/cmake/help/latest/
-
+
-When using the _Crashpad backend_, which is the default on all supported Desktop platforms (Windows, Linux and macOS), the `crashpad_handler` binary has to be shipped alongside the application binary. See the [Crashpad documentation](/platforms/native/configuration/backends/crashpad/) for more information.
+The out-of-process _Native_ and _Crashpad_ backends require shipping `sentry-crash` or `crashpad_handler`, respectively, alongside the application binary. See the [Native](/platforms/native/configuration/backends/native/) and [Crashpad](/platforms/native/configuration/backends/crashpad/) backend documentation for more information.
diff --git a/platform-includes/getting-started-install/native.qt.mdx b/platform-includes/getting-started-install/native.qt.mdx
index e5d8718dc4bab..b63ea47814b8d 100644
--- a/platform-includes/getting-started-install/native.qt.mdx
+++ b/platform-includes/getting-started-install/native.qt.mdx
@@ -11,13 +11,13 @@ If the Qt libraries are not installed in one of the predefined `CMake` [system p
-For example (on macOS):
+For example:
```shell
# Configure the cmake build into the `build` directory,
-# with crashpad, and Qt integration (on macOS).
+# with the desired backend, and Qt integration.
cmake -B build \
- -D SENTRY_BACKEND=crashpad \
+ -D SENTRY_BACKEND=native \
-D SENTRY_INTEGRATION_QT=YES
# Build the project
@@ -27,10 +27,10 @@ cmake --build build --parallel
cmake --install build --prefix install
# Which will result in the following (on macOS):
-exa --tree install --level 2
+eza --tree install --level 2
install
βββ bin
-β βββ crashpad_handler
+β βββ sentry-crash
βββ include
β βββ sentry.h
βββ lib
@@ -43,8 +43,8 @@ You can configure the Qt build for Windows analogous to the [regular build instr
[cmake]: https://cmake.org/cmake/help/latest/
-
+
-When using the _Crashpad backend_, which is the default on Windows and macOS, the `crashpad_handler` binary has to be shipped alongside the application binary. See the [Crashpad documentation](/platforms/native/configuration/backends/crashpad/) for more information.
+The out-of-process _Native_ and _Crashpad_ backends require shipping `sentry-crash` or `crashpad_handler`, respectively, alongside the application binary. See the [Native](/platforms/native/configuration/backends/native/) and [Crashpad](/platforms/native/configuration/backends/crashpad/) backend documentation for more information.
diff --git a/platform-includes/getting-started-primer/native.mdx b/platform-includes/getting-started-primer/native.mdx
index a4dc3e80f01e8..9f406da892298 100644
--- a/platform-includes/getting-started-primer/native.mdx
+++ b/platform-includes/getting-started-primer/native.mdx
@@ -1,10 +1,15 @@
The Sentry Native SDK is intended for C and C++. However, since it builds as a dynamic library and exposes C-bindings, it can be used by any language that supports interoperability with C, such as the Foreign Function Interface (FFI).
-
+It also provides native crash reporting for other Sentry SDKs:
-Using the `sentry-native` SDK in a standalone use case is currently an experimental feature. The SDKβs primary function is to fuel our other SDKs, like [`sentry-java`](https://github.com/getsentry/sentry-java) or [`sentry-unreal`](https://github.com/getsentry/sentry-unreal). Support from our side is best effort and we do what we can to respond to issues in a timely fashion, but please understand if we wonβt be able to address your issues or feature suggestions.
+- [_Android (NDK)_](/platforms/android/configuration/using-ndk/)
+- [_Flutter_](/platforms/dart/guides/flutter/)
+- [_Godot_](/platforms/godot/)
+- [_.NET_](/platforms/dotnet/)
+- [_Unity_](/platforms/unity/)
+- [_Unreal Engine_](/platforms/unreal/)
-
+Sentry's console SDKs also build on the Native SDK. See the [Nintendo Switch](/platforms/nintendo-switch/), [PlayStation](/platforms/playstation/), and [Xbox](/platforms/xbox/) documentation to get access.
Sentry also offers higher-level SDKs for platforms with built-in support for native crashes:
diff --git a/platform-includes/performance/add-spans-example/native.mdx b/platform-includes/performance/add-spans-example/native.mdx
index 2417637a1270c..14b5ff8900b03 100644
--- a/platform-includes/performance/add-spans-example/native.mdx
+++ b/platform-includes/performance/add-spans-example/native.mdx
@@ -61,7 +61,7 @@ perform_checkout();
The SDK will turn off managing automatic trace boundaries via transactions once manual management of trace boundaries
was requested by either a downstream SDK (using `sentry_set_trace(trace_id, parent_span_id)`) or a direct user of the
-Native SDK (via `sentry_regenerate_trace()`):
+Native SDK (via `sentry_start_new_trace()`):
```C
sentry_options_t *options = sentry_options_new();
@@ -86,10 +86,10 @@ sentry_options_t *options = sentry_options_new();
sentry_init(options);
// Generates a new random trace and span id onto the propagation_context
-sentry_regenerate_trace();
+sentry_start_new_trace();
authenticate_user();
-sentry_regenerate_trace();
+sentry_start_new_trace();
// Events, transactions, and spans inside perform_checkout() will be part of
// a different trace than the ones inside authenticate_user()
perform_checkout();
@@ -100,6 +100,6 @@ After the client called either function, the following transactions inherit that
If you interact with the Native SDK in the context of a downstream SDK (for
instance Android, .NET, Unity, or Unreal), we urge you not to use
- `sentry_regenerate_trace()` since it would interfere with the traces managed
+ `sentry_start_new_trace()` since it would interfere with the traces managed
from those SDKs.
From 70ac9650f5a5cbfa0bfa6c33e915353e9d59906b Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 13:00:28 +0000
Subject: [PATCH 062/143] Bump API schema to e3ed714f (#20314)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 9c7793415f0bb..38fa9a2b80fa8 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '93d0d1dd0390eada498fef7f106981626eab7901';
+const SENTRY_API_SCHEMA_SHA = 'e3ed714ff04e41aa985665c2fde4ec1558d98b49';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 77eb5becbedce3b64dced1e5c512af289ce5d847 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 13:03:35 +0000
Subject: [PATCH 063/143] Bump API schema to 5d1c8cb0 (#20315)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 38fa9a2b80fa8..f490baf2119c3 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'e3ed714ff04e41aa985665c2fde4ec1558d98b49';
+const SENTRY_API_SCHEMA_SHA = '5d1c8cb01897ab11ddedcc42af4f41551c33c4c6';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 535597d2b0e4b9afb037e02ae8b82e86fc69a100 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 13:13:07 +0000
Subject: [PATCH 064/143] Bump API schema to 72986c13 (#20316)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index f490baf2119c3..56f130c4a6345 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '5d1c8cb01897ab11ddedcc42af4f41551c33c4c6';
+const SENTRY_API_SCHEMA_SHA = '72986c13c90e477526eee1904c68bb8debd0ab9e';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 7ff3e44a6774c677b3f4aa4978c829cf9461e2d8 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 13:16:27 +0000
Subject: [PATCH 065/143] Bump API schema to c9ceac42 (#20317)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 56f130c4a6345..c13a81ab92762 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '72986c13c90e477526eee1904c68bb8debd0ab9e';
+const SENTRY_API_SCHEMA_SHA = 'c9ceac4258dfaee172359e17ea5e53ce86569e66';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 30e8256291d605c161afc375400b2fa4cd240ba9 Mon Sep 17 00:00:00 2001
From: Ivan Tustanivskyi
Date: Thu, 29 Oct 2026 16:53:11 +0200
Subject: [PATCH 066/143] docs(releases): Add Unreal Engine to release health
supported SDKs (#20320)
## DESCRIBE YOUR PR
Adds Unreal Engine to the list of SDKs that support release health on
the [Set Up Releases](https://docs.sentry.io/product/releases/setup/)
page. The Unreal SDK already documents release health on its own
releases page, but the setup page's list didn't link to it.
- Add an Unreal Engine entry linking to
`/platforms/unreal/configuration/releases/#release-health`
## 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
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
---
docs/product/releases/setup/index.mdx | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/product/releases/setup/index.mdx b/docs/product/releases/setup/index.mdx
index fce11b8aea20c..79d69894d7d8c 100644
--- a/docs/product/releases/setup/index.mdx
+++ b/docs/product/releases/setup/index.mdx
@@ -36,6 +36,7 @@ Release health is supported for the following SDKs:
- [Rust](/platforms/rust/configuration/releases/#release-health)
- [.NET](/platforms/dotnet/configuration/releases/#release-health)
- [Unity](/platforms/unity/configuration/releases/#release-health)
+- [Unreal Engine](/platforms/unreal/configuration/releases/#release-health)
## 2. Upload Source Maps or Other Debug Files
From 33dcb8eb9365a4bce132bf30483c3dbfce8bb774 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 15:43:27 +0000
Subject: [PATCH 067/143] Bump API schema to 20b46329 (#20323)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index c13a81ab92762..40640f3e9ba8a 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'c9ceac4258dfaee172359e17ea5e53ce86569e66';
+const SENTRY_API_SCHEMA_SHA = '20b463298ddd57987326af16f52efcb97971a564';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 721e58a35e672b4450f70ba7a6355a89bdba2748 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 15:47:29 +0000
Subject: [PATCH 068/143] Bump API schema to 20ca9a70 (#20324)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 40640f3e9ba8a..ae64c2ce33cf1 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '20b463298ddd57987326af16f52efcb97971a564';
+const SENTRY_API_SCHEMA_SHA = '20ca9a700e4cf4648e3b943583a9f6dc3aece76f';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From bc48e9bebbcea85da8800302d8c489d77263357d Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 16:14:48 +0000
Subject: [PATCH 069/143] docs(android): Explain when ProfilingManager rejects
profiling requests (#20129)
## DESCRIBE YOUR PR
On Android 15+, UI Profiling runs on Android's `ProfilingManager`. Until
now the docs only said requests are "rate limited and not guaranteed".
This adds a **When Android Rejects Profiling Requests** section to the
Android profiling page that covers:
- How the SDK uses `ProfilingManager`: each chunk of up to 60s is a
separate request, and `trace` mode sends a new request each time it
restarts.
- Why Android rejects requests: the per-app hourly/daily/weekly budget
(`ERROR_FAILED_RATE_LIMIT_PROCESS`), the system-wide budget shared by
all apps (`ERROR_FAILED_RATE_LIMIT_SYSTEM`), and a profiling session
that's already running (`ERROR_FAILED_PROFILING_IN_PROGRESS`).
- Why the app start and first screens get profiled more often than parts
of the app users reach later in a session.
- How to use the `manual` lifecycle (`Sentry.startProfiler()` /
`Sentry.stopProfiler()`) to spend the limited budget on specific flows.
I also moved the existing local-testing `adb` tip into this section and
added a troubleshooting entry that points to it.
The behavior matches `PerfettoContinuousProfiler` / `PerfettoProfiler`
in sentry-java (60s `MAX_CHUNK_DURATION_MILLIS`, rate-limit error
logging) and Android's [profiling
limitations](https://developer.android.com/topic/performance/tracing/profiling-manager/will-my-profile-always-be-collected#how-rate-limiting-works)
page.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [ ] 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](https://github.com/orgs/getsentry/teams/docs)
via **markus.hintersteiner**.
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AD0ANA6YA22F%3A1792582667.364859)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0ANA6YA22F%3A1792582667.364859/?project=4510944073809921)
---------
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Markus Hintersteiner
---
docs/platforms/android/profiling/index.mdx | 26 ++++++++++++++++++-
.../profiling/troubleshooting/index.mdx | 1 +
2 files changed, 26 insertions(+), 1 deletion(-)
diff --git a/docs/platforms/android/profiling/index.mdx b/docs/platforms/android/profiling/index.mdx
index a0d9a862cf40c..8c7a1c4af82f9 100644
--- a/docs/platforms/android/profiling/index.mdx
+++ b/docs/platforms/android/profiling/index.mdx
@@ -173,7 +173,21 @@ On Android 15 (API level 35) and higher, UI Profiling relies on the Android Prof
- **Older devices use the legacy profiler.** On devices below Android 15, the SDK automatically falls back to Legacy Profiling, which has different characteristics. You can disable this fallback with the `enableLegacyProfiling` option.
- **App start profiling is not supported.** The `startProfilerOnAppStart` option has no effect with the ProfilingManager (Perfetto) backend. App start profiling is only supported by the legacy profiler used on devices below Android 15. To learn more, see Legacy Profiling.
-- **Profiling requests are rate limited and not guaranteed to be fulfilled.** Apart from the SDK sampling rate, the Android Framework also restricts profiling, so not every request results in a profile. These limits are outside the SDK's control. To learn more, see the Android ProfilingManager documentation.
+- **Profiling requests are rate limited and not guaranteed to be fulfilled.** Apart from the SDK sampling rate, the Android Framework also restricts profiling, so not every request results in a profile. These limits are outside the SDK's control. To learn more, see [When Android Rejects Profiling Requests](#when-android-rejects-profiling-requests).
+
+## When Android Rejects Profiling Requests
+
+Whether a session gets profiled works like a funnel. First, the SDK decides whether to request profiling for the session, based on your `profileSessionSampleRate`. Then, the ProfilingManager applies its own limits and decides whether to record each request the SDK sends. When Android rejects a request, no profile is recorded for that time window, and the transactions and spans running during that window aren't linked to a profile.
+
+The SDK records profiles in chunks of up to 60 seconds, and each chunk is a separate ProfilingManager request. In `trace` mode, the profiler also sends a new request every time it restarts after all sampled spans have finished.
+
+Android rejects a profiling request in the following cases:
+
+- **The app reached its profiling limit.** Each app gets a limited profiling budget per hour, per day, and per week. Once the app uses up any of these, Android rejects further requests until that period resets (`ERROR_FAILED_RATE_LIMIT_PROCESS`).
+- **The device reached its system-wide profiling limit.** All apps on a device share a global budget with the same hourly, daily, and weekly periods. Profiling by other apps can use up this budget, even if your app hasn't reached its own limit (`ERROR_FAILED_RATE_LIMIT_SYSTEM`).
+- **Profiling is already in progress.** Android rejects a request while another profiling session is running (`ERROR_FAILED_PROFILING_IN_PROGRESS`).
+
+Android doesn't publish the exact budgets, and they may change between Android versions. To learn more, see the Android profiling limitations documentation. When debug mode is enabled, the SDK logs the error code of every rejected request.
When testing locally, you can disable the Android Framework restrictions with the following shell command:
@@ -182,3 +196,13 @@ On Android 15 (API level 35) and higher, UI Profiling relies on the Android Prof
adb shell device_config put profiling_testing rate_limiter.disabled true
```
+
+### Which Parts of Your App Get Profiled
+
+Requests sent early in a rate-limit period are the most likely to be recorded, while later ones are more likely to be rejected. As a result, the app start and first screens (right after `Sentry.init()`) are usually profiled more often than parts of your app that users reach later in a session. In long sessions, later parts of your app may not be profiled at all once the app has used up its budget.
+
+### Profiling Specific Parts of Your App
+
+To get profiles for a specific flow, such as a checkout or a heavy screen, use the [`manual` lifecycle](#enabling-manual-lifecycle-ui-profiling). Call `Sentry.startProfiler()` when the flow starts and `Sentry.stopProfiler()` when it ends. This spends the limited budget on the code you want to investigate, instead of on everything that runs while a sampled span is active.
+
+Keep manually profiled sections short, and always call `Sentry.stopProfiler()` when the flow is done. A profiler that keeps running sends a new request every 60 seconds, which uses up the app's budget quickly.
diff --git a/docs/platforms/android/profiling/troubleshooting/index.mdx b/docs/platforms/android/profiling/troubleshooting/index.mdx
index 1d9b100f8caa2..414a4ead74a5b 100644
--- a/docs/platforms/android/profiling/troubleshooting/index.mdx
+++ b/docs/platforms/android/profiling/troubleshooting/index.mdx
@@ -25,3 +25,4 @@ If you don't see any profiling data in [sentry.io](https://sentry.io), you can t
- Ensure that the automatic instrumentation is sending performance data to Sentry by going to the **Performance** page in [sentry.io](https://sentry.io).
- If the automatic instrumentation is not sending performance data, try using custom instrumentation.
- Enable debug mode in the SDK and check the logs.
+- On Android 15 (API level 35) and higher, check the logs for `ERROR_FAILED_RATE_LIMIT_PROCESS` or `ERROR_FAILED_RATE_LIMIT_SYSTEM`. These mean Android's ProfilingManager rejected the profiling request. To learn more, see When Android Rejects Profiling Requests.
From dac00729b03ee05374b9cbc8610d9880fb9fb603 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 16:40:51 +0000
Subject: [PATCH 070/143] Bump API schema to b26b2fcc (#20328)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index ae64c2ce33cf1..41d6a166ecf4e 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '20ca9a700e4cf4648e3b943583a9f6dc3aece76f';
+const SENTRY_API_SCHEMA_SHA = 'b26b2fcc6aeaa7c15ddd9fa9a54d089f3ab86e52';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From e208f1241f003fe030d075746eda3b18c00f3dbb Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 16:44:37 +0000
Subject: [PATCH 071/143] Bump API schema to ed573d45 (#20329)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 41d6a166ecf4e..0281c908123f0 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'b26b2fcc6aeaa7c15ddd9fa9a54d089f3ab86e52';
+const SENTRY_API_SCHEMA_SHA = 'ed573d45128ae766f28f51c86c012044266fa4dc';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 09ce3a5a907d6d234de8d9035b97466ea509c5e7 Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 10:05:24 -0700
Subject: [PATCH 072/143] docs(integration-platform): Fix signature
verification and verify-install examples (#20303)
This fixes three problems in the Integration Platform docs. Each fix was
checked against `getsentry/sentry` source.
- **Signature verification snippets (`webhooks.mdx`).** Both snippets
serialized the parsed body again before hashing it. Sentry signs the
exact body it sends, which is compact JSON from
`sentry.utils.json.dumps` with `(",", ":")` separators. Python's default
`json.dumps` adds spaces, so its digest never matches. The Python
snippet also passed a `str` to `hmac.new`, which raises a `TypeError`.
Both snippets now verify against the raw body, and the JS one uses a
constant-time comparison.
- **Missing `Sentry-App-Signature` docs (`ui-components/index.mdx`).**
UI component requests (select options, issue-link create and link,
alert-rule-action) send `Sentry-App-Signature`, not
`Sentry-Hook-Signature`. See `_build_headers` in
`src/sentry/sentry_apps/external_requests/*_requester.py`. The new
"Verifying Requests" section documents that header and two related
details:
- Select option requests are `GET`s with no body, signed over `""`.
- Query parameters aren't covered by the signature.
- **Verify installation request (`public-integration.mdx`).** The `PUT`
example had no `Authorization` header. `SentryAppInstallationPermission`
(`src/sentry/sentry_apps/api/bases/sentryapps.py`) only allows this
request from the app's own token, so the example as written fails.
**Checks**
- Ran both new snippets locally against a body signed the way Sentry
signs. Valid signatures pass; tampered or missing ones fail.
- Ran `prettier --check` on the changed files. `webhooks.mdx` and
`ui-components/index.mdx` pass. `public-integration.mdx` was already
failing on `master` (tabs in the JWT snippet), and this PR leaves that
as is.
## IS YOUR CHANGE URGENT?
- [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD
- [ ] Other deadline: YYYY-MM-DD
- [x] No deadline: Not urgent, can wait up to 1 week+
## PRE-MERGE CHECKLIST
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
via **matt.duncan**.
--
[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C8Z02BG5Q%3A1793225095.953239)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C8Z02BG5Q%3A1793225095.953239/?project=4510944073809921)
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Matt Duncan
---
.../public-integration.mdx | 3 +-
.../ui-components/index.mdx | 9 ++++
.../integration-platform/webhooks.mdx | 47 ++++++++++++-------
3 files changed, 41 insertions(+), 18 deletions(-)
diff --git a/docs/integrations/integration-platform/public-integration.mdx b/docs/integrations/integration-platform/public-integration.mdx
index 7ef265e0f221c..6692c368cb2f0 100644
--- a/docs/integrations/integration-platform/public-integration.mdx
+++ b/docs/integrations/integration-platform/public-integration.mdx
@@ -168,12 +168,13 @@ def refresh_token(install_id):
## Verifying Installations
-Typically, if you have the redirect URL configured, there is work happening on your end to "finalize" the installation. If this is the case, we recommend enabling the "Verify Install" option for your integration. Once enabled, you'll need to send a request marking the installation as officially "installed":
+Typically, if you have the redirect URL configured, there is work happening on your end to "finalize" the installation. If this is the case, we recommend enabling the "Verify Install" option for your integration. Once enabled, you'll need to send a request marking the installation as officially "installed". Authenticate the request with the token you received for this installation during the [OAuth process](#oauth-process):
```python
requests.put(
u'https://sentry.io/api/0/sentry-app-installations/{}/'.format(install_id),
json={'status': 'installed'},
+ headers={'Authorization': f'Bearer {token}'},
)
```
diff --git a/docs/integrations/integration-platform/ui-components/index.mdx b/docs/integrations/integration-platform/ui-components/index.mdx
index 0e1718b3e16fd..0860526e8ce30 100644
--- a/docs/integrations/integration-platform/ui-components/index.mdx
+++ b/docs/integrations/integration-platform/ui-components/index.mdx
@@ -36,6 +36,15 @@ The UI components are specified in the schema section of the integration details
The `uri` keys in your schema elements describe the URI path that will receive a request from that UI component. Sentry will append the path in the `uri` field onto the host of your integration's _webhook URL_.
For example, if the webhook URL is `https://example.com/webhook/`, and your schema's `uri` attribute is `/alerts/`, then the integration will receive requests to `https://example.com/alerts/`.
+## Verifying Requests
+
+Sentry signs requests from UI components with your _Client Secret_, the same way it signs [webhooks](/integrations/integration-platform/webhooks/#sentry-hook-signature). The only difference is the header name: UI component requests carry the signature in the `Sentry-App-Signature` header, not `Sentry-Hook-Signature`.
+
+Verify the signature against the raw request body, using the same code as for webhooks. Keep these details in mind:
+
+- [Select](/integrations/integration-platform/ui-components/formfield/#select) option requests are `GET` requests with no body, so Sentry computes the signature over an empty string. These requests still include a `Content-Type: application/json` header, so make sure your framework doesn't reject or rewrite the empty body before you verify it.
+- The signature covers only the body. The query parameters of select option requests, such as `installationId`, aren't signed.
+
## Error Handling
Component rendering either 100% works or shows nothing. To protect the integration from looking chaotic due to errors we have no control over, if any part of the third-party component rendering fails, nothing will render.
diff --git a/docs/integrations/integration-platform/webhooks.mdx b/docs/integrations/integration-platform/webhooks.mdx
index c5735672722cd..8ecc48ca70e6f 100644
--- a/docs/integrations/integration-platform/webhooks.mdx
+++ b/docs/integrations/integration-platform/webhooks.mdx
@@ -55,40 +55,53 @@ This header represents a cryptographic hash generated by your _Client Secret_. I
**Verifying the Signature**
-The below code snippet lets you validate the signature with the event payload.
+Sentry computes the signature as an HMAC-SHA256 hex digest of the exact request body bytes, using your _Client Secret_ as the key. Compute the digest over the raw body as received. Don't parse the JSON and serialize it again, because the result won't always match the bytes Sentry signed.
```javascript
const crypto = require("crypto");
-function verifySignature(request, secret = "") {
- const hmac = crypto.createHmac("sha256", secret);
- hmac.update(JSON.stringify(request.body), "utf8");
- const digest = hmac.digest("hex");
- return digest === request.headers["sentry-hook-signature"];
+// rawBody must be the unparsed request body, for example from
+// express.raw({ type: "application/json" })
+function verifySignature(rawBody, signature, secret) {
+ if (!signature) {
+ return false;
+ }
+ const digest = Buffer.from(
+ crypto.createHmac("sha256", secret).update(rawBody).digest("hex")
+ );
+ const expected = Buffer.from(signature);
+ return (
+ digest.length === expected.length &&
+ crypto.timingSafeEqual(digest, expected)
+ );
}
+
+verifySignature(request.body, request.headers["sentry-hook-signature"], secret);
```
```python
import hashlib
import hmac
-import json
-expected_digest = request.headers.get('sentry-hook-signature') # returns None if header is missing
-body = json.dumps(request.body)
-digest = hmac.new(
- key=client_secret.encode('utf-8'),
- msg=body,
- digestmod=hashlib.sha256,
-).hexdigest()
+def verify_signature(raw_body: bytes, signature: str | None, client_secret: str) -> bool:
+ if not signature: # The signature is missing
+ return False
+ digest = hmac.new(
+ key=client_secret.encode("utf-8"),
+ msg=raw_body,
+ digestmod=hashlib.sha256,
+ ).hexdigest()
+ return hmac.compare_digest(digest, signature)
-if not expected_digest: # The signature is missing
- raise UnauthorizedError
-if not hmac.compare_digest(digest, expected_digest):
+# For example, in Flask:
+if not verify_signature(request.get_data(), request.headers.get("sentry-hook-signature"), client_secret):
raise UnauthorizedError
```
+Requests from [UI components](/integrations/integration-platform/ui-components/#verifying-requests) are signed the same way, but use the `Sentry-App-Signature` header instead.
+
## Request Structure
All webhook requests have some common elements.
From eea09595a4e8439ebd5a7e3ca34bcd49c5722f7e Mon Sep 17 00:00:00 2001
From: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com>
Date: Thu, 29 Oct 2026 19:09:52 +0100
Subject: [PATCH 073/143] docs(consoles): add to release health (#20322)
## DESCRIBE YOUR PR
We released session health for Switch and PlayStation in
https://github.com/getsentry/sentry-switch/releases/tag/0.17.5-20261029
and
https://github.com/getsentry/sentry-playstation/releases/tag/0.17.5-20261029
respectively ; so we add them to the release health overview page
## 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
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
---
docs/product/releases/setup/index.mdx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docs/product/releases/setup/index.mdx b/docs/product/releases/setup/index.mdx
index 79d69894d7d8c..02f6bfb6a3763 100644
--- a/docs/product/releases/setup/index.mdx
+++ b/docs/product/releases/setup/index.mdx
@@ -30,6 +30,9 @@ Release health is supported for the following SDKs:
- [JavaScript (node)](/platforms/javascript/guides/node/configuration/releases/#release-health)
- [Electron](/platforms/javascript/guides/electron/configuration/releases/#release-health)
- [Native (C/C++)](/platforms/native/configuration/releases/#release-health)
+- [Nintendo Switch](/platforms/native/configuration/releases/#release-health)
+- [PlayStation](/platforms/native/configuration/releases/#release-health)
+- [Xbox](/platforms/native/configuration/releases/#release-health)
- [PHP](/platforms/php/configuration/releases/)
- [Python](/platforms/python/configuration/releases/#release-health)
- [React Native](/platforms/react-native/configuration/releases/#release-health)
From fe999d89dbe36d8d82633313602f4beffcce997c Mon Sep 17 00:00:00 2001
From: J-P Nurmi
Date: Thu, 29 Oct 2026 19:24:21 +0100
Subject: [PATCH 074/143] docs(native): fix snippets and stale statements
(#20327)
## DESCRIBE YOUR PR
Some native snippets didn't compile, and a few statements and notes were
outdated.
## 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
- [x] 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:_
- [x] Checked Vercel preview for correctness, including links
- [x] 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](https://github.com/orgs/getsentry/teams/docs)
## LEGAL BOILERPLATE
Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
## EXTRA RESOURCES
- [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
---
.../platforms/native/advanced-usage/signal-handling/index.mdx | 2 +-
platform-includes/configuration/sample-rate/native.mdx | 2 +-
.../distributed-tracing/custom-instrumentation/native.mdx | 2 +-
platform-includes/logs/usage/native.mdx | 4 ----
platform-includes/performance/connect-errors-spans/native.mdx | 2 +-
.../performance/force-sampling-decision/native.mdx | 2 +-
platform-includes/performance/improving-data/native.mdx | 2 +-
.../performance/traces-sampler-as-sampler/native.mdx | 2 +-
platform-includes/set-extra/native.mdx | 2 +-
9 files changed, 8 insertions(+), 12 deletions(-)
diff --git a/docs/platforms/native/advanced-usage/signal-handling/index.mdx b/docs/platforms/native/advanced-usage/signal-handling/index.mdx
index f22c56019dafb..7156366086895 100644
--- a/docs/platforms/native/advanced-usage/signal-handling/index.mdx
+++ b/docs/platforms/native/advanced-usage/signal-handling/index.mdx
@@ -19,7 +19,7 @@ Sentry's Native SDK comes with its own set of signal handlers. There may be conf
* Refrain from registering a conflicting signal handler in your application.
* If you have to, register your handler after `sentry_init()` and let it invoke Sentry's handler after it finishes, or you won't get a report.
-* If you or one of your dependencies register a handler for the signals listed below _before_ you call `sentry_init()`, Sentry will reinstall that handler as soon as you call `sentry_close()`. Only the `inproc` backend invokes your installed handler at the end of Sentry's handler.
+* If you or one of your dependencies register a handler for the signals listed below _before_ you call `sentry_init()`, Sentry will reinstall that handler as soon as you call `sentry_close()`. Only the `inproc` and `native` backends invoke your installed handler at the end of Sentry's handler.
* If you want to act on any crash and not consider specific signals, [register an `on_crash()` hook](/platforms/native/configuration/filtering/#using-on_crash) instead of registering a signal handler.
### Signals of Interest
diff --git a/platform-includes/configuration/sample-rate/native.mdx b/platform-includes/configuration/sample-rate/native.mdx
index dbdad0c8b16b6..aea527965001b 100644
--- a/platform-includes/configuration/sample-rate/native.mdx
+++ b/platform-includes/configuration/sample-rate/native.mdx
@@ -1,5 +1,5 @@
```c
sentry_options_t *options = sentry_options_new();
-sentry_options_set_sample_rate(0.25);
+sentry_options_set_sample_rate(options, 0.25);
sentry_init(options);
```
diff --git a/platform-includes/distributed-tracing/custom-instrumentation/native.mdx b/platform-includes/distributed-tracing/custom-instrumentation/native.mdx
index 6fd44c6d010e8..00db42225145c 100644
--- a/platform-includes/distributed-tracing/custom-instrumentation/native.mdx
+++ b/platform-includes/distributed-tracing/custom-instrumentation/native.mdx
@@ -2,7 +2,7 @@ On this page you will learn how to manually propagate trace information into and
To obtain trace headers from a transaction, use `sentry_transaction_iter_headers()`. For a span, use `sentry_span_iter_headers()`. Pass the returned value to the downstream service. If communication happens over HTTP, we recommend you attach all headers to the outgoing HTTP request.
-By default, only the `sentry-trace` header is generated. To also generate W3C `traceparent` headers for interoperability with other tracing systems, enable traceparent propagation:
+By default, the `sentry-trace` and `baggage` headers are generated. To also generate W3C `traceparent` headers for interoperability with other tracing systems, enable traceparent propagation:
```c
sentry_options_set_propagate_traceparent(options, 1);
diff --git a/platform-includes/logs/usage/native.mdx b/platform-includes/logs/usage/native.mdx
index eb84b08847051..3095380bffdf7 100644
--- a/platform-includes/logs/usage/native.mdx
+++ b/platform-includes/logs/usage/native.mdx
@@ -28,10 +28,6 @@ sentry_log_debug("logging with %d custom attributes", attributes, 3);
sentry_log_debug("logging with %s custom attributes", sentry_value_new_object(), "no");
```
-
-For now, logs can only take `bool`, `double`, `string` and signed `int` attributes. If you want to send unsigned integer values, you should convert these to strings before creating the attribute.
-
-
These additional attributes take precedence over the default attributes, except for `sentry.message.parameter.X` values; if you pass in a string with format specifiers, these are used for the message parameter values.
```c
diff --git a/platform-includes/performance/connect-errors-spans/native.mdx b/platform-includes/performance/connect-errors-spans/native.mdx
index fb63d06ee9955..5ef2ab38ad8a0 100644
--- a/platform-includes/performance/connect-errors-spans/native.mdx
+++ b/platform-includes/performance/connect-errors-spans/native.mdx
@@ -12,7 +12,7 @@ sentry_transaction_context_t *tx_ctx = sentry_transaction_context_new(
sentry_transaction_t *tx = sentry_transaction_start(tx_ctx, sentry_value_new_null());
// Bind the transaction / span to the scope:
-sentry_set_span(tx);
+sentry_set_transaction_object(tx);
// Errors captured after the line above will be linked to the transaction
sentry_value_t exc = sentry_value_new_exception(
diff --git a/platform-includes/performance/force-sampling-decision/native.mdx b/platform-includes/performance/force-sampling-decision/native.mdx
index c64c2c7131135..ef97cb2947a6a 100644
--- a/platform-includes/performance/force-sampling-decision/native.mdx
+++ b/platform-includes/performance/force-sampling-decision/native.mdx
@@ -1,7 +1,7 @@
```c
sentry_transaction_context_t *tx_ctx = sentry_transaction_context_new(
"transaction",
- "op",
+ "op"
);
sentry_transaction_context_set_sampled(tx_ctx, 1);
diff --git a/platform-includes/performance/improving-data/native.mdx b/platform-includes/performance/improving-data/native.mdx
index 4f274935971b8..6cc7765e4bea1 100644
--- a/platform-includes/performance/improving-data/native.mdx
+++ b/platform-includes/performance/improving-data/native.mdx
@@ -3,7 +3,7 @@ You can add Data Attributes to both Spans and Transactions. This data is visible
The data must be of type `sentry_value_t`, which can store:
* 32-bit signed integers,
* 64-bit signed integers,
-* 64-bit unsigned integers (due to a current limitation in processing, these will be converted to strings before sending),
+* 64-bit unsigned integers,
* double-precision floating-points,
* null-terminated strings, as well as
* lists and string-keyed maps containing `sentry_value_t` entries
diff --git a/platform-includes/performance/traces-sampler-as-sampler/native.mdx b/platform-includes/performance/traces-sampler-as-sampler/native.mdx
index 41bc9f7bfcf45..760a50fcf6224 100644
--- a/platform-includes/performance/traces-sampler-as-sampler/native.mdx
+++ b/platform-includes/performance/traces-sampler-as-sampler/native.mdx
@@ -23,6 +23,6 @@ traces_sampler_callback(const sentry_transaction_context_t *transaction_ctx,
}
sentry_options_t *options = sentry_options_new();
-sentry_options_set_traces_sampler(options, traces_sampler_callback);
+sentry_options_set_traces_sampler(options, traces_sampler_callback, NULL);
sentry_init(options);
```
diff --git a/platform-includes/set-extra/native.mdx b/platform-includes/set-extra/native.mdx
index ea46fd8bb9ce6..89cf315ccd423 100644
--- a/platform-includes/set-extra/native.mdx
+++ b/platform-includes/set-extra/native.mdx
@@ -2,5 +2,5 @@
#include
sentry_value_t extra_value = sentry_value_new_string("Mighty Fighter");
-sentry_set_extra("character.name", screen);
+sentry_set_extra("character.name", extra_value);
```
From b4a51092db8803a4692f40c343753e438bd18e12 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 20:12:47 +0000
Subject: [PATCH 075/143] Bump API schema to 37723c61 (#20333)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 0281c908123f0..841c2365d76a1 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = 'ed573d45128ae766f28f51c86c012044266fa4dc';
+const SENTRY_API_SCHEMA_SHA = '37723c61b7501af371d22b4418d884c756d7c46a';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 94d5103fb1a45c863945b3a45e4899c6922290d4 Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Thu, 29 Oct 2026 20:22:11 +0000
Subject: [PATCH 076/143] Bump API schema to 9785f730 (#20335)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 841c2365d76a1..8e65938346ad9 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '37723c61b7501af371d22b4418d884c756d7c46a';
+const SENTRY_API_SCHEMA_SHA = '9785f7302d868029274680f7942627b927dd23aa';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From a3adea33d79179ce36ede2903ed44fc2648ed3c5 Mon Sep 17 00:00:00 2001
From: "sentry-junior[bot]"
<264270552+sentry-junior[bot]@users.noreply.github.com>
Date: Fri, 30 Oct 2026 05:56:07 -0600
Subject: [PATCH 077/143] docs(js): Document dataCollection.mcp option (#20346)
---
.../common/configuration/options.mdx | 1 +
.../data-management/data-collected/index.mdx | 28 +++++++++++++++++--
.../common/mcp-monitoring/index.mdx | 8 ++++--
3 files changed, 32 insertions(+), 5 deletions(-)
diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx
index 0953eb5576478..68134bd8e631c 100644
--- a/docs/platforms/javascript/common/configuration/options.mdx
+++ b/docs/platforms/javascript/common/configuration/options.mdx
@@ -140,6 +140,7 @@ For more on what data Sentry collects and how to control it, see `variables`: Collect the variables that are passed to GraphQL operations.
The operation name and type are always collected. |
| `genAI` | `{ inputs?, outputs? }` | both `true` | `inputs`: Collect the content of generative AI inputs: system instructions, prompt messages, tool definitions, and tool call arguments.
`outputs`: Collect the content of generative AI outputs, such as completion text and tool call results.
Metadata, such as the model name and token counts, is always collected. Options set on an AI integration take precedence over these values. |
+| `mcp` | `{ inputs?, outputs? }` | both `true` | Available in SDK version `11.9.0` and above.
`inputs`: Collect the content of incoming MCP requests, such as tool call arguments, prompt arguments, and the payload of MCP logging notifications.
`outputs`: Collect the content of MCP responses, such as tool results and prompt result messages.
Metadata, such as the method name, the tool or prompt name, and error status, is always collected. A field you don't set falls back to the matching `genAI` field. The `recordInputs` and `recordOutputs` options of `wrapMcpServerWithSentry` take precedence over these values. |
| `databaseQueryData` | `boolean` | `true` | Collect the data associated with database queries: bound query parameters, data payloads for write operations, and returned result data.
The sanitized or parameterized query text (`db.query.text`) is **not** controlled by this option. Structural metadata, such as the database system, query summary, operation name, and table, is also **always** collected. |
| `queues` | `boolean` | `true` | Collect the arguments passed to tasks within queues. For Kafka, this is the message key. Structural metadata, such as the messaging system, the destination name, and the operation, is always collected. |
| `stackFrameVariables` | `CollectBehavior` | `true` | Capture local variable values in stack frames. Allow/deny lists match variable names. |
diff --git a/docs/platforms/javascript/common/data-management/data-collected/index.mdx b/docs/platforms/javascript/common/data-management/data-collected/index.mdx
index aee6cfbef1c6f..c7d4483e507aa 100644
--- a/docs/platforms/javascript/common/data-management/data-collected/index.mdx
+++ b/docs/platforms/javascript/common/data-management/data-collected/index.mdx
@@ -272,8 +272,6 @@ Sentry.init({
The content of generative AI inputs (system instructions, prompt messages, tool definitions, and tool call arguments) and outputs (such as completion text and tool call results) might carry personal data. By default, the SDK records both inputs and outputs. Metadata like model ID and token counts is always collected.
- The same setting applies to instrumented MCP servers. By default, the SDK records the inputs and outputs of tool calls, prompt retrievals, and resource reads. Use the `recordInputs` and `recordOutputs` options of `wrapMcpServerWithSentry` to control recording per server.
-
Use the `dataCollection.genAI` option to control this. For example, opt out of recording AI message content while keeping the metadata:
```JavaScript
@@ -287,6 +285,32 @@ Sentry.init({
},
});
```
+
+
+ ## MCP Server Inputs and Outputs
+
+ When you instrument an MCP server, metadata like the method name, the tool or prompt name, the session and protocol version, content counts, and error status is always sent to Sentry.
+
+ The content of MCP requests and responses might carry personal data, such as tokens, file paths, or private user content. By default, the SDK records both inputs (such as tool call arguments, prompt arguments, and the payload of MCP logging notifications) and outputs (such as tool results and prompt result messages).
+
+ Use the `dataCollection.mcp` option, available in SDK version `11.9.0` and above, to control this. For example, opt out of recording MCP content while keeping the metadata:
+
+ ```JavaScript
+ Sentry.init({
+ dsn: "___PUBLIC_DSN___",
+ dataCollection: {
+ mcp: {
+ inputs: false,
+ outputs: false,
+ },
+ },
+ });
+ ```
+
+ If you don't set a field of `dataCollection.mcp`, the SDK uses the matching `dataCollection.genAI` field instead. In SDK versions before `11.9.0`, `dataCollection.genAI` is the only global setting for MCP content.
+
+ To control recording for a specific server, use the `recordInputs` and `recordOutputs` options of `wrapMcpServerWithSentry`. They take precedence over the `dataCollection` settings.
+
diff --git a/docs/platforms/javascript/common/mcp-monitoring/index.mdx b/docs/platforms/javascript/common/mcp-monitoring/index.mdx
index 69cf07ee99ed3..8ff8b96d0a465 100644
--- a/docs/platforms/javascript/common/mcp-monitoring/index.mdx
+++ b/docs/platforms/javascript/common/mcp-monitoring/index.mdx
@@ -24,18 +24,20 @@ Support for `@modelcontextprotocol/server` 2.x requires Sentry JavaScript SDK ve
By default, the SDK sends the inputs and outputs of your MCP tool calls, prompt retrievals, and resource reads. This gives you rich debugging context. MCP payloads can carry sensitive data, such as tokens, file paths, or private user content. Review what your server handles before you deploy to production.
-The `dataCollection.genAI` option controls this recording globally for both MCP and AI instrumentation:
+The `dataCollection.mcp` option controls this recording globally for all MCP servers:
```javascript
Sentry.init({
dsn: "___PUBLIC_DSN___",
dataCollection: {
- genAI: { inputs: false, outputs: false },
+ mcp: { inputs: false, outputs: false },
},
});
```
-To control recording for a specific server, pass it to `wrapMcpServerWithSentry` with the `recordInputs` and `recordOutputs` options. These options override the `dataCollection.genAI` settings, and they also apply to a server the SDK has already instrumented automatically:
+The `dataCollection.mcp` option requires Sentry JavaScript SDK version `11.9.0` or newer. If you don't set a field of `dataCollection.mcp`, or you use an older SDK version, the matching `dataCollection.genAI` field controls MCP recording instead.
+
+To control recording for a specific server, pass it to `wrapMcpServerWithSentry` with the `recordInputs` and `recordOutputs` options. These options override the `dataCollection` settings, and they also apply to a server the SDK has already instrumented automatically:
```javascript
const server = Sentry.wrapMcpServerWithSentry(mcpServer, {
From e844071eb8c0e945b17169af83fb94ae7d332e6b Mon Sep 17 00:00:00 2001
From: "sentry-api-schema-updater[bot]"
<271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
Date: Fri, 30 Oct 2026 12:29:51 +0000
Subject: [PATCH 078/143] Bump API schema to 2722fa56 (#20351)
Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com>
---
src/build/resolveOpenAPI.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts
index 8e65938346ad9..9e70b3ef0c285 100644
--- a/src/build/resolveOpenAPI.ts
+++ b/src/build/resolveOpenAPI.ts
@@ -6,7 +6,7 @@ import {DeRefedOpenAPI, Parameter} from './open-api/types';
// SENTRY_API_SCHEMA_SHA is used in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
// DO NOT change variable name unless you change it in the sentry-docs GHA workflow in getsentry/sentry-api-schema.
-const SENTRY_API_SCHEMA_SHA = '9785f7302d868029274680f7942627b927dd23aa';
+const SENTRY_API_SCHEMA_SHA = '2722fa56ee463c55b08b4cfb8635325a8c7e95b4';
const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development';
From 3d8d539d9bb82a053d835a8b2d53193bae0dfbd3 Mon Sep 17 00:00:00 2001
From: Stefan Jandl
Date: Fri, 30 Oct 2026 13:35:38 +0100
Subject: [PATCH 079/143] docs(unity): Mention Linux ARM64 and the Linux
backends (#20342)
---
docs/platforms/unity/native-support/index.mdx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/platforms/unity/native-support/index.mdx b/docs/platforms/unity/native-support/index.mdx
index 8a35bba0cd9fa..8829ff789ce7f 100644
--- a/docs/platforms/unity/native-support/index.mdx
+++ b/docs/platforms/unity/native-support/index.mdx
@@ -56,7 +56,9 @@ The Native Support on macOS relies on the [macOS SDK](/platforms/apple/guides/ma
### Linux
-On Linux the Unity SDK includes the [Native SDK](/platforms/native/) with the breakpad backend. A minidump is created in process and no handler executable is required.
+On Linux the Unity SDK includes the [Native SDK](/platforms/native/) with the Breakpad backend by default. A minidump is created in process and no handler executable is required. With the experimental Native backend, which you can select with `options.Experimental.LinuxBackend = LinuxBackend.Native`, the SDK uploads crashes right away through the out-of-process `sentry-crash` handler, which the build copies next to the player.
+
+The Native SDK ships for `x86_64` and `ARM64`, and the build picks the one that matches the player's architecture. ARM64 is supported for dedicated servers built with IL2CPP on Unity 6000.3 and later. On both architectures, the Native SDK runs on distributions with older glibc versions, such as Ubuntu 22.04 and Debian 12.
## Debug Symbols
From 3b7bf0df25b354bf7fce855faa961f473e0fcd51 Mon Sep 17 00:00:00 2001
From: Stefan Jandl
Date: Fri, 30 Oct 2026 15:14:30 +0100
Subject: [PATCH 080/143] docs(unity): Describe how screenshots get captured
(#20340)
---
.../unity/configuration/options/index.mdx | 18 +++++-
.../enriching-events/screenshots/index.mdx | 63 ++++++++++++++++++-
.../platforms/unity/troubleshooting/index.mdx | 2 +-
docs/platforms/unity/user-feedback/index.mdx | 2 +-
4 files changed, 77 insertions(+), 8 deletions(-)
diff --git a/docs/platforms/unity/configuration/options/index.mdx b/docs/platforms/unity/configuration/options/index.mdx
index 23b124b910765..c3329cb13d27c 100644
--- a/docs/platforms/unity/configuration/options/index.mdx
+++ b/docs/platforms/unity/configuration/options/index.mdx
@@ -94,14 +94,20 @@ Grouping in Sentry is different for events with stack traces and without. As a r
-Takes a screenshot of the application when an error happens and includes it as an attachment.
+Attaches a screenshot of the game to events, such as errors and messages, and sends it in the same envelope as the event. Screenshots aren't attached in the Editor, in batch mode, or on WebGL.
Learn more about enriching events with screenshots in our Screenshots documentation.
-The quality of the attached screenshot. It can be set to `full`, `high`, `medium` or `low`.
+The resolution of the attached screenshot. `Full` keeps the game's resolution, while `High`, `Medium`, and `Low` scale it down so that its longest side is at most 1920, 1280, or 854 pixels.
+
+
+
+
+
+The JPEG quality of the attached screenshot, from 1 to 100. Higher values result in better quality and larger files.
@@ -191,7 +197,13 @@ By the time is executed,
-A callback function that controls screenshot capture behavior. Return `false` to prevent a screenshot from being captured for a specific event. This allows for fine-grained control over when screenshots are included with error reports.
+A callback function that controls screenshot capture behavior. Return `false` to prevent a screenshot from being attached to a specific event. It can run on a background thread and runs before and sampling. Learn more in our Screenshots documentation.
+
+
+
+
+
+A callback function that receives the screenshot as a `Texture2D` before it gets compressed, along with the event it belongs to. Modify or replace the texture and return it, or return `null` to discard the screenshot. Setting it makes the SDK read and compress screenshots on the main thread. Learn more in our Screenshots documentation.
diff --git a/docs/platforms/unity/enriching-events/screenshots/index.mdx b/docs/platforms/unity/enriching-events/screenshots/index.mdx
index d84cbce3b0a78..514fba3fadf24 100644
--- a/docs/platforms/unity/enriching-events/screenshots/index.mdx
+++ b/docs/platforms/unity/enriching-events/screenshots/index.mdx
@@ -22,12 +22,33 @@ Or, like so, if you're [configuring things programmatically](/platforms/unity/co
options.AttachScreenshot = true;
```
-## Screenshot capture mechanism
+Screenshots aren't attached in the Editor, in batch mode, or on WebGL.
+
+## Screenshot Capture Mechanism
Since the Unity SDK internally consists of multiple SDKs, the mechanism with which a screenshot gets captured depends on where the error originates.
-- C# errors from within your game will be captured through Unity's built-in [ScreenCapture](https://docs.unity3d.com/ScriptReference/ScreenCapture.html). This means that screenshots only contain things visible within your game. Overlays on top of your game will not be visible.
-- Native errors get captured by their respective SDK. If you're using a native plugin to display an overlay and an error occurs then that SDK will try to capture a screenshot that contains the overlay.
+### C# Errors
+
+Events captured by the C# SDK, such as exceptions, messages, and errors logged through `Debug.LogError`, get a screenshot. Transactions and user feedback don't. The SDK captures the screenshot through Unity's built-in [ScreenCapture](https://docs.unity3d.com/ScriptReference/ScreenCapture.html), so it only contains what your game renders. Overlays on top of your game aren't visible.
+
+The SDK takes the screenshot at the end of the frame, so it shows the fully rendered frame. Events captured on background threads get a screenshot as well, taken at the end of a following frame. Events captured while a screenshot is still being taken, for example several errors within the same frame, share it. Events that get dropped by or sampling don't trigger a screenshot.
+
+The screenshot gets scaled down according to `ScreenshotQuality` and compressed to JPEG according to `ScreenshotCompression`, and is attached as `screenshot.jpg`. It's sent in the same envelope as the event it belongs to. If the event gets dropped, for example because of rate limiting, its screenshot gets dropped along with it.
+
+To keep the cost of an error low, the main thread only issues the capture to the GPU. Where the device supports [asynchronous GPU readback](https://docs.unity3d.com/ScriptReference/SystemInfo-supportsAsyncGPUReadback.html), the SDK reads the screenshot back [asynchronously](https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadback.html) and compresses it on a background thread. Otherwise, or when is set, it reads and compresses the screenshot on the main thread. On Nintendo Switch, screenshots are always read on the main thread.
+
+If the screenshot can't be taken, for example because the main thread doesn't reach the end of the frame within one second while it's blocked or the app is in the background, the event gets sent without it.
+
+### Native Errors
+
+| Platform | Screenshot for native errors and crashes |
+| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
+| iOS | Captured by sentry-cocoa, only with build time initialization |
+| Windows | Captured by sentry-native when the game crashes |
+| Android, macOS, Linux | None |
+
+These screenshots are taken by the native SDK, so they include overlays, and and don't apply to them.
@@ -35,6 +56,42 @@ Screenshots might contain PII of your app. For example, if your game has a regis
+## Customize Screenshot Capturing
+
+To decide whether an event gets a screenshot, use . It runs on the thread that captured the event, which can be a background thread, so don't call the Unity API from within it:
+
+```csharp
+options.SetBeforeCaptureScreenshot(sentryEvent =>
+{
+ // Don't attach screenshots while the payment screen is open
+ return !PaymentScreen.IsOpen;
+});
+```
+
+## Modifying or Discarding Screenshots
+
+To edit a screenshot before it's sent, for example to black out sensitive areas, or to discard it, use :
+
+```csharp
+options.SetBeforeSendScreenshot((screenshot, sentryEvent) =>
+{
+ // Return null to discard the screenshot instead
+ return screenshot;
+});
+```
+
+The callback runs once per screenshot, and events that share a screenshot also share the result.
+
+
+
+Since hands out the screenshot as a `Texture2D`, setting it makes the SDK read and compress every screenshot on the main thread, which stalls your game.
+
+
+
+## User Feedback
+
+Automatic screenshots don't get attached to user feedback. To attach one, pass `addScreenshot: true` to `SentrySdk.CaptureFeedback`. The SDK takes the screenshot right away, so call it from the main thread, ideally after `WaitForEndOfFrame`, so the frame is fully rendered. Feedback screenshots don't depend on , aren't passed to the screenshot callbacks, and are also taken in the Editor. Learn more in User Feedback.
+
## Viewing Screenshots
If one is available, you'll see a thumbnail of the screenshot when you click on a specific issue from the [**Issues**](https://demo.sentry.io/issues/) page.
diff --git a/docs/platforms/unity/troubleshooting/index.mdx b/docs/platforms/unity/troubleshooting/index.mdx
index f7a1319aa7946..57557090d8f44 100644
--- a/docs/platforms/unity/troubleshooting/index.mdx
+++ b/docs/platforms/unity/troubleshooting/index.mdx
@@ -96,4 +96,4 @@ Outside of this helper function, Sentry is unaware of any **real world** crash t
### Screenshot contain artifacts
-The screenshot capture relies on Unity's `ScreenCapture.CaptureScreenshotIntoRenderTexture` function. When capturing errors in the Editor, this might lead to artifacts or scaling issues in the captured screenshot.
+The screenshot capture relies on Unity's `ScreenCapture.CaptureScreenshotIntoRenderTexture` function. In the Editor, the SDK only takes screenshots for user feedback, and these can contain artifacts or scaling issues.
diff --git a/docs/platforms/unity/user-feedback/index.mdx b/docs/platforms/unity/user-feedback/index.mdx
index 02cd797a35a4d..ecb9177e7eba7 100644
--- a/docs/platforms/unity/user-feedback/index.mdx
+++ b/docs/platforms/unity/user-feedback/index.mdx
@@ -27,7 +27,7 @@ The Unity SDK includes a ready-to-use prefab that provides a complete user feedb
- Name (optional)
- Email (optional)
- Message/feedback (required)
- - Screenshot (optional, taken automatically)
+ - Screenshot (optional, included by default and the user can uncheck it; the form hides itself before the screenshot gets taken)
### Adding the Prefab to Your Scene
From 5afe93bd31a595d8fa7f843228644721eb984fc7 Mon Sep 17 00:00:00 2001
From: Stefan Jandl
Date: Fri, 30 Oct 2026 15:14:46 +0100
Subject: [PATCH 081/143] docs(unity): Add Unity as a Library page (#20341)
---
.../programmatic-configuration/index.mdx | 5 +-
docs/platforms/unity/native-support/index.mdx | 11 +-
.../unity-as-a-library/index.mdx | 135 ++++++++++++++++++
3 files changed, 149 insertions(+), 2 deletions(-)
create mode 100644 docs/platforms/unity/native-support/unity-as-a-library/index.mdx
diff --git a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx
index 45e71f9d67d25..4c5e2b9bb8420 100644
--- a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx
+++ b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx
@@ -54,13 +54,16 @@ public override void Configure(SentryUnityOptions options)
### Initialize Native SDKs first when targeting iOS or Android
On mobile, the Unity SDK automatically modifies the generated Xcode and Gradle project to also contain the Cocoa and Java SDK respectively. These SDKs are capable of self-initializing before the Unity engine itself is started. This allows us to capture bugs/crashes happening within the engine itself.
-There are two initialization types:
+There are three initialization types:
- `NativeInitializationType.Runtime`: Native SDKs initialize during runtime alongside the C# SDK
- `NativeInitializationType.BuildTime`: Native SDKs initialize before Unity engine starts
+- `NativeInitializationType.External`: The app that embeds the game provides and initializes the native SDKs, when using Unity as a Library
### Runtime Initialization (Default)
+
With runtime initialization, the native SDKs are initialized at runtime alongside the C# SDK. This allows all options to be dynamically configured through C# code during execution.
### Build Time Initialization
+
When using build time initialization, the native SDKs are configured during build time and initialize before the Unity engine starts. This means the options are baked into the outputted projects and cannot be modified at runtime via C# code. Changes to properties like `Release` and `Environment` will not apply to events generated by the native SDKs.
diff --git a/docs/platforms/unity/native-support/index.mdx b/docs/platforms/unity/native-support/index.mdx
index 8829ff789ce7f..db80c74fd259e 100644
--- a/docs/platforms/unity/native-support/index.mdx
+++ b/docs/platforms/unity/native-support/index.mdx
@@ -15,19 +15,22 @@ The native crash support for Android and iOS is provided by adding platform-spec
### Initialization of the Native SDKs
The [iOS SDK](/platforms/apple/guides/ios/) and [Android SDK](/platforms/android/) are capable of self-initializing before the Unity engine itself is started. This allows us to capture bugs/crashes happening within the engine itself.
-There are two initialization types:
+There are three initialization types:
- `NativeInitializationType.Runtime`: Native SDKs initialize during runtime alongside the C# SDK
- `NativeInitializationType.BuildTime`: Native SDKs initialize before Unity engine starts
+- `NativeInitializationType.External`: The app that embeds the game provides and initializes the native SDKs, when using Unity as a Library
### Runtime Initialization (Default)
With runtime initialization, the native SDKs are initialized at runtime alongside the C# SDK. This allows all options to be dynamically configured through C# code during execution.
#### Android
+
At build time, the SDK modifies the generated Gradle project to include the Android SDK but sets `io.sentry.auto-init` in the `AndroidManifest.xml` to `false`. The Unity SDK will then initialize the Android SDK when it initializes itself.
#### iOS
+
At built time, the SDK modifies the generated Xcode project to include the iOS SDK but will not modify the `main.m` file or write the options to file. The Unity SDK will then initialize the iOS SDK when it initializes itself.
### Build Time Initialization
@@ -35,13 +38,19 @@ At built time, the SDK modifies the generated Xcode project to include the iOS S
When using build time initialization, the native SDKs are configured during build time and initialize before the Unity engine starts. This means the options are baked into the outputted projects and cannot be modified at runtime via C# code. Changes to properties like `Release` and `Environment` will not apply to events generated by the native SDKs.
#### Android
+
The SDK modifies the generated Gradle project to include the Android SDK. At build time, it will also write the options to the `AndroidManifest.xml`. These options cannot be changed at runtime. Changes to the options in the configuration callback will not affect the Android SDK.
#### iOS
+
The SDK modifies the generated Xcode project to include the iOS SDK. It adds the initialization code to the `main.m` and generates the options provided by the editor configuration window as `SentryOptions.m`. The SDK also copies the `SentryNativeBridge` that enables the C# layer to communicate with the iOS SDK. This means that there's no need to use the Unity [built-in crash reporting](https://docs.unity3d.com/ScriptReference/CrashReport.html) functionality.
The [iOS SDK](/platforms/apple/guides/ios/) supports capturing Objective-C exceptions which are disabled in the generated Xcode project by default. Consider enabling them in the "Build Settings" tab by setting `GCC_ENABLE_OBJC_EXCEPTIONS` to true.
+### External Initialization
+
+When your game runs inside an iOS or Android app with Unity as a Library, the app owns the native SDK. The Unity SDK doesn't bundle it and attaches to the one the app initialized. On Android, a game running in a separate process initializes it there. Learn more in Unity as a Library.
+
## Desktop
The native support is configured and enabled as early as possible by the C# layer, right after the Unity engine starts. This is slightly different from on mobile where we inject native initialization code that runs before the Unity engine runs.
diff --git a/docs/platforms/unity/native-support/unity-as-a-library/index.mdx b/docs/platforms/unity/native-support/unity-as-a-library/index.mdx
new file mode 100644
index 0000000000000..343ee2d91f537
--- /dev/null
+++ b/docs/platforms/unity/native-support/unity-as-a-library/index.mdx
@@ -0,0 +1,135 @@
+---
+title: Unity as a Library
+description: "Learn how to use the Unity SDK when your game runs inside an iOS or Android app with Unity as a Library."
+sidebar_order: 10
+---
+
+With [Unity as a Library](https://docs.unity3d.com/Manual/UnityasaLibrary.html), you export your game and embed it into a native iOS or Android app. When that app already uses Sentry, the Unity SDK doesn't bundle its own sentry-cocoa or sentry-android SDK. It attaches to the app's SDK or, when the game runs in a separate Android process, starts one there. Both report to Sentry together: native crashes in the game carry the game's context and breadcrumbs, and the game's C# events use the app's release, environment, user, and trace.
+
+
+
+Support for Unity as a Library is experimental. Its behavior may change between releases.
+
+
+
+## Requirements
+
+- Unity SDK 4.12.0 or later
+- On iOS: an app that uses the [Sentry Apple SDK](/platforms/apple/guides/ios/) (sentry-cocoa) 9.25.0 or later
+- On Android: an app that depends on `io.sentry:sentry-android` 8.59.0 or later, and a game built with IL2CPP
+
+## Set Up the App
+
+The app initializes Sentry before it loads the game. Use the same DSN as in the game, so all events end up in one project and get symbolicated with the debug symbols uploaded for both.
+
+```swift {tabTitle:iOS (Swift)} {mdExpandTabs}
+import Sentry
+import UIKit
+
+@main
+class AppDelegate: UIResponder, UIApplicationDelegate {
+ func application(_ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
+ SentrySDK.start { options in
+ options.dsn = "___PUBLIC_DSN___"
+ }
+
+ // Load UnityFramework afterwards
+ return true
+ }
+}
+```
+
+```kotlin {tabTitle:Android (Kotlin)}
+import android.app.Application
+import android.os.Build
+import io.sentry.android.core.SentryAndroid
+import java.io.File
+
+class MyApplication : Application() {
+ override fun onCreate() {
+ super.onCreate()
+
+ // Only in the main process, so the game starts its own SDK when it runs in a separate process
+ if (!isMainProcess()) return
+
+ SentryAndroid.init(this) { options ->
+ options.dsn = "___PUBLIC_DSN___"
+ }
+ }
+
+ private fun isMainProcess(): Boolean {
+ val processName = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
+ Application.getProcessName()
+ } else {
+ File("/proc/self/cmdline").readText().trimEnd('\u0000')
+ }
+ return processName == packageName
+ }
+}
+```
+
+On Android, the app's Gradle project depends on `io.sentry:sentry-android` and includes the exported `unityLibrary`. Also:
+
+- Initialize Sentry in the main process only, as shown above. `Application.onCreate` runs in every process of the app, so otherwise a game running in a separate process attaches to an SDK started with the app's options.
+- When the game runs in a separate process, don't set a custom `cacheDirPath`.
+
+To learn more about setting up the app, see the [Apple](/platforms/apple/guides/ios/) and [Android](/platforms/android/) SDK docs, and Unity's guides for [iOS](https://docs.unity3d.com/Manual/UnityasaLibrary-iOS.html) and [Android](https://docs.unity3d.com/Manual/UnityasaLibrary-Android.html).
+
+## Set Up the Game
+
+Set the native initialization type to `External` through [programmatic configuration](/platforms/unity/configuration/options/programmatic-configuration/), and keep native support enabled in **Tools > Sentry > Advanced > Native Support**:
+
+```csharp
+public override void Configure(SentryUnityOptions options)
+{
+ options.IosNativeInitializationType = NativeInitializationType.External;
+ options.AndroidNativeInitializationType = NativeInitializationType.External;
+}
+```
+
+The SDK also reads this setting when it builds and exports the game. Set it unconditionally, or behind a compile-time symbol such as a custom scripting define for your Unity as a Library exports, but not behind a runtime check like `Application.isEditor`. Otherwise, the export includes the Sentry native SDK as if it were a standalone game.
+
+If the game runs in the app's process and the app hasn't initialized Sentry by the time the game starts, the SDK logs `The native SDK is expected to be initialized by the app but it is not` and only reports C# events, with the release and environment set in Unity.
+
+## What Changes in the Export
+
+On iOS:
+
+- The export doesn't include the Sentry framework. The game uses the app's sentry-cocoa.
+- Debug symbols get uploaded from the `UnityFramework` target.
+- When you switch to or from `External`, export with **Replace** instead of **Append**.
+
+On Android:
+
+- The exported `unityLibrary` doesn't contain the Sentry AARs or any `io.sentry` entries in its `AndroidManifest.xml`, since its manifest merges into the app's.
+- The SDK's ProGuard rules stay in the library's consumer ProGuard files.
+- Debug symbols get uploaded when the app builds `unityLibrary`. The app minifies the code, so it uploads its own ProGuard mapping, for example with the [Sentry Android Gradle Plugin](/platforms/android/configuration/gradle/).
+
+## What the Game Shares With the App
+
+On iOS, and on Android when the game runs in the app's main process, the game attaches to the app's SDK:
+
+- **Release and environment**: The game's events use the app's release and environment, unless you set them in Unity, through the **Override Release** and **Override Environment** fields or programmatically.
+- **User**: The game's events use the app's user (ID, username, email, and IP address). A user that the game sets takes precedence for its own events, but doesn't reach the app, so native crashes carry the app's user.
+- **Trace**: The game's events and logs continue the app's trace. Transactions that you start with `SentrySdk.StartTransaction` and a name and operation, as well as the SDK's automatic startup and scene loading transactions, join it. Transactions started with a `TransactionContext` start their own trace.
+- **Scope**: The game's breadcrumbs, tags, extras, and Unity contexts go into the app's scope, so native crashes in the game carry them. Tags set by the game also show up on the app's events.
+- **Sessions**: The app tracks sessions, so the game doesn't.
+
+Options that you set in Unity don't apply to the app's native SDK.
+
+## Android: Main Process or Separate Process
+
+On Android, the game can run in the app's main process, or in a separate process like `:Unity`, as in Unity's sample.
+
+- **Main process**: The game attaches to the sentry-android SDK that the app initialized. The app's SDK reports native crashes on the next launch of the app.
+- **Separate process**: The app's SDK isn't running in the game's process, so the game initializes sentry-android there with the options set in Unity.
+ - The game takes the app's release and environment when it starts, and the app's user and trace when it starts and whenever it resumes. It reads them from the app's SDK cache, which requires the same DSN.
+ - The game's user, breadcrumbs, tags, and contexts go to the game's own SDK. Its native crashes carry them, and the app's events don't get the game's tags.
+ - The game's SDK reports native crashes the next time the game starts, so a crash isn't reported if the game never gets opened again. On Android 11 and later, the app's SDK reports ANRs of both processes the next time the app starts.
+
+## Known Limitations
+
+- Changes to the app's user reach the game's logs the next time the game resumes.
+- In a separate process, the game doesn't keep the app's sampling decision for the trace it continues.
+- Unloading the game keeps the Unity SDK running, and reloading doesn't initialize it again.
From d5a032a485a1e5d2bbf66ff15bacb2a79a013237 Mon Sep 17 00:00:00 2001
From: Stefan Jandl
Date: Fri, 30 Oct 2026 15:15:09 +0100
Subject: [PATCH 082/143] docs(unity, native, unreal): Fix app hang docs
(#20339)
---
.../android/configuration/using-ndk.mdx | 4 +-
docs/platforms/native/app-hangs.mdx | 43 +++++++++++++++++-
.../native/common/configuration/options.mdx | 4 +-
docs/platforms/unity/app-hangs.mdx | 43 ++++++++++++++----
.../app-not-responding/img/unity-anr.png | Bin 40998 -> 0 bytes
.../unity/configuration/options/index.mdx | 6 +--
docs/platforms/unreal/app-hangs.mdx | 37 +++++++++++----
.../unreal/configuration/options.mdx | 4 +-
middleware.ts | 4 ++
9 files changed, 116 insertions(+), 29 deletions(-)
delete mode 100644 docs/platforms/unity/configuration/app-not-responding/img/unity-anr.png
diff --git a/docs/platforms/android/configuration/using-ndk.mdx b/docs/platforms/android/configuration/using-ndk.mdx
index 9e5fa65714f39..a3b851fc57013 100644
--- a/docs/platforms/android/configuration/using-ndk.mdx
+++ b/docs/platforms/android/configuration/using-ndk.mdx
@@ -89,7 +89,7 @@ The NDK integration can detect when a native or game thread stops responding, ev
-NDK app hang detection is experimental. It requires Sentry Android SDK version `8.48.0` or later and the NDK integration.
+NDK app hang detection is experimental. It requires Sentry Android SDK version `8.49.0` or later and the NDK integration.
@@ -121,6 +121,8 @@ void game_loop(void) {
The first heartbeat chooses the monitored thread. If it misses heartbeats for the configured timeout, the NDK integration captures an app hang event with that thread's stack trace. The timeout defaults to `5000` ms and has a minimum of `1000` ms.
+To pause detection, for example while your app is in the background, call `sentry_app_hang_pause()` from native code. The next heartbeat from the monitored thread resumes it. `sentry_app_hang_pause()` requires Sentry Android SDK version `8.52.0` or later.
+
Android ANR detection remains independent. If the same freeze blocks both the Android UI thread and your monitored native thread, Sentry can report both an ANR and an app hang.
You can also configure these options in `AndroidManifest.xml`, which is useful when the SDK initializes automatically:
diff --git a/docs/platforms/native/app-hangs.mdx b/docs/platforms/native/app-hangs.mdx
index d8caeed50f033..077d439e2dd12 100644
--- a/docs/platforms/native/app-hangs.mdx
+++ b/docs/platforms/native/app-hangs.mdx
@@ -13,7 +13,7 @@ In-process app-hang detection is experimental and may change in a future release
An unresponsive application is one of the most frustrating experiences for your users. A long-running computation, a blocking I/O call, or an infinite loop on a critical thread can freeze your app without ever crashing, so it never surfaces as an error. App-hang detection catches these cases and reports them to Sentry as app-hang events.
-On macOS, Windows, Linux, and Android, the Native SDK detects hangs entirely in-process: a background watchdog thread monitors a single thread of your choosing and captures an event when that thread stops making progress. Because the SDK can't know which of your threads represents responsiveness, you tell it by sending heartbeats from the thread you want watched (typically your UI or main loop).
+On macOS, Windows, Linux, and Android, the Native SDK detects hangs entirely in-process: a background watchdog thread monitors a single thread of your choosing and captures an event when that thread stops making progress. On other platforms, `sentry_app_hang_heartbeat()` and `sentry_app_hang_pause()` do nothing. Because the SDK can't know which of your threads represents responsiveness, you tell it by sending heartbeats from the thread you want watched (typically your UI or main loop).
## Enabling App-Hang Detection
@@ -49,7 +49,7 @@ The minimum `app_hang_timeout` is `1000` ms. Setting a lower value (including `0
-If the watched thread doesn't send a heartbeat within the configured [`app_hang_timeout`](/platforms/native/configuration/options/#app_hang_timeout), the watchdog samples the hung thread's stack trace and captures an app-hang event.
+If the watched thread doesn't send a heartbeat within the configured [`app_hang_timeout`](/platforms/native/configuration/options/#app_hang_timeout), the watchdog samples the hung thread's stack trace and captures an app-hang event. The watchdog checks every 500 ms, so the event arrives up to 500 ms after the timeout.
## How Heartbeats Work
@@ -58,5 +58,44 @@ The SDK monitors exactly one thread, chosen at runtime by your heartbeats:
- **The first call to `sentry_app_hang_heartbeat()` latches the calling thread** as the monitored thread. Make sure the first heartbeat comes from the thread most representative of responsiveness, such as your UI or main loop.
- **Heartbeats from any other thread are ignored.** Only the latched thread is watched.
- **Calls are no-ops unless app-hang detection is enabled** via `sentry_options_set_enable_app_hang_tracking()`, so you can leave the heartbeat calls in place even when the feature is turned off.
+- **Detection starts with the first heartbeat.** The SDK doesn't report hangs that happen before it, for example during startup.
+- **The monitored thread stays the same until `sentry_close()`.** After you initialize the SDK again, the next first heartbeat chooses the thread anew.
+- **Each freeze is reported once.** The watched thread has to send a heartbeat again before the SDK reports another hang. The SDK doesn't send an event when the hang ends.
Because detection relies on heartbeats, place them where they reflect your application's responsiveness, for example, at the top of each iteration of your main loop. A thread that's busy but still ticking the loop will keep sending heartbeats; a thread genuinely stuck past the timeout will not.
+
+## Pausing Detection
+
+When the watched thread stops sending heartbeats on purpose, for example while your app is in the background or its main loop is suspended, call `sentry_app_hang_pause()` so the SDK doesn't report it as a hang. You can call it from any thread:
+
+```c
+void on_enter_background(void) {
+ sentry_app_hang_pause();
+}
+```
+
+The next regular heartbeat from the watched thread resumes detection. Only call `sentry_app_hang_heartbeat()` from the watched thread, not from lifecycle callbacks that run on other threads. If such a callback sends the first heartbeat, the SDK watches the callback's thread instead.
+
+`sentry_app_hang_pause()` is available since version `0.16.1`.
+
+## App-Hang Events
+
+App-hang events have:
+
+- the level `error` and the message `App hung for at least ms.`, where the duration is the time since the last heartbeat, not the length of the whole freeze
+- an exception of type `AppHang` with the watched thread's stack trace
+- the mechanism `AppHang`, marked as handled
+
+Upload your [debug information files](/platforms/native/data-management/debug-files/) to symbolicate the stack trace. The SDK captures these events on its watchdog thread, so `before_send` and sampling apply and run on that thread.
+
+To find app-hang events, search for:
+
+```
+error.mechanism.type:AppHang
+```
+
+## Limitations
+
+- If the SDK can't capture the watched thread's stack trace, it doesn't send an event.
+- On Linux and Android, the SDK captures the stack trace through the real-time signal `SIGRTMIN+4`. If the watched thread blocks this signal, or another library handles it, the SDK can't capture the stack trace.
+- On Windows, stack traces are validated on x64. On x86 and ARM64, they might be incomplete.
diff --git a/docs/platforms/native/common/configuration/options.mdx b/docs/platforms/native/common/configuration/options.mdx
index 5220c6c43ce33..384cda807feed 100644
--- a/docs/platforms/native/common/configuration/options.mdx
+++ b/docs/platforms/native/common/configuration/options.mdx
@@ -174,13 +174,13 @@ These options control in-process app-hang detection. See the [App Hangs page](/p
Enables or disables in-process app-hang detection. When enabled, a background watchdog thread monitors heartbeats from the watched thread. If no heartbeat is received within `app_hang_timeout`, an app-hang event is captured and sent to Sentry.
-Must be combined with regular calls to `sentry_app_hang_heartbeat()` from the thread you want monitored. The first heartbeat latches the calling thread as the monitored thread; heartbeats from any other thread are ignored.
+Must be combined with regular calls to `sentry_app_hang_heartbeat()` from the thread you want monitored. The first heartbeat latches the calling thread as the monitored thread; heartbeats from any other thread are ignored. To pause detection while the thread stops sending heartbeats on purpose, call `sentry_app_hang_pause()` (available since `0.16.1`).
-Sets the app-hang detection timeout, in milliseconds. If `enable_app_hang_tracking` is enabled and no heartbeat is received from the monitored thread within this window, an app-hang event is captured.
+Sets the app-hang detection timeout, in milliseconds. If `enable_app_hang_tracking` is enabled and no heartbeat is received from the monitored thread within this window, an app-hang event is captured. The minimum is `1000` ms; the SDK raises lower values, including `0`, to `1000` ms.
diff --git a/docs/platforms/unity/app-hangs.mdx b/docs/platforms/unity/app-hangs.mdx
index e93871ef75c22..587c7afff7d02 100644
--- a/docs/platforms/unity/app-hangs.mdx
+++ b/docs/platforms/unity/app-hangs.mdx
@@ -9,32 +9,59 @@ An app hang occurs when the Unity main thread stops making progress. On Android,
## App Hangs
-### Native App Hangs
+
-On Android, Windows, Linux, and macOS with the native backend, the SDK provides app hang tracking through the `EnableAppHangTracking` option. It uses sentry-native and is disabled by default. On Android, it also requires `NdkIntegrationEnabled`. The timeout is `AppHangTimeout`, which defaults to 5 seconds.
+App hang tracking is experimental. Its behavior may change between releases.
-These options are available on the Editor Configuration Window in `Advanced` -> `Automatic Behaviour` or programmatically
+
+
+App hang tracking is disabled by default. Enable it on the Editor Configuration Window in **Advanced** > **Automatic Behaviour** > **App Hang Tracking**, or programmatically:
```csharp
options.EnableAppHangTracking = true;
options.AppHangTimeout = TimeSpan.FromSeconds(5);
```
-On Android with the NDK integration and on sentry-native desktop platforms, the SDK adds a background watchdog and automatically emits heartbeats from the Unity main thread. Cocoa tracks app hangs directly. When app hang tracking is configured, the SDK removes the managed watchdog to avoid duplicate events.
+`AppHangTimeout` is how long the main thread must be blocked before the SDK reports an app hang. It defaults to 5 seconds.
+
+The detector depends on the platform:
+
+| Platform | Detected by | Requirements |
+| -------------- | -------------------------------------------------------- | ---------------------------------------------------------- |
+| Android | sentry-native | IL2CPP and `NdkIntegrationEnabled`, which is on by default |
+| iOS | sentry-cocoa | |
+| macOS | sentry-cocoa, or sentry-native with the `Native` backend | IL2CPP for the default `Cocoa` backend |
+| Windows, Linux | sentry-native | |
+
+App hangs aren't detected in the Editor or on WebGL.
+
+You can find the macOS backend in **Advanced** > **Experimental** > **macOS Backend** and `NdkIntegrationEnabled` in **Advanced** > **Native Support**.
+
+### How Detection Works With sentry-native
+
+On Android, Windows, Linux, and macOS with the `Native` backend, a coroutine on the Unity main thread sends a heartbeat to sentry-native once per second. If no heartbeat arrives within `AppHangTimeout`, sentry-native's background watchdog captures an event with the main thread's stack trace. Each freeze is reported once.
+
+- The first heartbeat is sent after the first frame, so the splash screen and loading the first scene aren't reported as app hangs. Blocking scene loads later on are.
+- Detection pauses while the game is in the background or loses focus, and resumes with the next heartbeat. A desktop game that keeps running in an unfocused window isn't watched.
+- Keep `AppHangTimeout` at 2 seconds or more. With heartbeats one second apart, a shorter timeout reports ordinary frame hitches as app hangs.
+
+These events have the message `App hung for at least ms.`, where the duration is the time since the last heartbeat.
### App Hangs on iOS and macOS
-On iOS and macOS, `EnableAppHangTracking` enables app hang tracking through sentry-cocoa. It is disabled by default. The timeout is `AppHangTimeout`, which defaults to 5 seconds. When targeting macOS you can select the native SDK used to `Native` to utilize sentry-native as well.
+With sentry-cocoa, `EnableAppHangTracking` and `AppHangTimeout` configure sentry-cocoa's own app hang tracking. To learn how it detects and reports app hangs, see [Apple app hangs](/platforms/apple/guides/ios/configuration/app-hangs/).
## ANRs
### Android JVM ANRs
-`AndroidNativeAnrEnabled` controls JVM ANR detection and defaults to `true`. Below Android 11, it uses an in-process watchdog. On Android 11 and later, it reads the operating system's ANR exit information on the next app start. The app hang detection runs alongside JVM ANR detection, so a freeze that blocks both threads can create an ANR and an `AppHang` event.
+`AndroidNativeAnrEnabled` controls JVM ANR detection and defaults to `true`. Below Android 11, it uses an in-process watchdog. On Android 11 and later, it reads the operating system's ANR exit information on the next app start. To report historical ANRs or attach thread dumps, see `AndroidReportHistoricalAnrs` and `AndroidAttachAnrThreadDump` in the options.
+
+App hang detection runs alongside JVM ANR detection, so a freeze that blocks both threads can create an ANR and an `AppHang` event.
### Unity Watchdog
-The managed Unity watchdog is deprecated and disabled by default. Configure its timeout with `AnrTimeout`, which defaults to 5 seconds. Disable it in code with `DisableAnrIntegration()` or through the editor's `AnrDetectionEnabled` setting.
+The managed Unity watchdog is deprecated and disabled by default. Use app hang tracking instead. The watchdog can only be enabled in the Editor Configuration Window in **Advanced** > **Automatic Behaviour** > **C# Watchdog (Deprecated)**, where you can also configure its timeout. When app hang tracking is enabled, the SDK removes the watchdog to avoid duplicate events.
The watchdog uses a coroutine and a background thread. It detects a stalled Unity main thread, but cannot capture that thread's stack trace. Its events use the `MainThreadWatchdog` mechanism.
@@ -46,6 +73,6 @@ To find app hang events, search for:
error.mechanism.type:AppHang
```
-Android JVM ANRs remain independent. Filter them with `ANR`, `AppExitInfo`, or `HistoricalAppExitInfo`.
+Android JVM ANRs are separate events. Filter them with `ANR`, `AppExitInfo`, or `HistoricalAppExitInfo`. Events from the deprecated Unity watchdog use `MainThreadWatchdog`.
For Android NDK implementation details, see [Android NDK app hang detection](/platforms/android/configuration/using-ndk/#app-hang-detection). For Apple behavior, see [Apple app hangs](/platforms/apple/guides/ios/configuration/app-hangs/).
diff --git a/docs/platforms/unity/configuration/app-not-responding/img/unity-anr.png b/docs/platforms/unity/configuration/app-not-responding/img/unity-anr.png
deleted file mode 100644
index 5ad731aad2e479a29e6b88154fe3eda84352ff16..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 40998
zcmeEtWmlX*(gubix~r<2Xk|rdEDTZ%1Ox;u8L)&Z0s;~Q0pZmI8WOyvq@sou
z-hiMiuP!NX;|y>4|3Ck48BkVMh68eNa1am>{139ezCQc|4-XF~CnpmV6TDqpTRSKy
zNI*cq*w|Rg*bfKkd
zLIPZJ;2Q8URS_D}3D`f9mf#5u-4KoU0pOfP-SKAvI?
z3Ri$jf$jv>aYaCQga7Xr5g{|17y*F_K}JGU-D~-%%SKtxCX?>-^$+9gA447IiRQuf
zoez9-@%1aVl2XqZlr0-l@&m`^d*xB@Ty6Icgi0;cmr`Bxz(-7x?rHOCfGGG%jtT05g={%4ROWh-BPDgDb!6Ucyfk!%DZRVKhJ7`2_>}G
zn2i|ozkh~gr3WfCRB&;;nvdwpE~+JI<2JLU%`wvAF;QbJs*hXnF1I6m#l_MxzBEHmZKuq##^l=^Y>COiu4
zZ5hoI{q&_+Pny9Vf6D1iuK{i1Q2XlSF>`@GFhC%$Ew`MZtx5i}Xew5J+b9SteUeBP?4
z=Z|hBOSA{?=K8Eb@cG%-6*@3`@KM`o5DS`?^@}z9#D)IFRWT{RtztNu`$w@>mH)|A
z0$P|AltXwRAMc%nkmwfYNp%cjb-HXJK!-LdL8`54t0SZ}{EsGXguyFknud$!m4Xe5
z5X*nPI|Nmc`<1pQApI{snz37d4Ox2I5q
ze3o+l@dR)KF>jji6o?P+&C?9`t31iT+>lRL-ZXs!JjA}y#4rn<5}n-Zq4
z1|<$8=N@ec){x3M2lsg^~3f_=f($~@#sUT$7)*2>CW)^1+PULVP+
zy3qO%o#B#790Ls3p&ab{_tM{s(O&aOjF`!hDynkyvIG`(pKf8l7SC*h&f!>3%eqR<
z3l9oA2U1a(67>zfA(LW=N8pb&C^JI?49`eLe)%ane;2<4H@}qS-pPEnyZf?U8osFf
z;)w+1%q7uFjGUdRN~`a~aDPce%Px*$scWCsR|Cb_R@BM5_L}_tMZcr&3>L6v0YPkM0a7M
z51mAYMIz5Ngdx9<#4!jp?JE*@5}ASf#0N)ygVPycq3;*Em#Yt|XoWTusk5loQnad|
z%aKsQmt@7g$})19n9EKLSYu2&hZwdIaZT&AJ~mx;Ic405t6TZ6DF|CV8xJx6yDi};
zh&7qGn;T|;DJMlpp_!T3S?b=O{6EBxn{c{#;oiz0#d@A^%*LKs`;tFhk8`jY<3OV@
zVj3iEi(?v#`W&QG;KE@rpth(Tosx{!b|`mIH6Vd(gfZKSk35r%pAH5J#gOWMv!{$q>l!}w1jU;j;i0&ZM|(CIQP
zu_;17kd!f*^f*nk9SJGW(t}!pHDRRmi(jQfl`xiw1eo;GYLOOD(j^S~5u$3gIzyD*
zt!=YUT1iu4j7paP7=RQ^8CfKckkK;7
z8Uy2L4(C$6zsTlBbb^=-k2~ep0z0tk9P>r94%@Jc4;gS?<(%w=`|jPlPCkm4)|?fi
zSPa=-R#hA!RD87^z!KDNkG)?gkz_g+pKglv={{qfF(i0%+A^rVasZQLbN?xSLi5
zwi=7;G#(bd0_AKP_ggm<@8p+xoj>iqRXqh)N(Gbj2_NGk4GdX+*CX-y|>P=0`xXoyrS|In@
z&z&XS3=1B@)bjyt6#N8o2RF74xX{lx-v2XIaeg$?Jd6;!k)NKit*tXHagr^m8+2Ft
zW}&!r?0-q$YqCN)aDZOKOfl@%F6yin0e#dmZD;JVXf`vd7+4gNWhslogRLoV&DflZ
zC%;8)?bUB|<9^VN>hC+*aKc-xmN96eV>D3^``nj#i`)q|z)yI8zOkqJ6TS!b#2(N6
z^b{~SJGcEl<`t7TfSCExtBp5%hnW(8z
ze@{ukxX80*^A3|3w+eTa(IYgn)w_5@GbBezK{iHCK~_Omd@3WuMRZ0~%K3bcWVwVVt_j9Dd&FBt_VZ|TBH6Mp`TLq<`1y~p@(j$@
z;cc^G;|83seK0!OrqIn~s<3P!UBb8$3QnIY_9|S`O~xp-^x-a0C^kJWEhi_5Zypqy
zn4OWEo1L2u&B(~eP0!BANYBVl&&`0QM`4j%)?N+_VE)_viv(!|X4YCa5pt4SWIAPbOmh3Vb5Rv=JNAMntN`cZEqtXil}MOHdc0910QONS!bu)
zXrldSol64g9#+nre=Cf&(v*DZ7t-cI!ftF9$$3!*$?^&L0uxIng_|IVwsll=blEDR
z>?Zn~BK=(D%83{p7_`td)D4-!_FR1L9PL_4B3jm_^6>k;rLr4ndxd)H1Ded6=Gmw_
z+Jk&mM}A&bMovz}RRcWE#Ge)$UQXK4woQ$TbhZ6G)$Y+YHv2kL%~-gLvAkcT5}379
zmzC0Y;TZH@HJ)`QrZOdsNAk@BM<%DFVp*12Y+IH6Wfy)=`EHN03;3Qt>z^n#Mp-%G
zS~g3EX9T#eYkZF)R;fd2#4dC*>ULx`smh-aEqYOCf(mY<={)M0NPt>$QW6pO7pjzH
zXZ@#vk&~=77KvcAILac)6dKyonQ5ph(FQw>-@(gs;Pa!E@WZIm?|_Hnyg$22d%?M1
ztQ^18z&0n;{zYhw2Kq0;4@-G3Jug3_Tf@{FsPclKAUfd&gpe(g%D9+(2`AZtFUjxeNMtKp+aPLipowpWV7`wgyq#y%NK*bmj&=W@p$rF&ml;_rkq!-?ov28<5F{0!e3eFUW7YH6
z)@`(r^xb$Oe184;!suB?U-gyh$wnyDkM*;dH3K@IDi+%Qadl#j&zAayq?Oy_vqzs4
z@*RS@4WU%@q4q|xI>J^J_2>ueIhm}$yNg_(=X;V^RF(CM3nK?`bP<`Vc|~1mh-IY#
zwkQS+8XhP2!
zqz(el=}BZpovD`y-IYHs$+p!Lk1|x!(1gEiHTP_(a#lwbYz5M1yHe#MUA<4ljh6Dk
z-itCvHm|ZAvVR`WyT0I_G8VwF2s}^A;>4jzVwmCj^a)WeQ519`>i%S+9D_+zLMitk
zt@yAq8bYp8u+h@r7bbwHp=8FSwS{J~aQ^Zbo;#d?IaD+Zy*GO7nBbAEkt^ieT_6C;
zL`E__NGjTvpQUAAC+JTgx-2xCaXy|8RHD*Fg@Exz=J{t6tuRy_IOksar+7s;h~MPD
z?7o@gYT5VAZB
zP?;rl%ct|HKt9fp$3I3d*ObqH9bepkZw#Xbz9_xiCcIqUT(mr0tUvu&e_Rv3pdRJq
zS=SH<09X?|Urs@dA~!IKPei<_gy?+S(c&KRr-*SS0t8gVXk3hHM%Ym=L5BqKjS3NJsfq1toFG3x{FIPQ}R>3bYBdeAt?rG?m
z=S$qw&l_>2mf_8|#m6&`xbU8Ag#D)HODmlbA4yflgG(75V=kHb*D7%!JP&Y$Vyn8s
zgEXr=_^-7z+>SDWE>YP6VkLj`9Z)n>Cnks74_&&$3o62M_cUv$0YV{A&W2MYVanc-
zCHsF*WHdeNqo2IxyY(mz#j)N~a0c=R2Lqag$Hfl3EnQqt21mjciq8@4hxVunfFeRj
z0dfd`DckbhzsJ6q5u~W2K$mGWl}*JYoTXpwr6&iI!M;W>={PFk!vbH*NFGo3*X|x(
z1VVfAeqT=oa)t)(;9vXa-+1}3YG$m>N|s!u>Rt6p=H0dbnAbJZ-#t&qqTK=J$w<~1
zUf=}kj7yEQKojB(nUhfxRl)xB5nC#uG7d=8{C|smxrT*Z8YC9M>}}$PUh0T4v=pF#
zSXpZpm%>__*I$hpnRo!A)J#Ykq6R$cgQcKAW+(=j?+UAX{LVX7llWzu!d0Vc7+H+;1D}9U+xYT91#^ej%z=${
zsmPc%tJpJ$8{n>+0U-eo@!)NCEu3rfVM4WNM%PjVP^hgQwTR^BqTyz)nyCnxZokG=@77
z>|8zao0l)t#$)84zK%)&n()Z71BgB$GzJ#02f7C%FwRa_#BhY9%7Ft@nzzLyxHv$3
zU=t8CGe7BQnvJKlD4Y4
z^c~Hprb#c&hxd**y=$BXi-B;R_P~lK-;j!X08C1+km`mx9j|D&jY;ZC0E>(Y+fG
z3z{-|sw_Yta3iPQrS2Rjm>X{_R!p2XLcWqZJkY!xi~)Jlq9mjm?TK%ugmTfdWcEv}
zEgaxjm(hzP;)!|bPz&vluXfqeiNP9&zW|_nbv~>1L?0^829^UGu)|oc^*e4wH{Z`K
zXeu2_dNX}X>Z#ZUZ50UeySiKeXOSdXwonHK=|yfaWZcZJF=R9WMcD7X2Zjr4
znHhOGoel1FtG$kdTCIN8#tBcu(kMoLhN?~(^>N_C&T7RwJa;X2)dCPE&>)tI-E}iA
zCg#e-qs>wyvJ`K4O``qUG}K=+KG2||Q(Cn;7xc#nENy+Yy>Pv7!KPU4IXoL`$$(%E
zQHQO1S-#W?@_X)XmDCu#`Fp{0siRUWPwmzV>cyoS&?pL9h|~{zR1Qn7F^Fy}1H
zY1nE*sMuCPj<>gt4jWo;Gj^)bM!`KGPLpFhNGP5ymOu`gkU3wlfc@7<8fC&IF@6M{
zszsW`zVC>Np5ND#mCg;@an&;febksmY=lz(SBoh)3&U00v?LAsAFO-MqFZW~!n~Sy^jub>084<{-ESH#@lbYq}MC7i0lVd8zLHtE>
z1fSo7?02i}&l3R_|L=?-_KfQEf_B8?AZyu0^rGzmjF5q0=~!Smok7@MbD|1>(8qWN
zxla?a9~~+HHZ|1^Fg!UC@3=l)Z*W}4r4WZh;=<;m)%dX~f4iR#2kJ*g%G#dPUYs@@zz_*BLf?VNfN$3QO)KdkymVKPn1Xr
zEH8v2yN_t#(FvYmQ`H3RX&1y|O3PwE_&ra5HwA9StCf8sTe-Zpdbto5qJNxvNtmMF
zETP{j{UOb2x7u)iMxpKxSpd0A*wEsM;*CG_f~v*;va5TXdToKKq9DcGkz#;Zvyx|~
zAN$|AgWPIn8$C}~zrH+XAi;5YyUDl&DnP3VjVFco(kEE7PiK=#3@`cGDU4#GciOKAeTQ!e#co
zofvwPKFjO
zbe$16^ejH?NG6ur^GH}87wkQ=yifCi3|r{GgYJPUWytv
z;?k4}A%_>1j3=m8FDoaf>ETbWVC0lOPY6QW{_V;?t+9(a2!8YK5B9hEbh6fD`_IJP6Thb!LG)@+vN>^1kq<^RqElZ;kqfcS
zVN`5()JWU)PJ!u;251r*EMm?uVQ9iZ5-PvQ1tP5XSX+KPA|s$1ry2Q?^({L~8obW!
zv&mi4RJT&g1|(rdH{#EE4RF(Gv3m_v%3f~Se5`%yfL159zTM$xRJK+Snd#AvmI#Y2
z%p8eg%Lr7tAke9BBblo_jBT73pORIzrt{o;jY#y}j(JW?Wfg}}jpwAl^&L@>~D
zI9M%<+kV;Ses5JrbC}ZcEurDl(EFYPXN_-q?RA18?EOz3bfC?YLElqB@QA(Mlmp+l
zzi4lTCQtcV`B9trqCuwEHsoG@Xg8V#bo4RQ7SEDDGRz6%DL<}+o<&z9a4ZFf^ESUS
zHp)%xd<#q9cLfxlVR&y#f3oLmu~^AQf&0zK=8PY+jXiyDUV~o45ab#7O4q
zndx`W>`voe6Vbk?r?5b4eQsbP#$iY+6d&JxV;m;nb8^)1gPt{;uj%kHclAgBhl8Dl
zmW%c6EFYLvdXW7}2O1g5WS$Y|x}y_58y}T9vRgpLuNw}+cbzwc8o`$Bq8ccc!{M2R
z^d|u@c(v5ygt%V2@+FUCdOA%#8@&6F&DVH$wD^8yaSG4n=-mqUPYmf(qECKm
z)SuMd+fk}D!WYl0v<5Vk8jZq5*)UkV(o=Mlyk3POfynCd
z-%#otCc-yscYxR2>p3wHN~CdC`kW3|0z^GtvW;ImL|?KL>2JYIxng{Lbb<`d;3z{^
zA(~8z7C(cCgJ4U*$`SFb4U?N6XX%4wxl{3YPleHbE%Qp)#7~KaP3a5x-ER&n*eP1CGDcbUF>_@UW?rKefntt$mEA
z9P9p+S5#9otb9uaeDiK~M>BWcq*Il_%X(=Ob*06ADMsip`pr84{aKC;kIwGLJSIRmJyWE)C$ID|x`
zNY3AOwffC|W!>TYgHYT=C
zSaqB5^kkU%<3d#q@!9qDmEJdpwa&YF#;vr|y%l0J$iRhCZ4;>osnnlfnvJnq#
zSgfq(EUTff56~+#?dUazdJva_t=TLuJ<>O}k`lp4ZEn(%ktRqScvZRESZmaCOojrL
zjz9Y4{5)L{>TR`lw_%HvI#7$E~C!UEC-&W;u=q{X3J65i>}f
zs1M|XzJ;W9cz(dsQOch+JKTT2V%1*VQ^CSS`cgXmQT1|ovafK_ajRq`;Cz~eqP|Z>
zsfx_rBHXm0XrdM#JsG--J@3`ngRy=g0|8)z!)#E-GNFrQB4ZS1JtoB4tv|s1_g(9yIaBx8nyb^xT^v1}bZ?Kteft%|
zz=Ky7HKmc9?!T#|
zRSGiK#8(Ag$Zj0BA;H7YYDgx6VEn9_aBINyhR6zn6?a!>u2$AJeBe851KQpF_0=wf
zwEk`+m=ki&5>o-c%kw{X0exEIzZ!DOwjrk|Wi`kjy!&w`NJEO5vhlqB;Z9
zKgEmt0vrd5CwG1fLwQ=BuPE7pB(aiccSG-*alBpnBh(mfe_@r4WH(<YUJ`QK9E$6*OQGKl$BcwTXS^e6d)g
zedU$(FRHZ;^D}#znX}@y54t2{5rRjybqb-YUb0O0)#*9GV;UbT4#JXN%;3A*(mk_j
zvE5OyjArJ%D66fL9cJeQls7Ge-8|s>L@-%5;P1fBre2GK&dboDFk>n)=FltU=RZHV
zzuEJnisc5qS-cbX9a$rDKg{6S7dMn
z(xOG1FTNk164OK_gmzq0OpN!jFt>d(1>zBo^@^s~_x4F6zZV~S{E}Ivr?|EVesvqO
zudQk!86*#nF!)@?WmK#H1hsz}oAz%P?GM>2;IYZS1o5!Wk!ZB~9YY5hE(bk5KQlWg
zEjHm;^ARo?#rykeu^c$H@(0;xW%!D(rb}q}3Q1KjbqZdgXOU;ljfScnlKk?q`|YP%
z?bCUUL0xeNDHBlhYM%s@B#l9zX~io@RhTX&!ZU*9jsy*8=uRqnWt{#(
z-K^TwOK@0uz6bFBOH6TLUt1QFJ|4;>`yS=9+A11eFHc}brP0r@Fy9%WV{IwxKIffV
z<>XqVJnd6!g{ye*Ug{MUI1|1y1E~9&n^)_-5uyn3hQ*V=`=plU{&fG-X!oCyNsatu
zk6LZK+LDnNiL;tKUCs%00bJ@NsjB^@L+}y3=Rs5ZL`AEjdTo_Mqt9x41o3sz21)2Z
zbrm!CDr6Wl%yYAIT9OFdA$*ah39g4NJZ%mgq399$=8Ck*1pQ`!#QXy6yg=4eLX~RC+6xvvkQg5KCeN3fBA4ne~
zI0+e8SaKc7_I(--f$&)+fw
zav$Z&F?UM$_j=&6t@0kBT3C1L&>O!+<}my^5JYLZgtW2k^nJPIob96k?1CyB$uj}u
zRa;1%7^ZV>lzw)4cHv0JZahSZXRtV3UY`%HRKfzOCQqn1%6N>U^*JWqpoH@KkLmFo`Frz+OV(X#A>vtnt
zeA52eR;$bn-ssekqC~ZsB9|lHHms6qA?O^eUW;8o!GUYA$iskQ9Dwqym2Qbe-y1X%
z`3Nksd<2Fck$s#zKQV?a%P4?HMbfzFDKRK~!EV?NJGYdoq}Q^
zA!ebQ!12uNWN2=<`^cKFC;E+faifFi)xss8d4ZTc6W0jtY&_aNOWm1%3e6UQp*y$5ae;0QuKU$EoB$n{C8fwpI9hQgZgg$Ci-LezmBhkbSV)Y+Rf0KmBqrgU
z2yOvnN+?v4XYu1!+itxoufc|Cx#@XHX)U&=cjWcmAuNZVB*46B8s00V-G9%i#56Ti
z0rMo*s?wDpI@wvmm8T)il_=fM&Y9|)ibcg9zm-EE_SZ3qnr?beVJx2Bdb0k0uSn{2
zgJHJB;_wCG*Qgr*b%-}c1v?86x(J(vDj?ZftLcy_Gv5>$R_N{MoIF@Ue
zFU;}>-yy8_2BuP$`mZpO%|;whw<)w2qp1C1ub+S_STYr^(;CG6MT@~vv?$@q!3PS9VaW)nO@$^%SntR?l5n->lH{SkVh~-dq#U+
zpUr|cHRLh9LXSKc)OH7k`h8ym=kVuDKIh6>zM7dnLjx2J@W7M}rzsQNen5$FNb#^y
zhUu!Mt~6Yve01M-dSIXM`5|QR(N9sc8$V?|%jXP>%4wnJQ4WpiU3)#fZ_O0%+nle6
zi!9(v%gW0^8P`;2sEdx4{>-#NfkiEo>t_-O=E3^@gw$7E{EFnuKoA$nXvV%epzQ%C
z8`)abirFo(rRS=DScz53>#JV?G4ls@1OrX@wkv+H8r;A8w;((2)%Im;EHbHB%sn#*
zMTDK6!xT4gL>U%2fQFZ`cedQiXD-m`fj3&`e#2TkX^<~No@~^0^)}6jo%oC5L6rMQ
zla*xYWJZ@SwkSK5t%0S!)aTD)uiSJB4$&&1!sc75&ybP#^iAY$I{1mIYKcJo+|*QG
zCjcJOV-nxWZ?Da-{|RXaF_Mh}ZCAe4SS65$S{yzb_!d+oNha~hpjV)?*~OuYrf~`E
zH9P{LCaBLt)MYR3@
z`2sJBSu~o=>#;25e7}S5&jus&qvM8Y=>3byUK}?fyyhP*-BYh4L2=Am2asTLeIJN^
zZen^yij*1npwWTHBev56KC?*m{Kx0hXCIUv-#n#Pq3m&{6OE>r=p-X%M65^o?Bztm>BFr23Jo-)4Lc%RBU5%m&3NXQJyH#KeG
z4-~tOJ%w#5vs3i(=La$RDy9h3pv3X1qjgs{dSPF3vtafN8n~Kc^TWd4`~vgOPYHsBry+iMaO&=BrlyItr*9g
z*I{6^>zZy4pxY;K)@0r!lwl1_0tqPQg@?o9k*u)E`C2)Na(75bWSqhCqG^O?U|dR?
zw6n-C6I*LHZDq9NahpWKrt0Wu^<(F~>E8yZ*Y-T#cwwv9BqNj)wB~n?#WrGND$}O$
zjYxNO!B7qrS5>+$3KEfOsEXvAT~BYvlV7gk_$r-y+HUZPHc^XqMwY9D3O?|9D;Wecp5&k0WE2LshW
z{&w?NAp9)oWDQ>8>&D+}%>7MWDHvmguJfD)3-JzPsczk@QDd}#P!f`2Iw&TPB
zrg-H2Sd(&OZx`iuYD)ih3En|*^)yKM`SbYD=Ab!i#lWYcTd{vP8gB_{Xq~*tb{reHcaamOtI~f6Dr#6->-A5qf+If{=fsuK4}A*z;Qd;^SwCxr3Cu
z`CYnsZSq(OJ`^ARh@Uu#@IBYlQF6yig~gZxTBe&&WR=_
zCiW*DDU79P=dkNC)g@|fK~FD>`Rwz=0}ikRXh!}eo73>~0x#_2Fv}sjn~o=W7%TIg
zI9*wBts&%QL1(9x9Z
z6%hOMYG@yAX-!Ax?<-*4+Wtq4nd0~%_p%0c^IlznZn+)4E_E@z#W^op$Z
zNvo7|7v{7&;V#15oif%V{vO+@lbkmA5V(bI*|SE{r!u@TZ*R`g)td5iZ*iQIcl}
zFDigy`RmK~ZZ+xnoU5ruArAI@Wrb<*=P09!l*EEjZH-yAyxHl8K+^6*OQJ
zhgm}(Kdx8e=$%>0V3n|}VTpf%Z0$4FY&4B|MWf$YQEk0VJZlZ|8R_?Jz+`*`s^pUi
z9|NKZ<3^%rAA#b#_u{oOvNCUQ6+k*n^1zDN9^PjD1$SrZ<=CsW()G|Q&`?zK;|
z_3iy|g8griD|or_ZeaW_eZJ8
zn@D*D_$uMuF-i$Tcm$eAdnSK$|3#VDtKIyF5#Tmrv4$KtLcRsaNPGVX+)Uhg5RZ8O
z7eKwEt(RWRVT41P=`uFI2_!r>mDE7Wb%1b>lR3GVrA
z!}@_EXK)T^b|1utO3(sF9?4*lVahO+5fMC~PG4xRHg(z+7JRc1I0j@S(ZEMjg}*8F
zZ!}&w2=L!%Cm^^m{H%6D-`w9k0*!WAnL``k@p@DBaDup+)w&QYa^eT!GlYck0-h?u
zS7OYZQvgXC%OlX$rCh|DhCm>U^{`nO1Rsl`jVyz2uaTM^9^$|$8HM*^bpCIz*z8k4
zMlv%9w$)bM*s^R@_N+i?;2n0ZcLDa=(k@ElM@)h1`3*Jc`-bwmaTs2I9jv6%8
z$U!{2@eFZ<$JwcZ@kjhraM9s`f9u`<(Q<6k6Yv6_ASKuf3LOGQ;m5kLNI$Ih>N4(}
z?DNQpv?n0`zlpHI*%pGct#}l4|>mO68|HE$v
z(}Va9JmJYLo^NaUy#+5E2t;6Rkp+&B!DY1RhEEc1UncMln{bh`NdiX{tf0j8&s={2
z-qF3r0+*wS;DdR;MlluY;f0=6RmTa#!w>i1_
z4{1qo(xm>8#ttV<22NV;E}-o>j(h2!2MLIEN6Y89s^=fUUrvF;!R@tM|h&tLtEQgYVmIWfSMa&M%x7PlGR?&34r&Ol;DEc4V*%
zI`@5XVE`j};fKeS;jPWIo~JDtwEcHoOB&q1v+CPiG3_0+Z%*o$xtwphH-SQY()KNM
zEOG%Qqp&pme*t%(uxckm+peAJEZ-(?iZD0$
zjle;!wI-S^e^j;`V-}%tGrY#Wt7K{IeJ7rAa_nQXKzFW~jp(sc@ew7V`@L~`x-DrX
zG4PFor>%FI|Bicq7+$fyQ(za3e>}?E57Y;~IG*F7f|4H9AH&$g%In*SwCFZD*6L~N
z_WFqsPa@zJ$E~;!A~0)U#$EA}Y3wxaS69rrZ|=BcU}z5_)>t
zHF~6Y*ZufJv>qUK`nYjXH_%@OCnjf3+A|a2Xzd74z|JBZ8cm>o7b%id@Icezgn466
zgVb80pG8)I(z<(o4h~>Gq8R`#P8KNg8Uk`;C`Q7Y0iZ-pk{GB`PzP;A!dCC6f2ba#rz^#$;Tdtj%R4l72b~at*
z`N$Ms02p@q>00L2T>5uYak!jH*68(<`Zbd*{csI8KVhx!A`JaT+xzFV_LcqM^lV9L{05?>ivvimT_-UHF@-se{$Z>
zS-J7g!QaMss9y^Hpd~otU*XnD9M^s@PvfjgKA+3?d`C{E{oQ=-&1c&Qoji
z^S?^Cj21V1TDRzn0r)twWsm4_NR*xhj-fqKuGP=lB~A%c96uS4coq~WNjn@j3FP%(
z0VC;{QWUrnsQ|*`p
zplV9^e(wzq-aAq7%QUQo5?AQ%xJ-#BqPlaxBy#4nJyCbIbJ?KMNVfyuuk(nk_kS#)
zePMM`YQ56U!8;Uw-=`edWo>=$xw9C6K&y!!?}R^X1(YAGvoiK)h4
zh$&!QbNc%0^-ZxnI6+M1$jwXO@{178>_$d9!+Y;^$oK|)oi`gv_z?ZB&~r?pg_sMs
zv3LLYSYsc~O$z?zhTEF>WtW?lS-MZy9_BrhFpd}B9(w~k2#q{}LWvb_v;PMgH
z^uY=}8trZ=ZErLH<2LESv233(8%gVeq@s1cB8XLsIOPsUh?eXsCu?FH#}V5&=lWh--W3wv}Ucg9t(j-GJPq`
z`Yqr!;X{<#Ku0kj$5d{O7kIMFeezpH1C#l4P70IXS5NrE3cW2daK^jmd_Ig|{{En4
z-T!KEcP}9XlK1@fNgW54YSpUnu6Na{>h6uE;Ii%UzEX9lndTSvw2wUVWm9o+Y3|kuuyT{(3DMWX$^nQz
z#WwsgdFw5JjDPPxStWMPkaw~)Gg<0uF@S`4z4>m<{poR*lgxImxBw_^*c>)PLqn@B
zvW#QxqB>>!av0(|oz}Yidn1|R8>ms`b%W0N@aDL3^1t>11YaH#X3U;@|H$$?ynCe5
z_y__Fv1p0&%c`MZrdYqguF-z~3!)W$r0B&oxmr1awcAWu@y4#enZpe1_5Bf88BMUJ
zrn|}^r4t^*l1$9q+%kxvU;T{x!8T9(!V3+OK8H4pV9iqpwR5tqQj@UZknvagk$vw1
zpN4oA@2uch)K8HJ*{eoo5SO9$pJ=(;N*f9kT{1$ji*fma>jXRx=p4Q-XOhIlTUiZM
z|1>|6V0&szc?nAA(8z6@6|D%Xpg!{~S*EmHFMsg6e`w@aF!z|#n4UiTi|C4{?vh%Y
zWV(gdv;7bBR(t*g*9j1o8yzRjN8wp7uHli2{wdPPL;BJv2vNP7Z!o98kdcAYy#m?y
zk~-i_w)HNpC(F$dZhb;i89p}BevenDd{%CR4j3HM$2lA?*Ym3h)ey)`&4HPPh7tCi
zI_UKs%joBqDYU<=-d`GpP^4Nd??A4*!=(mBqf^Mv6rBbyp{dy(eL{IZD~!FslLeYj
zxQz~WAn!gNQmpT%3p*v-TJ)7h|)MOGhDfb=9chn9~`nI$^DKSMejLE8O<#`
z)+X?mFNABpslbMMiY1&eQI
z#K!*eSV32y+lk9RE)ln(0Av5o+(UR>D=_^+2lDg$`5z`QH3sITpNHh3*5WgQ)F28C;6L%qqe`2<5d5Z2-xuQ_ExcW>0o`VTOCS_
z&ql)k%v}cWRHJ(42+w%T
zP=WOZS+6`;RmIBwquT|VXL)pR0{u4TaFs^^{D
zm+;!S@_r?uHJBZnRe~OpRg>$gHdA=FZTqO2Ki0Bn;{an2bDOQU=T
z8AfY;jJOrLB*ZChA-g(wcKFKa(bAlG?VaaNHlL*j-b_9sopsoaI#gtX&Sv#8ByHSh
z&d>F?`|R~Cq+gP8mlt;1?D9-F!n9xTDn={S>2ZYbNgG1e*?)K;U0&w8CsJvu%GG**
zli4U$NSoF=SKo-w>1neU$!&kR-Y~)Lm8(@%u-x$e5z@o?$7iZhEfu#hD_M5jo?fi2
zE5)sPEabdfWK}+N$9Y2!Yx~E8!L^_3XP10;oW~dMUVs(VK_T*vU;J4#RU;e9ifob*
zw4@fuGl)Q?`~Qi(RmjF
zJiKQkF89WFN=>#adPL!fWsFg*Av{ohYf8drY%n*B#6tynBcP)ct_T0zia?4IGC
zI3p3UzjEx9K=VRJQ_U~qSHD62S8>D9Hz
z>-ddiO@m3lk=9@{Oq;-c-ZQWvYc+2@;T*`1V7lnlx5rBC-0a!=uP#W_HXzgT+59Zh
z=jVk<4?y882C@&-^Jog*cuw2}85AP9T>N!l>Eou3CnTk)KJyAj=|`6)uJ@%CqXrz*
ztV@RZd9@~iouI{%w;`i(O45pCk)rx_V&qDwEHW>q@N36m?1C2t