From c993290d13e222feb809bc95b504dbe554f4648d Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 10:15:23 +0100 Subject: [PATCH 001/141] docs(java): Correct shutdownTimeoutMillis unit (#20683) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR The Java `shutdownTimeoutMillis` docs say the option "controls how many seconds to wait before shutting down", but the value is in milliseconds (default `2000`, which is two seconds). A user following the current text and setting `2` would get a 2 ms timeout. **Source evidence (sentry-java `8.63.0`):** [`sentry/src/main/java/io/sentry/SentryOptions.java`](https://github.com/getsentry/sentry-java/blob/8.63.0/sentry/src/main/java/io/sentry/SentryOptions.java) declares `private long shutdownTimeoutMillis = 2000; // 2s`, and `setShutdownTimeoutMillis(long)` documents the parameter as "the shutdown timeout in millis". The Java drain docs (`platform-includes/configuration/drain-example/java.mdx`) already describe it as milliseconds. **Corrected wording:** "Controls how many milliseconds to wait before shutting down. … The default is `2000` (two seconds)." cc @adinauer @runningcode @markushi @romtsn ## 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:1794297600000`. -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_b9504a85e9a51c0857a164aec8606f80) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_b9504a85e9a51c0857a164aec8606f80/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- docs/platforms/java/common/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/java/common/configuration/options.mdx b/docs/platforms/java/common/configuration/options.mdx index d8885bdac0f43..97c4899548623 100644 --- a/docs/platforms/java/common/configuration/options.mdx +++ b/docs/platforms/java/common/configuration/options.mdx @@ -368,7 +368,7 @@ When set, a proxy can be configured that should be used for outbound requests. T -Controls how many seconds to wait before shutting down. The SDK sends events from a background queue. This queue is given a certain amount to drain pending events. The default is two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems. +Controls how many milliseconds to wait before shutting down. The SDK sends events from a background queue. This queue is given a certain amount to drain pending events. The default is `2000` (two seconds). Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems. From 8921964a902ea448da4691b000756a840000cc49 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 11:48:55 +0000 Subject: [PATCH 002/141] feat(docs): Apply new quick start template to Dart and Flutter quick start guides (#19981) ## DESCRIBE YOUR PR Applies the quick start template from #19295 (Ember) to the Dart and Flutter quick starts. - Removes the onboarding option checkboxes and `___PRODUCT_OPTION___` markers. - Configure names the features each guide sets up: Error Monitoring, Logs, Application Metrics, and Tracing, plus Session Replay for Flutter. The init snippets include those options by default, and a note explains that unwanted options can be removed. Flutter's Configure step now shows the `SentryFlutter.init` the wizard creates, so the snippet is visible even when the wizard is used. - Adds **Send Logs** and **Send Application Metrics** as their own steps (`Sentry.logger` / `Sentry.metrics`, which need no enable flag in the current SDK). Send Logs links to the `sentry_logging` integration. - Simplifies Verify to a single test error. Flutter keeps the wizard's sample exception flow. Next Steps is trimmed. - `flutter/manual-setup.mdx` is unchanged. It's a separate manual flow and still uses the shared Dart logs/metrics verify includes. ## 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 Co-authored-by: inventarSarah --- docs/platforms/dart/common/index.mdx | 109 +++++++++++------- docs/platforms/dart/guides/flutter/index.mdx | 72 ++++++------ .../dart/guides/flutter/manual-setup.mdx | 94 ++++++++++----- includes/quick-start-features-expandable.mdx | 14 +++ ...quick-start-verify-tracing-splitlayout.mdx | 10 -- ...quick-start-verify-tracing-splitlayout.mdx | 20 ---- .../getting-started-prerequisites/dart.mdx | 8 ++ src/components/featureInfo.tsx | 5 +- 8 files changed, 195 insertions(+), 137 deletions(-) delete mode 100644 includes/tracing/dart-quick-start-verify-tracing-splitlayout.mdx delete mode 100644 includes/tracing/python-quick-start-verify-tracing-splitlayout.mdx create mode 100644 platform-includes/getting-started-prerequisites/dart.mdx diff --git a/docs/platforms/dart/common/index.mdx b/docs/platforms/dart/common/index.mdx index a15ba542b8fb8..f07037199fb88 100644 --- a/docs/platforms/dart/common/index.mdx +++ b/docs/platforms/dart/common/index.mdx @@ -1,6 +1,6 @@ --- title: Dart -description: Learn how to set up Sentry in your Dart app, capture your first errors and traces, and view them in Sentry. +description: Learn how to set up Sentry in your Dart app, capture your first events, and view them in Sentry. caseStyle: camelCase supportLevel: production sdk: sentry.dart @@ -33,9 +33,8 @@ dependencies: ## Configure -Choose the features you want to configure, and this guide will show you how: - - +Initialize **Error Monitoring** with `Sentry.init()` and run your application in its `appRunner` callback to capture uncaught exceptions and unhandled asynchronous errors. **Logs** and **Application Metrics** are enabled by default in SDK v10, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-). +This guide also enables **Tracing**. @@ -43,40 +42,83 @@ 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. -Import and initialize the SDK in your app's entry point: +Import and initialize the SDK in your app's entry point as shown in the code snippet below. + +The snippet also turns on: + +- Tracing: via `tracesSampleRate` +- Additional user and request data: via `sendDefaultPii` + +To skip tracing, omit `tracesSampleRate`. To discard logs or metrics, return `null` from `beforeSendLog` or `beforeSendMetric`. ```dart import 'package:sentry/sentry.dart'; Future main() async { - await Sentry.init((options) { - options.dsn = '___PUBLIC_DSN___'; - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/dart/data-management/data-collected/ - options.sendDefaultPii = true; - // ___PRODUCT_OPTION_START___ performance - // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing. - // We recommend adjusting this value in production. - options.tracesSampleRate = 1.0; - // ___PRODUCT_OPTION_END___ performance - }); - - // you can also configure SENTRY_DSN, SENTRY_RELEASE, SENTRY_DIST, and - // SENTRY_ENVIRONMENT via Dart environment variable (--dart-define) + await Sentry.init( + (options) { + options.dsn = '___PUBLIC_DSN___'; + + // Allows sending default personal data, such as IP addresses, + // when available from the SDK's integrations. + options.sendDefaultPii = true; + + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + options.tracesSampleRate = 1.0; + }, + appRunner: () async { + // Start your application here. + }, + ); + + // You can also configure SENTRY_DSN, SENTRY_RELEASE, SENTRY_DIST, and + // SENTRY_ENVIRONMENT via Dart environment variables (--dart-define). } ``` -## Verify Your Setup +The `appRunner` callback runs in a guarded error zone. This is required for automatic error capture on Dart web, where isolate error listeners are unavailable. For additional isolates, register an error listener with [`addSentryErrorListener`](https://pub.dev/documentation/sentry/latest/sentry_io/SentryIsolateExtension/addSentryErrorListener.html) from `package:sentry/sentry_io.dart`. -Let's test your setup and confirm that data reaches your Sentry project. +For finite command-line applications, call `await Sentry.close()` after all awaited application work finishes to flush buffered telemetry and close SDK resources, including the isolate error-listener port. -### Issues +## Send Logs -To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application: +Call `Sentry.logger` from your application code after initialization to send structured logs at different levels. You can add attributes to make logs easier to search and filter. + +See Set Up Logs for all available logging methods and message formatting. ```dart -import 'package:sentry/sentry.dart'; +Sentry.logger.info('Order completed', attributes: { + 'order_id': SentryAttribute.string('12345'), + 'total': SentryAttribute.double(99.99), +}); + +Sentry.logger.warn('Slow operation detected'); +Sentry.logger.error('Validation failed'); +``` + +If you use the Dart `logging` package, add the `sentry_logging` integration to send its records to Sentry. + +## Send Application Metrics + +Call `Sentry.metrics` from your application code after initialization to send counters, gauges, and distributions. Add attributes to filter and group metrics in Sentry. + +See Set Up Metrics for metric types, attributes, and configuration options. +```dart +Sentry.metrics.count('checkout.failed', 1); +Sentry.metrics.gauge('queue.depth', 42); +Sentry.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 inside the async `appRunner` callback to trigger and capture a test error: + +```dart try { throw StateError('Sentry Test Error'); } catch (exception, stackTrace) { @@ -87,16 +129,6 @@ try { } ``` - - - - - - - - - - ### View Captured Data in Sentry Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). @@ -105,16 +137,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 Dart 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 Dart 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 -- Learn about the features of Sentry's Dart SDK -- Add performance instrumentation to your app +- Add performance instrumentation to your app diff --git a/docs/platforms/dart/guides/flutter/index.mdx b/docs/platforms/dart/guides/flutter/index.mdx index 95d9486c7c955..ee03b862a1d1a 100644 --- a/docs/platforms/dart/guides/flutter/index.mdx +++ b/docs/platforms/dart/guides/flutter/index.mdx @@ -1,6 +1,6 @@ --- title: Flutter -description: Learn how to set up Sentry in your Flutter app, capture your first errors and traces, and view them in Sentry. +description: Learn how to set up Sentry in your Flutter app, capture your first events, and view them in Sentry. caseStyle: camelCase supportLevel: production sdk: sentry.dart.flutter @@ -28,34 +28,34 @@ brew install getsentry/tools/sentry-wizard && sentry-wizard -i flutter ``` ```powershell {tabTitle:Windows} -$downloadUrl = "https://github.com/getsentry/sentry-wizard/releases/download/v5.1.0/sentry-wizard-win-x64.exe" +$downloadUrl = "https://github.com/getsentry/sentry-wizard/releases/download/v9.1.0/sentry-wizard-win-x64.exe" Invoke-WebRequest $downloadUrl -OutFile sentry-wizard.exe ./sentry-wizard.exe -i flutter ``` ```bash {tabTitle:macOS (Intel/x64)} -downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v5.1.0/sentry-wizard-darwin-x64" +downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v9.1.0/sentry-wizard-darwin-x64" curl -L $downloadUrl -o sentry-wizard chmod +x sentry-wizard ./sentry-wizard -i flutter ``` ```bash {tabTitle:macOS (Apple Silicon/arm64)} -downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v5.1.0/sentry-wizard-darwin-arm64" +downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v9.1.0/sentry-wizard-darwin-arm64" curl -L $downloadUrl -o sentry-wizard chmod +x sentry-wizard ./sentry-wizard -i flutter ``` ```bash {tabTitle:Linux (x64)} -downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v5.1.0/sentry-wizard-linux-x64" +downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v9.1.0/sentry-wizard-linux-x64" curl -L $downloadUrl -o sentry-wizard chmod +x sentry-wizard ./sentry-wizard -i flutter ``` ```bash {tabTitle:Linux (arm64)} -downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v5.1.0/sentry-wizard-linux-arm64" +downloadUrl="https://github.com/getsentry/sentry-wizard/releases/download/v9.1.0/sentry-wizard-linux-arm64" curl -L $downloadUrl -o sentry-wizard chmod +x sentry-wizard ./sentry-wizard -i flutter @@ -65,7 +65,7 @@ chmod +x sentry-wizard npx @sentry/wizard@latest -i flutter ``` -This will patch your project and configure the SDK. You only need to patch the project once, then you can add the patched files to your version control system. +This will patch your project and configure the SDK. **Logs** and **Application Metrics** are enabled by default in SDK v10, and you'll learn how to send them in steps [#2](#send-logs) and [#3](#send-application-metrics-). You only need to patch the project once, then you can add the patched files to your version control system. If you prefer, you can also [set up the SDK manually](/platforms/dart/guides/flutter/manual-setup/). @@ -77,37 +77,47 @@ If you prefer, you can also [set up the SDK manually](/platforms/dart/guides/flu -The wizard will prompt you to enable optional features. Select the same options here so this guide can show you how to verify them: +## Send Logs - +Call `Sentry.logger` from your application code after initialization to send structured logs at different levels. You can add attributes to make logs easier to search and filter. - +See Set Up Logs for all available logging methods and message formatting. -## Verify Your Setup +```dart +Sentry.logger.info('Order completed', attributes: { + 'order_id': SentryAttribute.string('12345'), + 'total': SentryAttribute.double(99.99), +}); -Let's test your setup and confirm that data reaches your Sentry project. +Sentry.logger.warn('Slow operation detected'); +Sentry.logger.error('Validation failed'); +``` -### Issues +If you use the Dart `logging` package, add the `sentry_logging` integration to send its records to Sentry. -The wizard added a sample exception to `main.dart` that is captured when the app starts. Run your app to send it to Sentry: +## Send Application Metrics -```bash -flutter run -``` +Call `Sentry.metrics` from your application code after initialization to send counters, gauges, and distributions. Add attributes to filter and group metrics in Sentry. -After you've confirmed the issue in Sentry, remove the sample exception from `main.dart` so it isn't captured on every launch. +See Set Up Metrics for metric types, attributes, and configuration options. + +```dart +Sentry.metrics.count('checkout.failed', 1); +Sentry.metrics.gauge('queue.depth', 42); +Sentry.metrics.distribution('api_latency', 187, unit: 'millisecond'); +``` - +## Verify Your Setup - +Let's test your setup and confirm that data reaches your Sentry project. - +The wizard added a sample exception to main.dart that is captured when the app starts. Run your app to send it to Sentry: - +```bash +flutter run +``` - +After you've confirmed the issue in Sentry, remove the sample exception from `main.dart` so it isn't captured on every launch. ### View Captured Data in Sentry @@ -117,16 +127,12 @@ 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 Flutter 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 Flutter 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 -- Add readable stack traces to errors -- Learn about the features of Sentry's Flutter SDK -- Add performance instrumentation to your app +- Upload debug symbols and source maps for readable production stack traces. The wizard configures `sentry_dart_plugin`; run `dart run sentry_dart_plugin` after each production build to upload the files. In CI, provide `SENTRY_AUTH_TOKEN` to the upload step. +- Learn about Session Replay and its privacy controls +- Add performance instrumentation to your app diff --git a/docs/platforms/dart/guides/flutter/manual-setup.mdx b/docs/platforms/dart/guides/flutter/manual-setup.mdx index 01831e8b2c5d4..33ab575b30990 100644 --- a/docs/platforms/dart/guides/flutter/manual-setup.mdx +++ b/docs/platforms/dart/guides/flutter/manual-setup.mdx @@ -1,10 +1,14 @@ --- title: Manual Setup sidebar_order: 1 -description: "Learn how to set up the Sentry Flutter SDK manually." +description: "Learn how to manually set up Sentry in your Flutter app, capture your first events, and view them in Sentry." --- -If you can't (or prefer not to) run the [automatic setup](/platforms/dart/guides/flutter/#install), you can follow the instructions below to configure your application manually. + + +Looking for automatic setup with the Flutter wizard? Follow the Flutter Quick Start instead. Continue with this guide to set up the SDK manually. + + @@ -36,19 +40,24 @@ Keep CocoaPods if other plugins still require it. Flutter can use both dependenc ## Configure -Choose the features you want to configure, and this guide will show you how: - - +Initialize **Error Monitoring** with `Sentry.init()` and run your application in its `appRunner` callback to capture uncaught exceptions and unhandled asynchronous errors. **Logs** and **Application Metrics** are enabled by default in SDK v10, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-). +This guide also enables **Tracing** and **Session Replay**. ### Initialize the Sentry SDK -Configuration should happen as **early as possible** in your application's lifecycle. Logs and metrics are enabled by default; use `Sentry.logger` and `Sentry.metrics` after initialization without an enable flag. +Configuration should happen as **early as possible** in your application's lifecycle. + +Import and initialize the SDK in your app's entry point as shown in the code snippet below. -Import and initialize the SDK in your app's `main` function: +The snippet also turns on: + +- Tracing: via `tracesSampleRate` +- Session Replay: sampled with `replay.sessionSampleRate` and `replay.onErrorSampleRate` +- Additional user and request data: via `sendDefaultPii` + +To skip tracing, omit `tracesSampleRate`. To skip automatic Session Replay recording, omit both replay sample rates. To discard logs or metrics, return `null` from `beforeSendLog` or `beforeSendMetric`. ```dart import 'package:flutter/widgets.dart'; @@ -58,19 +67,20 @@ Future main() async { await SentryFlutter.init( (options) { options.dsn = '___PUBLIC_DSN___'; - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/dart/guides/flutter/data-management/data-collected/ + + /// Allows sending default personal data, such as IP addresses, + // when available from the SDK's integrations. options.sendDefaultPii = true; - // ___PRODUCT_OPTION_START___ performance - // Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing. - // We recommend adjusting this value in production. + + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. options.tracesSampleRate = 1.0; - // ___PRODUCT_OPTION_END___ performance - // ___PRODUCT_OPTION_START___ session-replay - // Record session replays for 100% of errors and 10% of sessions + + // Capture replays for 10% of all sessions, + // plus for 100% of sessions with an error options.replay.onErrorSampleRate = 1.0; options.replay.sessionSampleRate = 0.1; - // ___PRODUCT_OPTION_END___ session-replay }, appRunner: () => runApp( SentryWidget( @@ -84,13 +94,41 @@ Future main() async { } ``` +## Send Logs + +Call `Sentry.logger` from your application code after initialization to send structured logs at different levels. You can add attributes to make logs easier to search and filter. + +See Set Up Logs for all available logging methods and message formatting. + +```dart +Sentry.logger.info('Order completed', attributes: { + 'order_id': SentryAttribute.string('12345'), + 'total': SentryAttribute.double(99.99), +}); + +Sentry.logger.warn('Slow operation detected'); +Sentry.logger.error('Validation failed'); +``` + +If you use the Dart `logging` package, add the `sentry_logging` integration to send its records to Sentry. + +## Send Application Metrics + +Call `Sentry.metrics` from your application code after initialization to send counters, gauges, and distributions. Add attributes to filter and group metrics in Sentry. + +See Set Up Metrics for metric types, attributes, and configuration options. + +```dart +Sentry.metrics.count('checkout.failed', 1); +Sentry.metrics.gauge('queue.depth', 42); +Sentry.metrics.distribution('api_latency', 187, unit: 'millisecond'); +``` + ## Verify Your Setup Let's test your setup and confirm that data reaches your Sentry project. -### Issues - -To verify that Sentry captures errors and creates issues in your Sentry project, add this intentional error to your application: +Add this intentional error to your application: ```dart import 'package:sentry_flutter/sentry_flutter.dart'; @@ -105,15 +143,11 @@ try { } ``` - - - - - +Run your app to send the test error to Sentry: - - - +```bash +flutter run +``` ### View Captured Data in Sentry @@ -129,9 +163,7 @@ Now's a good time to customize your setup and look into more advanced topics. Our next recommended steps for you are: - Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup -- Continue to customize your configuration - Add readable stack traces to errors -- Learn about the features of Sentry's Flutter SDK - Add performance instrumentation to your app diff --git a/includes/quick-start-features-expandable.mdx b/includes/quick-start-features-expandable.mdx index a5f564a5cb467..5a5698e0cdae6 100644 --- a/includes/quick-start-features-expandable.mdx +++ b/includes/quick-start-features-expandable.mdx @@ -97,6 +97,11 @@ import { FeatureInfo } from "sentry-docs/components/featureInfo"; @@ -106,6 +111,15 @@ import { FeatureInfo } from "sentry-docs/components/featureInfo"; diff --git a/includes/tracing/dart-quick-start-verify-tracing-splitlayout.mdx b/includes/tracing/dart-quick-start-verify-tracing-splitlayout.mdx deleted file mode 100644 index 3ca0aee8a780e..0000000000000 --- a/includes/tracing/dart-quick-start-verify-tracing-splitlayout.mdx +++ /dev/null @@ -1,10 +0,0 @@ -### Tracing - -To test your tracing configuration, create a custom transaction and span: - -```dart -final transaction = Sentry.startTransaction('test-transaction', 'task'); -final span = transaction.startChild('test-span'); -await span.finish(); -await transaction.finish(); -``` diff --git a/includes/tracing/python-quick-start-verify-tracing-splitlayout.mdx b/includes/tracing/python-quick-start-verify-tracing-splitlayout.mdx deleted file mode 100644 index ecda5df7f65d7..0000000000000 --- a/includes/tracing/python-quick-start-verify-tracing-splitlayout.mdx +++ /dev/null @@ -1,20 +0,0 @@ -### Tracing - -To test your tracing configuration, create a custom transaction and span: - -```py {tabTitle: Transaction Mode (Default)} -import sentry_sdk - -with sentry_sdk.start_transaction(op="task", name="Transaction Name"): - span = sentry_sdk.start_span(name="Custom Span Name") - span.finish() - -``` -```py {tabTitle: Stream Mode} -import sentry_sdk - -with sentry_sdk.traces.start_span(name="Service Span Name", attributes={"sentry.op": "task"}, parent_span=None): - span = sentry_sdk.traces.start_span(name="Custom Span Name") - span.end() - -``` diff --git a/platform-includes/getting-started-prerequisites/dart.mdx b/platform-includes/getting-started-prerequisites/dart.mdx new file mode 100644 index 0000000000000..9675f9bacf075 --- /dev/null +++ b/platform-includes/getting-started-prerequisites/dart.mdx @@ -0,0 +1,8 @@ +## Prerequisites + +These instructions use Sentry Dart SDK v10. You need: + +- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/) +- An application using **Dart 3.12.0** or later + +For an existing Sentry integration, review the [v10 breaking changes](https://github.com/getsentry/sentry-dart/releases/tag/10.0.0) before upgrading. diff --git a/src/components/featureInfo.tsx b/src/components/featureInfo.tsx index 6b893b539cae5..9e792259c1735 100644 --- a/src/components/featureInfo.tsx +++ b/src/components/featureInfo.tsx @@ -159,6 +159,7 @@ const FEATURE_DATA: Record< type FeatureInfoProps = { features: FeatureKey[]; + overrides?: Partial>; type: 'learnMore' | 'findInSentry'; }; @@ -169,11 +170,11 @@ type FeatureInfoProps = { * @param features - Array of feature keys to display * @param type - learnMore shows feature descriptions, findInSentry shows navigation help */ -export function FeatureInfo({features, type}: FeatureInfoProps) { +export function FeatureInfo({features, overrides, type}: FeatureInfoProps) { return (
    {features.map(key => { - const feature = FEATURE_DATA[key]; + const feature = {...FEATURE_DATA[key], ...overrides?.[key]}; if (type === 'learnMore') { return ( From 6fabf68cf015ef7e51935e518195640b82378f24 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 13:17:38 +0100 Subject: [PATCH 003/141] docs(develop): Broaden invalid client report reason (#20595) ## DESCRIBE YOUR PR Broadens the `invalid` discard reason to cover any data that is dropped because it is invalid, including data in an invalid SDK state, not only data that fails validation. It applies only when no more specific reason fits. The case that prompted this: transaction-based SDKs drop child spans that finish after their transaction was sent. A child span can't outlive its transaction, so the span is invalid, but it didn't strictly "fail validation." JS already reports this case as `invalid`. We discussed this in the SDK team channel. New wording: "Telemetry item failed validation or was otherwise invalid, and no more specific reason applies." The reason is already registered, so this only changes the spec. This bumps the spec to `1.26.0` and sets the discard-reasons section's `since` to `1.26.0`, following the spec lifecycle. Refs getsentry/sentry-rust#1397 ## 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 @szokeasaurusrex. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3ACUCRT2B70%3A1793710228.570199) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3ACUCRT2B70%3A1793710228.570199/?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> --- develop-docs/sdk/telemetry/client-reports.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/develop-docs/sdk/telemetry/client-reports.mdx b/develop-docs/sdk/telemetry/client-reports.mdx index b824451590bf9..698521ec97b1e 100644 --- a/develop-docs/sdk/telemetry/client-reports.mdx +++ b/develop-docs/sdk/telemetry/client-reports.mdx @@ -2,12 +2,15 @@ title: Client Reports description: SDK self-reporting protocol for tracking discarded events and their discard reasons. spec_id: sdk/telemetry/client-reports -spec_version: 1.25.0 +spec_version: 1.26.0 spec_status: stable spec_depends_on: - id: sdk/foundations/transport/envelopes version: ">=1.0.0" spec_changelog: + - version: 1.26.0 + date: 2026-11-06 + summary: Broadened `invalid` discard reason to cover any data dropped because it is invalid - version: 1.25.0 date: 2026-10-08 summary: Clarified that discarded envelopes are counted per contained item, not as a quantity of 1 @@ -366,7 +369,7 @@ Each outcome object in `discarded_events` has: - + ### Discard Reasons @@ -387,7 +390,7 @@ The following discard reasons are defined for `discarded_events`: | `backpressure` | 1.13.0 | Downsampling due to system load. | | `buffer_overflow` | 1.15.0 | SDK internal buffer (e.g., breadcrumbs buffer) overflowed. | | `ignored` | 1.16.0 | Telemetry item was ignored by the SDK (e.g., a span was ignored by `ignore_spans`; can also be used by other deny-list mechanisms). | -| `invalid` | 1.17.0 | Failed validation (e.g., replay session exceeded maximum allowed length). | +| `invalid` | 1.17.0 | Telemetry item failed validation or (since 1.26.0) was otherwise invalid, and no more specific reason applies. | | `no_parent_span` | 1.22.0 | Span was not started or dropped because no parent span was present at span start (for example, auto-instrumented spans suppressed when the request happens outside an active span). | | `callback_error` | 1.24.0 | A user-provided callback (e.g., `before_send`, `traces_sampler`) threw an error. | From b9fb178e067f2fa6a6db85a6f3e951d5a1fc07ce 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, 10 Nov 2026 14:29:31 +0000 Subject: [PATCH 004/141] Bump API schema to 7caf510a (#20690) 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 1856093f7545c..758e20ae6e45f 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 = 'd3da6979e213d75071f154a31e671870ace17084'; +const SENTRY_API_SCHEMA_SHA = '7caf510a28998beb9a2ff86bdb0d001bea5d7560'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 0d261a8505eb8649f7794166e8b64212c8986d8c 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, 10 Nov 2026 14:38:07 +0000 Subject: [PATCH 005/141] Bump API schema to 411ccf67 (#20691) 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 758e20ae6e45f..0ea0b3007585b 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 = '7caf510a28998beb9a2ff86bdb0d001bea5d7560'; +const SENTRY_API_SCHEMA_SHA = '411ccf67994d010bf15816294b5658653129d3f5'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From c61ca28e880c4c9e789bd809b599e44021d67135 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 15:39:03 +0100 Subject: [PATCH 006/141] docs(otlp): Remove beta and alpha callouts from OTLP pages (#20649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR The OTLP traces and logs endpoints went GA in May 2026, but the docs still show the "open beta" banner. This PR removes the banner from: - `docs/concepts/otlp/index.mdx` (the [OTLP landing page](https://docs.sentry.io/concepts/otlp/)) - `docs/concepts/otlp/direct/traces.mdx` - `docs/concepts/otlp/direct/logs.mdx` It also removes the **alpha** stability callout from `docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx`, at the docs owner's request. Note: upstream, the exporter in `opentelemetry-collector-contrib` (`exporter/sentryexporter/metadata.yaml`) is still `alpha: [traces, logs]`. Promoting it there is being discussed separately with the code owners. GA references: - getsentry/relay#5951 moves `relay-otlp-traces-endpoint` and `relay-otel-logs-endpoint` into `GRADUATED_FEATURE_FLAGS` - getsentry/sentry#115049 and getsentry/sentry#115051 ("The OTLP endpoints are GA") - getsentry/sentry-options-automator#7708 **Not changed:** - `docs/concepts/otlp/direct/claude-platform.mdx` still includes the open beta banner. Anthropic's OpenTelemetry export on the Claude Platform is itself in beta, and the page already says so in its body text. Reviewers: should that page drop the Sentry banner too and rely only on the body text? Related: the announcement discussion getsentry/sentry#85902 still says "Open Beta" and may need a GA update. ## 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 @dingsdax. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC096V5NJXQU%3A1794241656.085869) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC096V5NJXQU%3A1794241656.085869/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Johannes Daxböck <114897+dingsdax@users.noreply.github.com> --- docs/concepts/otlp/direct/logs.mdx | 2 -- docs/concepts/otlp/direct/traces.mdx | 2 -- docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx | 4 ---- docs/concepts/otlp/index.mdx | 2 -- 4 files changed, 10 deletions(-) diff --git a/docs/concepts/otlp/direct/logs.mdx b/docs/concepts/otlp/direct/logs.mdx index 19a40c40164f4..5020f113996f5 100644 --- a/docs/concepts/otlp/direct/logs.mdx +++ b/docs/concepts/otlp/direct/logs.mdx @@ -6,8 +6,6 @@ description: "Send OpenTelemetry logs directly to Sentry without a Sentry SDK." keywords: ["otlp", "otel", "opentelemetry", "logs", "logging"] --- - - Send logs directly from your OpenTelemetry SDK to Sentry's OTLP endpoint. You can find your endpoint URL and auth key in [Project settings > Client Keys (DSN)](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/:projectId/keys/). ## Environment Variables diff --git a/docs/concepts/otlp/direct/traces.mdx b/docs/concepts/otlp/direct/traces.mdx index 4a55b3a2c7f83..30ac98f648ff7 100644 --- a/docs/concepts/otlp/direct/traces.mdx +++ b/docs/concepts/otlp/direct/traces.mdx @@ -6,8 +6,6 @@ description: "Send OpenTelemetry traces directly to Sentry without a Sentry SDK. keywords: ["otlp", "otel", "opentelemetry", "traces", "tracing"] --- - - Send traces directly from your OpenTelemetry SDK to Sentry's OTLP endpoint. You can find your endpoint URL and auth key in [Project settings > Client Keys (DSN)](https://sentry.io/orgredirect/organizations/:orgslug/settings/projects/:projectId/keys/). ## Environment Variables diff --git a/docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx b/docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx index 1f2cef1258f70..66a1b2f0023ab 100644 --- a/docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx +++ b/docs/concepts/otlp/forwarding/pipelines/sentry-exporter.mdx @@ -5,10 +5,6 @@ sidebar_order: 15 description: "Route OpenTelemetry traces and logs from multiple services to different Sentry projects through a single collector instance." keywords: ["otlp", "otel", "opentelemetry", "collector", "exporter", "routing"] --- - - The Sentry Exporter has **alpha** stability for traces and logs. Configuration options and behavior may change. - - The Sentry Exporter routes telemetry from multiple services to different Sentry projects through a single collector instance. Without it, you'd need to configure separate DSNs for each project or set up additional routing connectors. diff --git a/docs/concepts/otlp/index.mdx b/docs/concepts/otlp/index.mdx index c74e2f1862d9e..c728b56a28e22 100644 --- a/docs/concepts/otlp/index.mdx +++ b/docs/concepts/otlp/index.mdx @@ -5,8 +5,6 @@ description: "Learn how to send OpenTelemetry traces and logs to Sentry." keywords: ["otlp", "otel", "opentelemetry"] --- - - Sentry can ingest OpenTelemetry traces and logs via OTLP endpoints, either directly from an [OTel SDK](https://opentelemetry.io/docs/languages/) or through a pipeline tool like the [OpenTelemetry Collector](/concepts/otlp/forwarding/pipelines/collector/). Sentry does not support OTLP metrics at this time. ## Linking Traces with a Sentry SDK From f8925264d4ffc51220e1b928d15f1b1d258e48e9 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Tue, 10 Nov 2026 10:00:04 -0500 Subject: [PATCH 007/141] docs(cloudflare): Document the isStreamingResponse option (#20092) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR This documents the `isStreamingResponse` option of the Cloudflare SDK (getsentry/sentry-javascript#24932) in the Cloudflare section of the options page. It explains what `true`, `false`, and `undefined` do, which responses the SDK treats as streamed by default (now including RSC `text/x-component` responses without a `Content-Length`), and shows the streamed SSR example for HTML. getsentry/sentry-javascript#24932 merged on 2026-10-19 and isn't released yet. `availableSince` is set to `11.9.0`, the next minor. Update the version if the release differs, and merge only after the release is out. ## 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/) via **Jan Peer Stöcklmair**. -- [View Junior Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA6TD3QRK%3A1792429376.732779) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA6TD3QRK%3A1792429376.732779/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan VamPeer Stöcklmair --- .../common/configuration/options.mdx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index 7ddb2380fce5a..a5ae09f8897e8 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -617,6 +617,28 @@ Propagation over `stub.fetch()` and service binding `fetch()` uses HTTP headers, + + +Overrides whether Sentry treats a `fetch` response as streaming. Use this if your application streams responses, such as HTML rendered with streaming SSR, that Sentry doesn't detect automatically. + +Return `true` to keep the request span open until streaming completes, `false` to end it when the handler returns, or `undefined` to use automatic detection. + +```typescript {filename:instrument.server.ts} +import { defineCloudflareOptions } from "@sentry/cloudflare"; + +export default defineCloudflareOptions((env) => ({ + dsn: env.SENTRY_DSN, + isStreamingResponse: (response) => + response.headers.get("content-type")?.startsWith("text/html") + ? true + : undefined, +})); +``` + +The callback receives the response and request. It must be synchronous and must not read the response body. + + + From 083a1af824a761f601e5d5ac8f373b63d17d674c Mon Sep 17 00:00:00 2001 From: geoffg-sentry <165922362+geoffg-sentry@users.noreply.github.com> Date: Tue, 10 Nov 2026 10:30:16 -0500 Subject: [PATCH 008/141] Update Codeowners for Legal/Security docs (#20663) ## DESCRIBE YOUR PR We want team review enforcement on these pages ## IS YOUR CHANGE URGENT? - [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:_ - [N/A, no changes] 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) --- .github/CODEOWNERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1e0e19c4bf064..c0a458e9c1fac 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2,8 +2,10 @@ # See https://github.com/getsentry/sentry-docs/pull/13662 on how commented codeowners are tagged -# Requiring review from security team for Content-Security-Policy changes +# Requiring review from security team for CSP, Security/Legal Pages, but not IP Ranges **/vercel.json @getsentry/security +/docs/security-legal-pii/security/ @getsentry/security +/docs/security-legal-pii/security/ip-ranges.mdx # Codeowners listed below are used as a reference for the Sentry team to know who to contact for a given area of the codebase. From ebcdb4cf4cdbb84fe08a966556c6bb818d5a167d Mon Sep 17 00:00:00 2001 From: Michi Hoffmann Date: Tue, 10 Nov 2026 17:11:07 +0100 Subject: [PATCH 009/141] feat(develop-docs): Render span attributes from sentry-conventions (#20638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Replaces #20557. Adds a `` MDX component that renders span attribute tables straight from [`@sentry/conventions`](https://github.com/getsentry/sentry-conventions), so the develop docs stop drifting from the conventions repo. The AI agents module page is the first user. - New `ConventionAttributes` component (with tests), registered in `mdxComponents.ts` - All attribute tables on the AI agents page now render from conventions; footnotes the convention briefs already cover are dropped - Depends on `@sentry/conventions@^0.33.0`, which ships getsentry/sentry-conventions#784 through #788 Preview: https://develop-docs-git-cleptric-featconvention-attributes-component.sentry.dev/sdk/telemetry/traces/modules/ai-agents/ ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Johannes Daxböck Co-authored-by: Claude Opus 5.5 --- .../telemetry/traces/modules/ai-agents.mdx | 99 +++++++++---------- package.json | 1 + pnpm-lock.yaml | 9 ++ .../conventionAttributes/index.spec.tsx | 61 ++++++++++++ src/components/conventionAttributes/index.tsx | 72 ++++++++++++++ src/mdxComponents.ts | 2 + 6 files changed, 191 insertions(+), 53 deletions(-) create mode 100644 src/components/conventionAttributes/index.spec.tsx create mode 100644 src/components/conventionAttributes/index.tsx diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx index ae60466096767..41dfbdd89b7ac 100644 --- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx +++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx @@ -77,7 +77,7 @@ Describes AI agent invocation. Agent invocations represent operations that can include multiple model calls, or some auxiliary work that goes beyond transforming the model input and output. - Span `op` is `"gen_ai.invoke_agent"`. -- Span `name` is `"invoke_agent {gen_ai.agent.name}"`. (e.g. `"invoke_agent Weather Agent"`) **[2]** +- Span `name` is `"invoke_agent {gen_ai.agent.name}"`. (e.g. `"invoke_agent Weather Agent"`) In some agent libraries, the agent name is optional, and some do not provide the user an option to name their agents. In these cases, the span name is `"invoke_agent {call_id}"`, where `call_id` is some user-provided identifier for the agent invocation. For example, `functionId` in Vercel AI. - Attribute `gen_ai.operation.name` is `"invoke_agent"`. - Attribute `gen_ai.agent.name` is 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 is the name of the AI workflow, pipeline or chain within which the agent operates. (e.g. `"weather-pipeline"`) @@ -100,40 +100,46 @@ Additional attributes on the span: ### Request Data -| Attribute | Type | Description | Example | -| :--------------------------------- | :----- | :----------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------- | -| `gen_ai.input.messages` | string | List of dictionaries describing the messages (prompts) sent to the LLM. **[0]**, **[1]** | `'[{"role": "user", "parts": [{"type": "text", "content": "..."}]}]'` | -| `gen_ai.tool.definitions` | string | List of dictionaries describing the available tools. **[0]** | `'[{"name": "random_number", "description": "..."}, ...]'` | -| `gen_ai.system_instructions` | string | The system instructions passed to the model. | `"You are a helpful assistant."` | -| `gen_ai.request.max_tokens` | int | Model configuration parameter. | `500` | -| `gen_ai.request.seed` | string | Seed for reproducible outputs. | `"12345"` | -| `gen_ai.request.frequency_penalty` | float | Model configuration parameter. | `0.5` | -| `gen_ai.request.presence_penalty` | float | Model configuration parameter. | `0.5` | -| `gen_ai.request.temperature` | float | Model configuration parameter. | `0.1` | -| `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"` | + ### 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": "..."}]}]'` | -| `gen_ai.response.finish_reasons` | string | The reason why the model stopped generating. | `"stop"` | -| `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` | + ### Token Usage Data -| Attribute | Type | Description | Example | -| :----------------------------------------- | :--- | :----------------------------------------------------------------------------------------------------------------------------- | :------ | -| `gen_ai.usage.input_tokens` | int | The number of tokens used in the AI input (prompt), including cached tokens. | `60` | -| `gen_ai.usage.cache_read.input_tokens` | int | The number of cached tokens used in the AI input (prompt). | `50` | -| `gen_ai.usage.cache_creation.input_tokens` | int | Tokens written to cache when processing input. | `20` | -| `gen_ai.usage.output_tokens` | int | The number of tokens used in the AI output, including reasoning tokens. | `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` | + ## Embedding Span @@ -148,10 +154,9 @@ This span represents a request to encode input into numeric vector embeddings. Additional attributes on the span: -| Attribute | Type | Description | Example | -| :-------------------------- | :----- | :-------------------------------------- | :-------------- | -| `gen_ai.embeddings.input` | string | Input to embed. | "Hello, world!" | -| `gen_ai.usage.input_tokens` | int | The number of tokens used in the input. | `60` | + ## Execute Tool Span @@ -165,12 +170,14 @@ Describes a tool execution. Additional attributes on the span: -| 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.call.arguments` | string | Arguments of the tool call (stringified). | `'{"max":10}'` | -| `gen_ai.tool.call.result` | string | Result of the tool call (stringified). | `"7"` | + ## Derived by Relay @@ -183,17 +190,3 @@ Relay sets these attributes during ingestion: - `gen_ai.context.window_size` is looked up from the model metadata registry by `gen_ai.response.model`. - `gen_ai.context.utilization` is computed as `gen_ai.usage.total_tokens / gen_ai.context.window_size`. - `gen_ai.cost.input_tokens`, `gen_ai.cost.output_tokens`, and `gen_ai.cost.total_tokens` are calculated from token counts and per-token pricing in the model registry. - - -**[0]:** - -Span attributes only allow primitive data types (like `int`, `float`, `boolean`, `string`). This means you need to use a stringified version of a list of dictionaries. Do NOT set the object/array `[{"foo": "bar"}]` but rather the string `'[{"foo": "bar"}]'` (must be parsable JSON). - -**[1]:** - -Messages use the format `{role, parts}` where `parts` is an array of typed objects: `[{"role": "user", "parts": [{"type": "text", "content": "..."}]}]`. The `role` must be `"user"`, `"assistant"`, `"tool"`, or `"system"`. Each part has a `type`; common types include `"text"` (user-visible content), `"reasoning"` (internal thinking/chain-of-thought), `"tool_call"`, and `"tool_call_response"`. Use `{"type": "reasoning", "content": "..."}` for the model's thinking output — Sentry surfaces it separately and does not render it as a user-visible message in Conversations, so do not represent thinking content as a `"text"` part. For backwards compatibility, the legacy format `{role, content}` is also accepted. - -**[2]** - -In some agent libraries, the agent name is optional, and some do not provide the user an option to name their agents. -In these cases, the span name is `"invoke_agent {call_id}"`, where `call_id` is some user-provided identifier for the agent invocation. For example, `functionId` in Vercel AI. diff --git a/package.json b/package.json index e077145a96ce0..89e6c56a44837 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", "@sentry/browser": "11.6.0", + "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", "@types/mdx": "^2.0.9", "algoliasearch": "^4.23.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be0bb14b16151..87d0e30b39657 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -105,6 +105,9 @@ importers: '@sentry/browser': specifier: 11.6.0 version: 11.6.0 + '@sentry/conventions': + specifier: ^0.33.0 + version: 0.33.0 '@sentry/nextjs': specifier: 11.6.0 version: 11.6.0(@babel/core@7.29.7)(next@15.5.24(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@22.19.11)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.98.0))(react@19.2.4)(webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23)) @@ -3115,6 +3118,10 @@ packages: resolution: {integrity: sha512-ttSRcoLf2kIENDIFzH12aJaVMdxnidMYLvVNwEX/JjXfXaQot8u5M47QmgAFOOhVJ4nQ2uU8wTCh+fwSPrrCfg==} engines: {node: '>=14'} + '@sentry/conventions@0.33.0': + resolution: {integrity: sha512-5aa3g/VOnMoL8yHbfkYIWBYC3BLgMudgRNBTKNMrcMEj1mE9aKIt/CYCG7sasijhiSU4nTcSEzyM2voIVzLCng==} + engines: {node: '>=14'} + '@sentry/core@11.6.0': resolution: {integrity: sha512-PbITT1kfJYKJiS9fH4ZtOcwIONKyt+tUsTZSPtcAjPdkUDOzMKT61MkUa1Ze07VzNtLALT24ZdUOc6d9K4YoKA==} engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'} @@ -10621,6 +10628,8 @@ snapshots: '@sentry/conventions@0.26.0': {} + '@sentry/conventions@0.33.0': {} + '@sentry/core@11.6.0': dependencies: '@sentry/conventions': 0.26.0 diff --git a/src/components/conventionAttributes/index.spec.tsx b/src/components/conventionAttributes/index.spec.tsx new file mode 100644 index 0000000000000..1904e6d1cd95b --- /dev/null +++ b/src/components/conventionAttributes/index.spec.tsx @@ -0,0 +1,61 @@ +import {ATTRIBUTE_METADATA} from '@sentry/conventions/attributes'; +import React from 'react'; +import {renderToStaticMarkup} from 'react-dom/server'; +import {describe, expect, it, vi} from 'vitest'; + +import {ConventionAttributes} from './index'; + +// Vitest compiles JSX with the classic runtime here (tsconfig `jsx: preserve`). +vi.stubGlobal('React', React); + +describe('ConventionAttributes', () => { + it('renders attributes from the conventions package', () => { + const html = renderToStaticMarkup( + + ); + + expect(html).toContain('gen_ai.tool.name'); + expect(html).toContain(ATTRIBUTE_METADATA['gen_ai.tool.name'].type); + expect(html).toContain(ATTRIBUTE_METADATA['gen_ai.tool.name'].brief); + }); + + it('appends page-specific notes to the description', () => { + const html = renderToStaticMarkup( + + ); + + expect(html).toContain('[2]'); + }); + + it('throws on unknown attributes so the build fails', () => { + expect(() => + renderToStaticMarkup() + ).toThrow('unknown attribute "gen_ai.not.a.thing"'); + }); + + it('throws on keys inherited from Object.prototype', () => { + expect(() => + renderToStaticMarkup() + ).toThrow('unknown attribute "constructor"'); + }); + + it('single-quotes stringified JSON examples', () => { + const html = renderToStaticMarkup( + + ); + + expect(html).toContain( + `'${ATTRIBUTE_METADATA['gen_ai.tool.call.arguments'].example}'`.replaceAll( + '"', + '"' + ) + ); + expect(html).toContain( + `"${ATTRIBUTE_METADATA['gen_ai.tool.name'].example}"` + ); + }); +}); diff --git a/src/components/conventionAttributes/index.tsx b/src/components/conventionAttributes/index.tsx new file mode 100644 index 0000000000000..77b4fa4a1d7f4 --- /dev/null +++ b/src/components/conventionAttributes/index.tsx @@ -0,0 +1,72 @@ +import { + ATTRIBUTE_METADATA, + type AttributeMetadata, + type AttributeValue, +} from '@sentry/conventions/attributes'; +import {micromark} from 'micromark'; + +type Props = { + attributes: (string | {key: string; notes?: string})[]; +}; + +const metadata: Record = ATTRIBUTE_METADATA; + +/** + * Renders attribute details from `@sentry/conventions`, so pages don't copy + * types, descriptions, and examples that drift from the source of truth. + */ +export function ConventionAttributes({attributes}: Props) { + const rows = attributes.map(row => { + const {key, notes} = typeof row === 'string' ? {key: row} : row; + // `Object.hasOwn` so keys like `constructor` don't pass as known attributes. + const attribute = Object.hasOwn(metadata, key) ? metadata[key] : undefined; + if (!attribute) { + throw new Error(`: unknown attribute "${key}"`); + } + const description = micromark([attribute.brief, notes].filter(Boolean).join(' ')) + .replace(/^

    /, '') + .replace(/<\/p>$/, ''); + return {key, attribute, description}; + }); + + return ( + + + + + + + + + + + {rows.map(({key, attribute, description}) => ( + + + + {/* Briefs are long; override the site's nowrap rule for non-last columns. */} + + + ))} + +
    AttributeTypeDescriptionExample
    + {key} + {attribute.type} + + {attribute.example !== undefined && ( + {formatExample(attribute.example)} + )} +
    + ); +} + +function formatExample(example: AttributeValue) { + if (typeof example !== 'string') { + return JSON.stringify(example); + } + // Single-quote stringified JSON so its inner double quotes stay readable. + return /^[[{]/.test(example) ? `'${example}'` : `"${example}"`; +} diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index 13d823b180d63..27d17c1f72fe1 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -12,6 +12,7 @@ import {CommunitySupportedPlatforms} from './components/communitySupportedPlatfo import {ConfigKey} from './components/configKey'; import {ConfigValue} from './components/configValue'; import {ContentSeparator} from './components/contentSeparator'; +import {ConventionAttributes} from './components/conventionAttributes'; import {CopyableCard} from './components/copyableCard'; import {CreateGitHubAppForm} from './components/createGitHubAppForm'; import {DefinitionList} from './components/definitionList'; @@ -82,6 +83,7 @@ export function mdxComponents( CliChecksumTable, CommunitySupportedPlatforms, ContentSeparator, + ConventionAttributes, DevDocsCardGrid, PlatformFilter, CodeBlock, From 1a2e1ef8de19ea6bb33e65e6d5bbcb8f5461a95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Tue, 10 Nov 2026 11:15:12 -0500 Subject: [PATCH 010/141] docs(js): Move the Cloudflare quick starts into the framework guides (#19977) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR This moves the pages under Cloudflare → Frameworks into their framework guides as "Quick Start (Cloudflare)", right below the default quick start, for example `/guides/nextjs/cloudflare/`. This applies to Astro, Hono, Next.js, Nuxt, Remix, SvelteKit and TanStack Start. The pages keep their content, and the old URLs redirect. - Next.js on Cloudflare is now a full quick start (wizard, Wrangler configuration, `withSentry` Worker entry for OpenNext and vinext, verification). - The Hydrogen guides move into the React Router guide (Hydrogen 2025.5.0 and later) and the Remix guide (older versions, as "Hydrogen (Legacy)"). - Cloudflare → Frameworks redirects to the Cloudflare quick start, which links to every framework page. - The TanStack Start page now installs `@sentry/tanstackstart-react`, which its code imports, and its Wrangler and source maps sections render again. Each framework with quick starts for more than one runtime also gets [a runtime selector](https://sentry-docs-git-jp-poc-c-runtime-quick-starts.sentry.dev/platforms/javascript/guides/nextjs/cloudflare/). It is static HTML, so the Markdown export for agents has the same links as a "Runtime" list: Image ## Hono decision The Hono page moves as it is: it shows the Cloudflare install and configure steps, and links to the Hono quick start for the rest. The Hono quick start already covers Cloudflare in its runtime tabs, so the alternative is to redirect the old page there. A full Cloudflare quick start and the runtime selector for Hono will come in a follow up, because the Hono guide needs some rework. ## Known issues - No Bun or Deno quick starts for Next.js and Nuxt, because the SDK repo has no tests for them on these runtimes. - The Next.js verify step builds with `opennextjs-cloudflare`, so it does not apply to vinext apps. ## 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) --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- AGENTS.md | 1 + .../common/troubleshooting/index.mdx | 2 +- .../astro.mdx => astro/cloudflare.mdx} | 8 +- .../javascript/guides/astro/index.mdx | 3 +- .../guides/cloudflare/frameworks/index.mdx | 8 - .../guides/cloudflare/frameworks/nextjs.mdx | 127 ------ .../guides/cloudflare/frameworks/nuxt.mdx | 11 - .../javascript/guides/cloudflare/index.mdx | 18 +- .../hono.mdx => hono/cloudflare.mdx} | 3 + .../deploying-on-cloudflare.mdx | 7 - .../javascript/guides/nextjs/cloudflare.mdx | 9 + .../javascript/guides/nextjs/index.mdx | 251 +---------- .../javascript/guides/nuxt/cloudflare.mdx | 11 + .../features/nitro-deployment-presets.mdx | 2 +- .../javascript/guides/nuxt/index.mdx | 105 +---- .../javascript/guides/nuxt/install/index.mdx | 2 +- .../hydrogen.mdx} | 7 +- .../remix.mdx => remix/cloudflare.mdx} | 19 +- .../guides/remix/frameworks/index.mdx | 9 - .../hydrogen-remix.mdx => remix/hydrogen.mdx} | 6 +- .../javascript/guides/remix/index.mdx | 1 + .../cloudflare.mdx} | 8 +- .../javascript/guides/sveltekit/index.mdx | 3 +- .../sveltekit/manual-setup__v10.7.0.mdx | 4 +- .../cloudflare.mdx} | 31 +- .../guides/tanstackstart-react/index.mdx | 1 + .../how-to-use/javascript.remix.mdx | 2 +- .../javascript.astro.mdx | 258 ++++++++++++ .../javascript.nextjs.mdx | 209 ++++++++++ .../javascript.nuxt.mdx | 314 ++++++++++++++ .../javascript.remix.mdx | 388 ++++++++++++++++++ .../javascript.sveltekit.mdx | 358 ++++++++++++++++ .../javascript.astro.mdx | 153 +------ .../javascript.nuxt.mdx | 97 ----- .../javascript.remix.mdx | 182 -------- .../javascript.sveltekit.mdx | 120 +----- .../javascript.nextjs.mdx | 110 +++++ .../getting-started-node/javascript.nuxt.mdx | 130 ++++++ .../javascript.sveltekit.mdx | 2 +- .../javascript.nextjs.mdx | 143 +++++++ redirects.js | 39 +- src/components/docPage/index.tsx | 2 + src/components/runtimeLinks.spec.ts | 70 ++++ src/components/runtimeLinks.ts | 61 +++ src/components/runtimeSelector.tsx | 66 +++ src/components/sidebar/dynamicNav.tsx | 5 +- src/components/sidebar/platformSidebar.tsx | 4 + src/types/frontmatter.ts | 6 + 48 files changed, 2260 insertions(+), 1116 deletions(-) rename docs/platforms/javascript/guides/{cloudflare/frameworks/astro.mdx => astro/cloudflare.mdx} (95%) delete mode 100644 docs/platforms/javascript/guides/cloudflare/frameworks/index.mdx delete mode 100644 docs/platforms/javascript/guides/cloudflare/frameworks/nextjs.mdx delete mode 100644 docs/platforms/javascript/guides/cloudflare/frameworks/nuxt.mdx rename docs/platforms/javascript/guides/{cloudflare/frameworks/hono.mdx => hono/cloudflare.mdx} (96%) delete mode 100644 docs/platforms/javascript/guides/nextjs/best-practices/deploying-on-cloudflare.mdx create mode 100644 docs/platforms/javascript/guides/nextjs/cloudflare.mdx create mode 100644 docs/platforms/javascript/guides/nuxt/cloudflare.mdx rename docs/platforms/javascript/guides/{cloudflare/frameworks/hydrogen-react-router.mdx => react-router/hydrogen.mdx} (97%) rename docs/platforms/javascript/guides/{cloudflare/frameworks/remix.mdx => remix/cloudflare.mdx} (68%) delete mode 100644 docs/platforms/javascript/guides/remix/frameworks/index.mdx rename docs/platforms/javascript/guides/{cloudflare/frameworks/hydrogen-remix.mdx => remix/hydrogen.mdx} (96%) rename docs/platforms/javascript/guides/{cloudflare/frameworks/sveltekit.mdx => sveltekit/cloudflare.mdx} (55%) rename docs/platforms/javascript/guides/{cloudflare/frameworks/tanstack-start.mdx => tanstackstart-react/cloudflare.mdx} (89%) create mode 100644 platform-includes/getting-started-cloudflare/javascript.astro.mdx create mode 100644 platform-includes/getting-started-cloudflare/javascript.nextjs.mdx create mode 100644 platform-includes/getting-started-cloudflare/javascript.nuxt.mdx create mode 100644 platform-includes/getting-started-cloudflare/javascript.remix.mdx create mode 100644 platform-includes/getting-started-cloudflare/javascript.sveltekit.mdx create mode 100644 platform-includes/getting-started-node/javascript.nextjs.mdx create mode 100644 platform-includes/getting-started-node/javascript.nuxt.mdx create mode 100644 platform-includes/getting-started-wizard-files/javascript.nextjs.mdx create mode 100644 src/components/runtimeLinks.spec.ts create mode 100644 src/components/runtimeLinks.ts create mode 100644 src/components/runtimeSelector.tsx diff --git a/AGENTS.md b/AGENTS.md index 0c692c1be4f92..90f746d72ed98 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -98,6 +98,7 @@ When writing requirements in `develop-docs/`: - **ALWAYS** run `/brand-guidelines` to audit any user-facing content before committing. See `.agents/skills/brand-guidelines/SKILL.md` - Use `docs-review` skill for Sentry style and voice review. See `.claude/skills/docs-review/SKILL.md` - Use `technical-docs` skill when writing or reviewing SDK documentation. See `.claude/skills/technical-docs/SKILL.md` +- Quick starts set `runtime` (for example `node` or `cloudflare`) in their frontmatter. The page then shows a runtime selector at the top that links the quick starts of the same guide for the other runtimes ## LLM-Friendly MD Exports diff --git a/docs/platforms/javascript/common/troubleshooting/index.mdx b/docs/platforms/javascript/common/troubleshooting/index.mdx index 1fb9a9adef7e9..e97f66b03a2b2 100644 --- a/docs/platforms/javascript/common/troubleshooting/index.mdx +++ b/docs/platforms/javascript/common/troubleshooting/index.mdx @@ -636,7 +636,7 @@ Learn more about fixing these caching issues in the - + diff --git a/docs/platforms/javascript/guides/astro/index.mdx b/docs/platforms/javascript/guides/astro/index.mdx index 85729298541b1..8e03a67597c9b 100644 --- a/docs/platforms/javascript/guides/astro/index.mdx +++ b/docs/platforms/javascript/guides/astro/index.mdx @@ -5,6 +5,7 @@ sdk: sentry.javascript.astro categories: - browser - server +runtime: node --- ## Prerequisites @@ -18,7 +19,7 @@ You need: -This SDK currently only works on Node runtimes, such as Node adapter or Vercel with Lambda functions. If you use Cloudflare Workers or Cloudflare Pages, refer to our [Astro on Cloudflare guide](/platforms/javascript/guides/cloudflare/frameworks/astro/). Other non-Node runtimes, like Vercel's Edge runtime, are currently **not supported**. +This SDK currently only works on Node runtimes, such as Node adapter or Vercel with Lambda functions. If you use Cloudflare Workers or Cloudflare Pages, refer to our [Astro on Cloudflare guide](/platforms/javascript/guides/astro/cloudflare/). Other non-Node runtimes, like Vercel's Edge runtime, are currently **not supported**. diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/index.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/index.mdx deleted file mode 100644 index 91bb3bbe66db2..0000000000000 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/index.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: Frameworks on Cloudflare -description: "Learn how to set up the Cloudflare SDK with popular frameworks like Astro, SvelteKit, and Remix." ---- - -You can use the Sentry Cloudflare SDK in combination with Sentry meta-framework SDKs like SvelteKit or Remix to instrument your Cloudflare Pages applications that use these frameworks. - - diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/nextjs.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/nextjs.mdx deleted file mode 100644 index 6d4f78393a76a..0000000000000 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/nextjs.mdx +++ /dev/null @@ -1,127 +0,0 @@ ---- -title: Next.js on Cloudflare -description: "Learn how to configure Sentry for your Next.js application deployed on Cloudflare Workers." ---- - -The Sentry Next.js SDK supports Next.js applications deployed on Cloudflare Workers, but requires additional configuration to run in this environment. - -## Prerequisites - -Before you begin, make sure you have: - -- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/) -- A [Cloudflare Workers project](https://dash.cloudflare.com/workers/overview) -- A Next.js application configured for Cloudflare Workers with [OpenNext](https://opennext.js.org/cloudflare) or [vinext](https://github.com/cloudflare/vinext) -- The Sentry SDK [installed and configured](/platforms/javascript/guides/nextjs/) in your Next.js application - - - If you haven't deployed a Next.js app to Cloudflare Workers before, follow - Cloudflare's [Next.js deployment - guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/nextjs/) - to get started. - - -## Configure Wrangler - -Once you've set up Sentry in your Next.js application following the [installation guide](/platforms/javascript/guides/nextjs/), you'll need to configure [Wrangler](https://developers.cloudflare.com/workers/wrangler/) with the required compatibility settings. - -First, add the `nodejs_compat` [compatibility flag](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) to configure the Cloudflare Workers runtime to provide the Node.js APIs required by the Sentry SDK. - -```json {tabTitle:wrangler.jsonc} -{ - "compatibility_flags": ["nodejs_compat"] -} -``` - -```toml {tabTitle:wrangler.toml} -compatibility_flags = ["nodejs_compat"] -``` - -Then, set the [compatibility date](https://developers.cloudflare.com/workers/configuration/compatibility-dates/) to `2025-08-16` or later. This is required to introduce `https.request` to the Cloudflare Workers runtime, which the Sentry SDK needs to send data. - -Your final configuration should look like this: - -```json {tabTitle:wrangler.jsonc} -{ - "compatibility_flags": ["nodejs_compat"], - "compatibility_date": "2025-08-16" -} -``` - -```toml {tabTitle:wrangler.toml} -compatibility_flags = ["nodejs_compat"] -compatibility_date = "2025-08-16" -``` - -## Wrap the Worker Entry - - - -If you build your app with vinext, skip to [Wrap the Worker Entry With vinext](#wrap-the-worker-entry-with-vinext). - -On Cloudflare Workers, your Next.js app runs inside the Worker entry that OpenNext generates (`.open-next/worker.js`). Wrap this entry with `withSentry` from `@sentry/nextjs/cloudflare` to get the same Next.js spans as on Node.js, plus Cloudflare data such as spans for D1 queries. Each request gets one `http.server` span with the name of the Next.js route, and the Next.js spans become its children. - -`@sentry/nextjs` depends on `@sentry/cloudflare`, so you don't need to install another package. - -First, create a [custom Worker](https://opennext.js.org/cloudflare/howtos/custom-worker) that imports the handler of OpenNext and wraps it with `withSentry`. Pass your Sentry options to `withSentry`: - -```typescript {filename:worker.ts} -import * as Sentry from "@sentry/nextjs/cloudflare"; -// @ts-ignore `.open-next/worker.js` is generated at build time -import handler from "./.open-next/worker.js"; - -// Re-export the Durable Objects your app uses, for example for the DO Queue and DO Tag Cache of OpenNext -// @ts-ignore `.open-next/worker.js` is generated at build time -export { DOQueueHandler, DOShardedTagCache } from "./.open-next/worker.js"; - -export default Sentry.withSentry( - () => ({ - dsn: "___PUBLIC_DSN___", - - // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing. - // Learn more at - // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#tracesSampleRate - tracesSampleRate: 1.0, - }), - handler -); -``` - -Then, point `main` in your Wrangler configuration to this file: - -```json {tabTitle:wrangler.jsonc} -{ - "main": "./worker.ts" -} -``` - -```toml {tabTitle:wrangler.toml} -main = "./worker.ts" -``` - -### Wrap the Worker Entry With vinext - - - -With [vinext](https://github.com/cloudflare/vinext), you don't need a custom Worker. Add the Sentry Vite plugin to your Vite config, and it wraps your Worker entry with `withSentry` from `@sentry/nextjs/cloudflare` automatically. - -### Server and Edge Configuration in the Worker - -In the Worker, `withSentry` creates the Sentry client. `Sentry.init()` in `sentry.server.config.ts` and `sentry.edge.config.ts` still runs, but it creates no client and only applies the `release` option. Set all other options in `withSentry`. - -On Workers, these two files are optional. Keep them if you use `next dev`, which runs on Node.js and doesn't use the Worker entry. They also pass on the release that `withSentryConfig` sets at build time. - -Keep `instrumentation.ts`, because Next.js reports server errors, for example from Server Components and route handlers, through its `onRequestError` hook. - -The SDK takes the release from the first of these sources that has a value: - -1. The `release` option of `withSentry` -2. The `SENTRY_RELEASE` environment variable -3. The ID of the `CF_VERSION_METADATA` binding -4. The `release` option of `Sentry.init()` in `sentry.server.config.ts` or `sentry.edge.config.ts`, or else the release that `withSentryConfig` sets at build time - -On Node.js, the build release comes before `SENTRY_RELEASE`. - -## Deploy - -Build and deploy your Next.js application to Cloudflare Workers. You should start seeing error events, traces, and logs appear in Sentry. diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/nuxt.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/nuxt.mdx deleted file mode 100644 index 3b3444b1cf8a7..0000000000000 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/nuxt.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Nuxt on Cloudflare -description: "Learn how to instrument your Nuxt app on Cloudflare Workers and Pages and capture your first errors with Sentry." ---- - -This guide will show you how to set up the SDK with Nitro's `cloudflare_module` (or their deprecated `cloudflare-pages`) deployment preset. - - diff --git a/docs/platforms/javascript/guides/cloudflare/index.mdx b/docs/platforms/javascript/guides/cloudflare/index.mdx index 76049c2c54552..51632e610ec6b 100644 --- a/docs/platforms/javascript/guides/cloudflare/index.mdx +++ b/docs/platforms/javascript/guides/cloudflare/index.mdx @@ -14,14 +14,14 @@ This guide covers Cloudflare Workers. If you're deploying a Cloudflare Pages app If you're using any of the listed frameworks, follow their specific setup instructions: -- **[Astro](/platforms/javascript/guides/cloudflare/frameworks/astro/)** -- **[Hono](/platforms/javascript/guides/hono/)** (with @sentry/hono) -- **[Hydrogen](/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/)** -- **[Next.js](/platforms/javascript/guides/cloudflare/frameworks/nextjs/)** -- **[Nuxt](/platforms/javascript/guides/cloudflare/frameworks/nuxt/)** -- **[Remix](/platforms/javascript/guides/cloudflare/frameworks/remix/)** -- **[SvelteKit](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/)** -- **[TanStack Start](/platforms/javascript/guides/cloudflare/frameworks/tanstack-start/)** +- **[Astro](/platforms/javascript/guides/astro/cloudflare/)** +- **[Hono](/platforms/javascript/guides/hono/cloudflare/)** (with @sentry/hono) +- **[Hydrogen](/platforms/javascript/guides/react-router/hydrogen/)** +- **[Next.js](/platforms/javascript/guides/nextjs/cloudflare/)** +- **[Nuxt](/platforms/javascript/guides/nuxt/cloudflare/)** +- **[Remix](/platforms/javascript/guides/remix/cloudflare/)** +- **[SvelteKit](/platforms/javascript/guides/sveltekit/cloudflare/)** +- **[TanStack Start](/platforms/javascript/guides/tanstackstart-react/cloudflare/)** The Cloudflare Workers runtime has some platform-specific limitations that @@ -178,7 +178,7 @@ At this point, you should have integrated Sentry into your Cloudflare Worker. He -- Check out setup instructions for popular [frameworks on Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/) +- Using a framework? Follow its setup instructions, linked at the top of this page - Find various support topics in troubleshooting - [Get support](https://www.sentry.help/en/) diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/hono.mdx b/docs/platforms/javascript/guides/hono/cloudflare.mdx similarity index 96% rename from docs/platforms/javascript/guides/cloudflare/frameworks/hono.mdx rename to docs/platforms/javascript/guides/hono/cloudflare.mdx index 6a7df59814d50..a07aa937e23da 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/hono.mdx +++ b/docs/platforms/javascript/guides/hono/cloudflare.mdx @@ -1,6 +1,9 @@ --- title: Hono on Cloudflare description: "Learn how to instrument your Hono app on Cloudflare Workers with Sentry." +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 +runtime: cloudflare --- Hono has its own dedicated SDK (`@sentry/hono`) with first-class support for Cloudflare Workers, Node.js, Bun, and Deno. It works as Hono middleware, so you can drop it into an existing app. diff --git a/docs/platforms/javascript/guides/nextjs/best-practices/deploying-on-cloudflare.mdx b/docs/platforms/javascript/guides/nextjs/best-practices/deploying-on-cloudflare.mdx deleted file mode 100644 index 2fc24a8629806..0000000000000 --- a/docs/platforms/javascript/guides/nextjs/best-practices/deploying-on-cloudflare.mdx +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Deploying on Cloudflare Workers -description: "Learn how to configure Sentry for your Next.js application deployed on Cloudflare Workers." -sidebar_section: configuration ---- - -For instructions on deploying your Next.js application with Sentry on Cloudflare Workers, see the [Next.js on Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/nextjs/) guide. diff --git a/docs/platforms/javascript/guides/nextjs/cloudflare.mdx b/docs/platforms/javascript/guides/nextjs/cloudflare.mdx new file mode 100644 index 0000000000000..c12cffdcce951 --- /dev/null +++ b/docs/platforms/javascript/guides/nextjs/cloudflare.mdx @@ -0,0 +1,9 @@ +--- +title: Next.js on Cloudflare +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 +description: "Learn how to set up Sentry in your Next.js application deployed on Cloudflare Workers and capture your first errors." +runtime: cloudflare +--- + + diff --git a/docs/platforms/javascript/guides/nextjs/index.mdx b/docs/platforms/javascript/guides/nextjs/index.mdx index 71fff4aae652d..3086deec71c81 100644 --- a/docs/platforms/javascript/guides/nextjs/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/index.mdx @@ -5,256 +5,9 @@ sdk: sentry.javascript.nextjs categories: - browser - server +runtime: node --- - - - - -## Install - -### Run the Installation Wizard - -Run the Sentry wizard to automatically install the SDK and configure Sentry in your Next.js application: - -```bash -npx @sentry/wizard@latest -i nextjs -``` - -The wizard asks whether you want to enable **Tracing** and **Session Replay**, route browser requests through your server to avoid ad blockers, and create an example page. To match the configuration in this guide, answer **Yes** to each. - -Prefer to set things up yourself? Check out the [Manual Setup](/platforms/javascript/guides/nextjs/manual-setup/) guide. - -## Configure - -**Error Monitoring** starts working as soon as you call `Sentry.init()`. **Logs** and **Application Metrics** need no extra configuration, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-). -This guide also enables **Tracing**, **Session Replay**, and **User Feedback**. - - - -### Initialize the SDK - -Next.js runs code in different environments, so the wizard creates a separate initialization file for each in your project's root directory (or `src` folder): - -- `instrumentation-client.ts`: runs in the browser -- `sentry.server.config.ts`: runs in the Node.js runtime -- `sentry.edge.config.ts`: runs in the Edge runtime - -Use the tabs in the code box below to view each file. - -The snippets also turn on: - -- Tracing: via `tracesSampleRate` in all three files -- Session Replay: via `replayIntegration()`, sampled with `replaysSessionSampleRate` and `replaysOnErrorSampleRate` -- User Feedback: via `feedbackIntegration()`. The wizard doesn't add this integration, so add it to `instrumentation-client.ts` yourself. - -Don't need a feature? Remove its integration and options from the snippets. - -```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - integrations: [ - // enables Session Replay - Sentry.replayIntegration(), - // enables User Feedback - Sentry.feedbackIntegration({ - // Additional integration configuration goes in here - colorScheme: "system", - }), - ], - - // Enables Tracing. - // Set to 1.0 to capture 100% of spans for tracing. - // We recommend reducing this value in production. - tracesSampleRate: 1.0, - - // Capture replays for 10% of all sessions, - // plus for 100% of sessions with an error - // Requires Sentry.replayIntegration() - replaysSessionSampleRate: 0.1, - replaysOnErrorSampleRate: 1.0, -}); - -// Instruments client-side navigations -export const onRouterTransitionStart = Sentry.captureRouterTransitionStart; -``` - -```typescript {tabTitle:Server} {filename:sentry.server.config.ts} -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - - // Enables Tracing. - // Set to 1.0 to capture 100% of spans for tracing. - // We recommend reducing this value in production. - tracesSampleRate: 1.0, -}); -``` - -```typescript {tabTitle:Edge} {filename:sentry.edge.config.ts} -import * as Sentry from "@sentry/nextjs"; - -Sentry.init({ - dsn: "___PUBLIC_DSN___", - - // Enables Tracing. - // Set to 1.0 to capture 100% of spans for tracing. - // We recommend reducing this value in production. - tracesSampleRate: 1.0, -}); -``` - -### Register the Server-Side Configuration - -The wizard creates a [Next.js instrumentation file](https://nextjs.org/docs/app/guides/instrumentation) named `instrumentation.ts`. It loads your server and edge configurations, and exports `onRequestError` to capture errors from Server Components, route handlers, and middleware. - -```typescript {filename:instrumentation.ts} -import * as Sentry from "@sentry/nextjs"; - -export async function register() { - if (process.env.NEXT_RUNTIME === "nodejs") { - await import("./sentry.server.config"); - } - - if (process.env.NEXT_RUNTIME === "edge") { - await import("./sentry.edge.config"); - } -} - -export const onRequestError = Sentry.captureRequestError; -``` - -### Capture React Render Errors - -If you use the App Router, the wizard adds Sentry to `app/global-error.tsx` to capture React rendering errors. If you use the Pages Router, it adds Sentry to `pages/_error.tsx` instead. - - - -### Apply Instrumentation to Your App - -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"; - -const nextConfig: NextConfig = { - // Your existing Next.js configuration -}; - -export default withSentryConfig(nextConfig, { - org: "___ORG_SLUG___", - project: "___PROJECT_SLUG___", - - // Only print logs for uploading source maps in CI - silent: !process.env.CI, - - // Upload a larger set of source maps for prettier stack traces (increases build time) - widenClientFileUpload: true, - - // Route browser requests to Sentry through a Next.js rewrite to avoid ad blockers. - // This can increase your server load as well as your hosting bill. - tunnelRoute: "/monitoring", -}); -``` - -### Add Readable Stack Traces With Source Maps - -The wizard stores your auth token in `.env.sentry-build-plugin` and adds the file to `.gitignore`. The Sentry build plugin uses this token to upload source maps when you build your app locally. - -For CI/CD builds, set the `SENTRY_AUTH_TOKEN` environment variable in your build system instead. - - - -```bash {filename:.env.sentry-build-plugin} -SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ -``` - -### Control the Data You Send to Sentry - - - -## Send Logs - - - -If you're already logging with another library, use an integration to capture those logs as Sentry Logs automatically: - -- `consoleLoggingIntegration` for `console` calls -- Consola -- Pino -- Winston - -## Send Application Metrics - - - -In the Node.js runtime, `nodeRuntimeMetricsIntegration` also collects runtime health metrics automatically. - -## Verify Your Setup - -Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. - -The wizard created an example page that sends a test error from both your frontend and your backend: - -1. Start your development server: - - ```bash - npm run dev - ``` - -2. Open [localhost:3000/sentry-example-page](http://localhost:3000/sentry-example-page) in your browser. -3. Click **Throw Sample Error**. - -If you skipped the example page, add a test button to one of your pages instead. Clicking it will trigger an error for Sentry to capture. - -```tsx {filename:app/page.tsx} -"use client"; - -export default function Page() { - return ( - - ); -} -``` - - - -### View Captured Data in Sentry - -Now, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear). - - - -## Next Steps - -At this point, you should have integrated Sentry into your Next.js 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 agents built with the Vercel AI SDK, LangChain, and more -- Set up tunneling to avoid ad blockers blocking Sentry events, if you didn't enable it in the wizard - - - -- If you encountered issues with our installation wizard, try [setting up Sentry manually](/platforms/javascript/guides/nextjs/manual-setup/) -- Find various topics in Troubleshooting -- [Get support](https://www.sentry.help/en/) - - - - + diff --git a/docs/platforms/javascript/guides/nuxt/cloudflare.mdx b/docs/platforms/javascript/guides/nuxt/cloudflare.mdx new file mode 100644 index 0000000000000..312a366e6a20c --- /dev/null +++ b/docs/platforms/javascript/guides/nuxt/cloudflare.mdx @@ -0,0 +1,11 @@ +--- +title: Nuxt on Cloudflare +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 +description: "Learn how to instrument your Nuxt app on Cloudflare Workers and Pages and capture your first errors with Sentry." +runtime: cloudflare +--- + +This guide shows how to set up the SDK with Nitro's `cloudflare_module` deployment preset, or with the deprecated `cloudflare-pages` preset. + + diff --git a/docs/platforms/javascript/guides/nuxt/features/nitro-deployment-presets.mdx b/docs/platforms/javascript/guides/nuxt/features/nitro-deployment-presets.mdx index 945f878d90816..ca23844d62a0d 100644 --- a/docs/platforms/javascript/guides/nuxt/features/nitro-deployment-presets.mdx +++ b/docs/platforms/javascript/guides/nuxt/features/nitro-deployment-presets.mdx @@ -8,4 +8,4 @@ The Sentry Nuxt SDK provides support for different Nitro deployment presets, mos ## Cloudflare Pages -Using the Cloudflare Nitro plugin of Sentry enables Sentry monitoring on Cloudflare Workers and Pages. Go and see the [Cloudflare Nitro plugin documentation](/platforms/javascript/guides/cloudflare/frameworks/nuxt/). +Using the Cloudflare Nitro plugin of Sentry enables Sentry monitoring on Cloudflare Workers and Pages. Go and see the [Cloudflare Nitro plugin documentation](/platforms/javascript/guides/nuxt/cloudflare/). diff --git a/docs/platforms/javascript/guides/nuxt/index.mdx b/docs/platforms/javascript/guides/nuxt/index.mdx index 0fd2306ca119c..939e36f930dc8 100644 --- a/docs/platforms/javascript/guides/nuxt/index.mdx +++ b/docs/platforms/javascript/guides/nuxt/index.mdx @@ -5,108 +5,7 @@ sdk: sentry.javascript.nuxt categories: - browser - server +runtime: node --- - - - - -## Install - - - - - - - - - -## Avoid Ad Blockers With Tunneling (Optional) - - - -## Control the Data You Send to Sentry (Optional) - - - -## Verify Your Setup - -The `sentry init` command checks the integration files it creates or modifies before it finishes. To confirm runtime events are reaching Sentry, start your Nuxt app, exercise the parts of your app that should send events, and then check your Sentry project. - -If you used the Nuxt installation wizard instead, you can also verify your setup with the example page or component it creates. - - -The wizard creates a `SentryErrorButton` component when it fails to add an example page to your project. This usually happens if you don't have a `app.vue` file or if that file does not contain the `NuxtPage` component. To verify your setup, follow these steps before continuing with the next section, "View Captured Data in Sentry": - -1. Add the `SentryErrorButton` component to a page and open it in your browser. For most Nuxt applications, this will be at localhost. -2. Click the "Throw Sample Error" button, which triggers an error and starts a performance trace on the client side. - -To test the server side as well, refer to the "Verify" section in the [Manual setup guide](/platforms/javascript/guides/nuxt/manual-setup/). - - - -To test Sentry, you can run your Nuxt application in either production or development mode. -We **recommend testing in production mode** as it most closely resembles your deployed application's environment. - -The SDK bundles `sentry.server.config.ts` into the Nitro server build and initializes Sentry when the server starts. To learn more, see Server-Side Installation. - -### Run in Production Mode (Recommended) - -Build your project with `nuxi build`, then start the server. - -```bash -# Start your app after building your project with `nuxi build` -node .output/server/index.mjs -``` - -### Run in Development Mode - -Sentry also monitors the server side during development. Start the dev server as usual. - -Spans from some libraries, such as database clients, can be missing in development mode. -Errors and request traces always work. To learn more, see Development Mode. - -```bash -nuxt dev -``` - -If you used the Nuxt installation wizard, after building and running your project: - -1. Open the example page `/sentry-example-page` in your browser. For most Nuxt applications, this will be at localhost. -2. Click the "Throw sample error" button. This triggers two errors: - - a frontend error - - an error within the API route - -Sentry captures both of these errors for you. Additionally, the button click starts a performance trace to measure the time it takes for the API request to complete. - - - -### View Captured Data in Sentry - -Now, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear). - - - - - -## Next Steps - -At this point, you should have integrated Sentry into your Nuxt application and should already be sending error and performance 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: - -- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup -- Learn how to [manually capture errors](/platforms/javascript/guides/nuxt/usage/) -- Continue to [customize your configuration](/platforms/javascript/guides/nuxt/configuration/) -- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts -- Learn how to [track your Vue components or your Pinia store](/platforms/javascript/guides/nuxt/features/) -- Learn how to [add support for different Nitro deployment presets](/platforms/javascript/guides/nuxt/features/nitro-deployment-presets/) (like Cloudflare) - - - -- If you encountered issues with our installation wizard, try [setting up Sentry manually](/platforms/javascript/guides/nuxt/manual-setup/) -- [Get support](https://www.sentry.help/en/) - - - - + diff --git a/docs/platforms/javascript/guides/nuxt/install/index.mdx b/docs/platforms/javascript/guides/nuxt/install/index.mdx index 298c08d02db09..4f11e711aea48 100644 --- a/docs/platforms/javascript/guides/nuxt/install/index.mdx +++ b/docs/platforms/javascript/guides/nuxt/install/index.mdx @@ -38,7 +38,7 @@ The SDK doesn't initialize Sentry while Nitro prerenders your pages at build tim ### Cloudflare -With a Cloudflare Nitro preset, the SDK doesn't use `sentry.server.config.ts`. Set up the SDK with the [Cloudflare Nitro plugin](/platforms/javascript/guides/cloudflare/frameworks/nuxt/) instead. +With a Cloudflare Nitro preset, the SDK doesn't use `sentry.server.config.ts`. Set up the SDK with the [Cloudflare Nitro plugin](/platforms/javascript/guides/nuxt/cloudflare/) instead. ## Upgrade to SDK Version 11 diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx b/docs/platforms/javascript/guides/react-router/hydrogen.mdx similarity index 97% rename from docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx rename to docs/platforms/javascript/guides/react-router/hydrogen.mdx index 1c8207e0757e1..3bba22f1b5596 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx +++ b/docs/platforms/javascript/guides/react-router/hydrogen.mdx @@ -1,11 +1,14 @@ --- title: Hydrogen with React Router +h1_title: Hydrogen with React Router +sidebar_title: Quick Start (Hydrogen) +sidebar_order: 0.5 description: Learn how to instrument your Hydrogen app on Shopify Oxygen and capture your first errors and traces. --- -This guide applies to Hydrogen versions **2025.5.0 and later** that use React Router 7 (framework mode). For older versions of Hydrogen that use Remix v2, see our [Remix on Cloudflare guide](/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix/). +This guide applies to Hydrogen versions **2025.5.0 and later** that use React Router 7 (framework mode). For older versions of Hydrogen that use Remix v2, see the [Hydrogen with Remix guide](/platforms/javascript/guides/remix/hydrogen/). @@ -367,7 +370,7 @@ 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 React Router Framework application and should already be sending data to your Sentry project. +At this point, you should have integrated Sentry into your Hydrogen 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: diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx b/docs/platforms/javascript/guides/remix/cloudflare.mdx similarity index 68% rename from docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx rename to docs/platforms/javascript/guides/remix/cloudflare.mdx index dc987930018ab..af5ff202c54c0 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/remix.mdx +++ b/docs/platforms/javascript/guides/remix/cloudflare.mdx @@ -1,12 +1,18 @@ --- title: Remix on Cloudflare +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 description: "Learn how to instrument your Remix app on Cloudflare Workers and Pages and capture your first errors with Sentry." +runtime: cloudflare --- - + + +Using Shopify Hydrogen? Follow the [Hydrogen with React Router](/platforms/javascript/guides/react-router/hydrogen/) guide for Hydrogen 2025.5.0 and later, or the [Hydrogen with Remix](/platforms/javascript/guides/remix/hydrogen/) guide for older versions. + + + + @@ -43,9 +49,6 @@ yarn add @sentry/remix @sentry/cloudflare pnpm add @sentry/remix @sentry/cloudflare ``` - + diff --git a/docs/platforms/javascript/guides/remix/frameworks/index.mdx b/docs/platforms/javascript/guides/remix/frameworks/index.mdx deleted file mode 100644 index a72e5adcc00f7..0000000000000 --- a/docs/platforms/javascript/guides/remix/frameworks/index.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Cloudflare SDK Guide -description: "Learn how to set up the Remix SDK or Hydrogen with Cloudflare." ---- - -You can use the Sentry Remix SDK to set up Sentry with frameworks like Shopify's Hydrogen. The following guides will help you get started with the Sentry Remix SDK on Cloudflare: - -- **[Remix on Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/remix/)** -- **[Hydrogen on Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/)** diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix.mdx b/docs/platforms/javascript/guides/remix/hydrogen.mdx similarity index 96% rename from docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix.mdx rename to docs/platforms/javascript/guides/remix/hydrogen.mdx index 1a8dcd0432c7d..b9be1f785653b 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix.mdx +++ b/docs/platforms/javascript/guides/remix/hydrogen.mdx @@ -1,11 +1,13 @@ --- title: Hydrogen with Remix (Legacy) +sidebar_title: Hydrogen (Legacy) +sidebar_order: 1.5 description: Learn how to use the Sentry Remix SDK to instrument your Hydrogen app (versions before 2025.5.0). --- -This guide applies to Hydrogen versions **before 2025.5.0** that use Remix v2. For newer versions of Hydrogen (2025.5.0+) that use React Router 7, see the [React Router guide](/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/). +This guide applies to Hydrogen versions **before 2025.5.0** that use Remix v2. For newer versions of Hydrogen (2025.5.0+) that use React Router 7, see the [Hydrogen with React Router guide](/platforms/javascript/guides/react-router/hydrogen/). @@ -39,7 +41,7 @@ On Shopify Oxygen, never import anything directly from `@sentry/cloudflare`. Onl -`wrapRequestHandler` doesn't isolate requests from each other. Scope data you set during a request, for example with `setTag` or `setUser`, can show up on events from other concurrent or later requests in the same isolate. Use `wrapRequestHandler` only on runtimes that can't enable `nodejs_compat`, such as Shopify Oxygen. For Remix on Cloudflare Workers, follow the [Remix on Cloudflare guide](/platforms/javascript/guides/cloudflare/frameworks/remix/) instead. +`wrapRequestHandler` doesn't isolate requests from each other. Scope data you set during a request, for example with `setTag` or `setUser`, can show up on events from other concurrent or later requests in the same isolate. Use `wrapRequestHandler` only on runtimes that can't enable `nodejs_compat`, such as Shopify Oxygen. For Remix on Cloudflare Workers, follow the [Remix on Cloudflare guide](/platforms/javascript/guides/remix/cloudflare/) instead. diff --git a/docs/platforms/javascript/guides/remix/index.mdx b/docs/platforms/javascript/guides/remix/index.mdx index cd0ddc7968c5e..57df3cf6f3d06 100644 --- a/docs/platforms/javascript/guides/remix/index.mdx +++ b/docs/platforms/javascript/guides/remix/index.mdx @@ -5,6 +5,7 @@ sdk: sentry.javascript.remix categories: - browser - server +runtime: node --- diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/sveltekit.mdx b/docs/platforms/javascript/guides/sveltekit/cloudflare.mdx similarity index 55% rename from docs/platforms/javascript/guides/cloudflare/frameworks/sveltekit.mdx rename to docs/platforms/javascript/guides/sveltekit/cloudflare.mdx index 340bf50fa9f29..884a4c005303f 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/sveltekit.mdx +++ b/docs/platforms/javascript/guides/sveltekit/cloudflare.mdx @@ -1,9 +1,9 @@ --- title: SvelteKit on Cloudflare +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 description: "Learn how to instrument your SvelteKit app on Cloudflare Workers and Pages and capture your first errors with Sentry." +runtime: cloudflare --- - + diff --git a/docs/platforms/javascript/guides/sveltekit/index.mdx b/docs/platforms/javascript/guides/sveltekit/index.mdx index 02bb0201d9913..67b2a730cd6f1 100644 --- a/docs/platforms/javascript/guides/sveltekit/index.mdx +++ b/docs/platforms/javascript/guides/sveltekit/index.mdx @@ -5,6 +5,7 @@ sdk: sentry.javascript.sveltekit categories: - browser - server +runtime: node --- @@ -70,7 +71,7 @@ Our next recommended steps for you are: - Learn how to [manually capture errors](/platforms/javascript/guides/sveltekit/usage/) - Continue to [customize your configuration](/platforms/javascript/guides/sveltekit/configuration/) - Learn how to [manually instrument](/platforms/javascript/guides/sveltekit/apis/#load-function-instrumentation) SvelteKit-specific features -- Learn more about [deploying SvelteKit apps to Cloudflare Pages](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) +- Learn more about [deploying SvelteKit apps to Cloudflare Pages](/platforms/javascript/guides/sveltekit/cloudflare/) - Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts diff --git a/docs/platforms/javascript/guides/sveltekit/manual-setup__v10.7.0.mdx b/docs/platforms/javascript/guides/sveltekit/manual-setup__v10.7.0.mdx index 11ff9ddc7ae5f..f83502f74828c 100644 --- a/docs/platforms/javascript/guides/sveltekit/manual-setup__v10.7.0.mdx +++ b/docs/platforms/javascript/guides/sveltekit/manual-setup__v10.7.0.mdx @@ -27,7 +27,7 @@ Here's an overview of the current support: - [Adapter-vercel](https://kit.svelte.dev/docs/adapter-vercel) when used with Vercel's Node.js Lambda runtime - [Adapter-node](https://kit.svelte.dev/docs/adapter-node) - **Supported non-Node.js runtimes** - - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) + - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/sveltekit/cloudflare/) - **Currently not supported** - Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported. - **Other adapters** @@ -326,7 +326,7 @@ Our next recommended steps for you are: - Learn how to [manually capture errors](/platforms/javascript/guides/sveltekit/usage/) - Continue to [customize your configuration](/platforms/javascript/guides/sveltekit/configuration/) - Learn how to [manually instrument](/platforms/javascript/guides/sveltekit/apis/#load-function-instrumentation) SvelteKit-specific features -- Learn more about [deploying SvelteKit apps to Cloudflare Pages](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) +- Learn more about [deploying SvelteKit apps to Cloudflare Pages](/platforms/javascript/guides/sveltekit/cloudflare/) - Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx b/docs/platforms/javascript/guides/tanstackstart-react/cloudflare.mdx similarity index 89% rename from docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx rename to docs/platforms/javascript/guides/tanstackstart-react/cloudflare.mdx index 11fb6d6d40330..fa90ff7c0bb6e 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx +++ b/docs/platforms/javascript/guides/tanstackstart-react/cloudflare.mdx @@ -1,13 +1,16 @@ --- -title: TanStack Start on Cloudflare +title: TanStack Start React on Cloudflare +sidebar_title: Quick Start (Cloudflare) +sidebar_order: 0.5 description: "Learn how to instrument your TanStack Start app on Cloudflare Workers and capture your first errors with Sentry." +runtime: cloudflare --- -This guide is for TanStack Start deployed to **Cloudflare Workers** using the `@cloudflare/vite-plugin`. For Node.js-based deployments, see our [TanStack Start guide](/platforms/javascript/guides/tanstackstart-react/). +This guide is for TanStack Start deployed to **Cloudflare Workers** using the `@cloudflare/vite-plugin`. @@ -30,9 +33,19 @@ Choose the features you want to configure, and this guide will show you how: ### Install the Sentry SDK -Run the command for your preferred package manager to add the Sentry SDK to your application: +Run the command for your preferred package manager to add the Sentry TanStack Start and Cloudflare SDKs to your application: - +```bash {tabTitle:npm} +npm install @sentry/tanstackstart-react @sentry/cloudflare --save +``` + +```bash {tabTitle:yarn} +yarn add @sentry/tanstackstart-react @sentry/cloudflare +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/tanstackstart-react @sentry/cloudflare +``` ## Configure @@ -42,7 +55,7 @@ When deploying TanStack Start to Cloudflare Workers, you need to wrap the server ### Create a Custom Server Entry @@ -166,8 +179,8 @@ export const startInstance = createStart(() => { ### Add Readable Stack Traces With Source Maps (Optional) ### Control the Data You Send to Sentry (Optional) @@ -223,8 +236,8 @@ Now's a good time to customize your setup and look into more advanced topics. Ou -- Check out setup instructions for other popular [frameworks on Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/) -- Find various support topics in troubleshooting +- Check out setup instructions for other popular [frameworks on Cloudflare](/platforms/javascript/guides/cloudflare/#framework-selector) +- Find various support topics in [Cloudflare troubleshooting](/platforms/javascript/guides/cloudflare/troubleshooting/) - [Get support](https://www.sentry.help/en/) diff --git a/docs/platforms/javascript/guides/tanstackstart-react/index.mdx b/docs/platforms/javascript/guides/tanstackstart-react/index.mdx index 88566aa84c18e..8258b94d3ac1e 100644 --- a/docs/platforms/javascript/guides/tanstackstart-react/index.mdx +++ b/docs/platforms/javascript/guides/tanstackstart-react/index.mdx @@ -5,6 +5,7 @@ sdk: sentry.javascript.tanstackstart-react categories: - server - browser +runtime: node --- diff --git a/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx b/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx index 41f2df3b033b6..ca6db1c7d0af6 100644 --- a/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx +++ b/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx @@ -25,7 +25,7 @@ if (serverTimingValue) { return response; ``` -See the [Hydrogen on Cloudflare guide](/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix/#trace-propagation) for a complete example. +See the [Hydrogen with Remix guide](/platforms/javascript/guides/remix/hydrogen/#trace-propagation) for a complete example. diff --git a/platform-includes/getting-started-cloudflare/javascript.astro.mdx b/platform-includes/getting-started-cloudflare/javascript.astro.mdx new file mode 100644 index 0000000000000..d28113db03d3f --- /dev/null +++ b/platform-includes/getting-started-cloudflare/javascript.astro.mdx @@ -0,0 +1,258 @@ +### Install the Sentry SDKs + +Install both `@sentry/astro` and `@sentry/cloudflare`: + +```bash {tabTitle:npm} +npm install @sentry/astro @sentry/cloudflare +``` + +```bash {tabTitle:yarn} +yarn add @sentry/astro @sentry/cloudflare +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/astro @sentry/cloudflare +``` + +## Configure + +### Wrangler Configuration + + + +### Configure Custom Entry Point + +Astro 6 with `@astrojs/cloudflare` v13+ supports custom entry points directly from `wrangler.jsonc`. Update your wrangler configuration to point to a custom Sentry entry point: + +```jsonc {filename:wrangler.jsonc} +{ + "main": "./sentry.server.config.ts", + // ... other configuration +} +``` + +Create a `sentry.server.config.ts` file in the root of your project that wraps the Astro Cloudflare handler with Sentry: + +```typescript {filename:sentry.server.config.ts} +import * as Sentry from "@sentry/cloudflare"; +import handler from "@astrojs/cloudflare/entrypoints/server"; + +export default Sentry.withSentry( + (env) => ({ + dsn: env.SENTRY_DSN, + // ___PRODUCT_OPTION_START___ performance + // Define how likely traces are sampled. Adjust this value in production, + // or use tracesSampler for greater control. + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + }), + handler +); +``` + +### Register the Sentry Integration + +Follow [Astro's Cloudflare deployment guide](https://docs.astro.build/en/guides/deploy/cloudflare/) if you haven't already. Then add the Sentry integration to your `astro.config.mjs` alongside the Cloudflare adapter. + +```javascript {filename:astro.config.mjs} +import { defineConfig } from "astro/config"; +import cloudflare from "@astrojs/cloudflare"; +import sentry from "@sentry/astro"; + +export default defineConfig({ + adapter: cloudflare(), + integrations: [sentry()], +}); +``` + +### Configure Client-side Sentry + +Create a `sentry.client.config.(ts|js)` file in the root of your project. In this file, import and initialize Sentry for the client: + +```javascript {filename:sentry.client.config.(ts|js)} +import * as Sentry from "@sentry/astro"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + + integrations: [ + // ___PRODUCT_OPTION_START___ performance + Sentry.browserTracingIntegration(), + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ session-replay + Sentry.replayIntegration(), + // ___PRODUCT_OPTION_END___ session-replay + // ___PRODUCT_OPTION_START___ user-feedback + Sentry.feedbackIntegration({ + // Additional SDK configuration goes in here, for example: + colorScheme: "system", + }), + // ___PRODUCT_OPTION_END___ user-feedback + ], + // ___PRODUCT_OPTION_START___ performance + + // Define how likely traces are sampled. Adjust this value in production, + // or use tracesSampler for greater control. + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ session-replay + + // This sets the sample rate to be 10%. You may want this to be 100% while + // in development and sample at a lower rate in production + replaysSessionSampleRate: 0.1, + + // If the entire session is not sampled, use the below sample rate to sample + // sessions when an error occurs. + replaysOnErrorSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ session-replay +}); +``` + +### Configure Server-side Sentry + +Server-side Sentry is already configured in your custom entry point file (`sentry.server.config.ts`) created in the previous step. + +### Add Readable Stack Traces With Source Maps + +To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry` options inside `astro.config.mjs`: + +```javascript {filename:astro.config.mjs} +import { defineConfig } from "astro/config"; +import cloudflare from "@astrojs/cloudflare"; +import sentry from "@sentry/astro"; + +export default defineConfig({ + adapter: cloudflare(), + integrations: [ + sentry({ + org: "___ORG_SLUG___", + project: "___PROJECT_SLUG___", + // store your auth token in an environment variable + authToken: process.env.SENTRY_AUTH_TOKEN, + }), + ], +}); +``` + +To keep your auth token secure, set the `SENTRY_AUTH_TOKEN` environment variable in your build environment: + + + +```bash {filename:.env.sentry-build-plugin} +SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ +``` + + + +### Control the Data You Send to Sentry (Optional) + + + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +### Issues + + +To verify that Sentry captures errors and creates issues in your Sentry project, +create a test page, for example, at `src/pages/test.astro` with two buttons. + +```html {filename: test.astro} + + + + +``` + +Then also create the route we're calling in our test page, like `src/pages/api/test-error.(js|ts)`: + +Next, open your test page in a browser and click the buttons to trigger a frontend error and an error in the API route. + +```javascript {filename: test-error.(js|ts)} +export async function GET() { + throw new Error("Sentry Example API Route Error"); +} +``` + + + +### Tracing + +To test tracing, create a custom span to measure the time it takes for the API request to complete: + +```html {filename: test.astro} + + + +``` + + + + + + + + + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your Astro 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: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- Continue to customize your configuration +- Learn how to manually capture errors +- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts + + + +- Find various topics in Troubleshooting +- [Get support](https://www.sentry.help/en/) + + diff --git a/platform-includes/getting-started-cloudflare/javascript.nextjs.mdx b/platform-includes/getting-started-cloudflare/javascript.nextjs.mdx new file mode 100644 index 0000000000000..ed8427c5febad --- /dev/null +++ b/platform-includes/getting-started-cloudflare/javascript.nextjs.mdx @@ -0,0 +1,209 @@ +## Prerequisites + +You need: + +- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/) +- A Next.js application that runs on Cloudflare Workers with the [OpenNext Cloudflare adapter](https://opennext.js.org/cloudflare) or [vinext](https://github.com/cloudflare/vinext) + + + If you haven't deployed a Next.js app to Cloudflare Workers before, follow + Cloudflare's [Next.js deployment + guide](https://developers.cloudflare.com/workers/framework-guides/web-apps/nextjs/) + first. + + + + +## Install + +### Run the Installation Wizard + +Run the Sentry wizard to automatically install the SDK and configure Sentry in your Next.js application: + +```bash +npx @sentry/wizard@latest -i nextjs +``` + +The wizard asks whether you want to enable **Tracing** and **Session Replay**, route browser requests through your server to avoid ad blockers, and create an example page. To match the configuration in this guide, answer **Yes** to each. + +Prefer to set things up yourself? Check out the [Manual Setup](/platforms/javascript/guides/nextjs/manual-setup/) guide. + +## Configure + +**Error Monitoring** starts working as soon as you call `Sentry.init()`. **Logs** and **Application Metrics** need no extra configuration, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-). +This guide also enables **Tracing**, **Session Replay**, and **User Feedback**. + + + +The wizard creates the files below. On Cloudflare Workers, you set the server options in the Worker entry instead, as the [Wrap the Worker Entry](#wrap-the-worker-entry) step shows. + + + +### Configure Wrangler + +The SDK uses Node.js APIs that the Workers runtime only provides with the `nodejs_compat` [compatibility flag](https://developers.cloudflare.com/workers/runtime-apis/nodejs/). Set the [compatibility date](https://developers.cloudflare.com/workers/configuration/compatibility-dates/) to `2025-08-16` or later, which adds the `https.request` API that the SDK uses to send data: + +```jsonc {tabTitle:JSON} {filename:wrangler.jsonc} +{ + "compatibility_flags": ["nodejs_compat"], + "compatibility_date": "2025-08-16", +} +``` + +```toml {tabTitle:Toml} {filename:wrangler.toml} +compatibility_flags = ["nodejs_compat"] +compatibility_date = "2025-08-16" +``` + +### Wrap the Worker Entry + + + +If you build your app with vinext, skip to [Wrap the Worker Entry With vinext](#wrap-the-worker-entry-with-vinext). + +On Cloudflare Workers, your Next.js app runs inside the Worker entry that OpenNext generates (`.open-next/worker.js`). Wrap this entry with `withSentry` from `@sentry/nextjs/cloudflare` to get the same Next.js spans as on Node.js, plus Cloudflare data such as spans for D1 queries. Each request gets one `http.server` span with the name of the Next.js route, and the Next.js spans become its children. + +`@sentry/nextjs` depends on `@sentry/cloudflare`, so you don't need to install another package. + +First, create a [custom Worker](https://opennext.js.org/cloudflare/howtos/custom-worker) that imports the handler of OpenNext and wraps it with `withSentry`. Pass your Sentry options to `withSentry`: + +```typescript {filename:worker.ts} +import * as Sentry from "@sentry/nextjs/cloudflare"; +// @ts-ignore `.open-next/worker.js` is generated at build time +import handler from "./.open-next/worker.js"; + +// Re-export the Durable Objects your app uses, for example for the DO Queue and DO Tag Cache of OpenNext +// @ts-ignore `.open-next/worker.js` is generated at build time +export { DOQueueHandler, DOShardedTagCache } from "./.open-next/worker.js"; + +export default Sentry.withSentry( + () => ({ + dsn: "___PUBLIC_DSN___", + + // Set tracesSampleRate to 1.0 to capture 100% of spans for tracing. + // Learn more at + // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#tracesSampleRate + tracesSampleRate: 1.0, + }), + handler +); +``` + +Then, point `main` in your Wrangler configuration to this file: + +```jsonc {tabTitle:JSON} {filename:wrangler.jsonc} +{ + "main": "./worker.ts", +} +``` + +```toml {tabTitle:Toml} {filename:wrangler.toml} +main = "./worker.ts" +``` + +#### Wrap the Worker Entry With vinext + +With [vinext](https://github.com/cloudflare/vinext), you don't need a custom Worker. Add the [Sentry Vite plugin](/platforms/javascript/guides/cloudflare/install/vite-plugin/) to your Vite config, and it wraps your Worker entry with `withSentry` from `@sentry/nextjs/cloudflare` automatically. + +#### Server and Edge Configuration in the Worker + +In the Worker, `withSentry` creates the Sentry client. `Sentry.init()` in `sentry.server.config.ts` and `sentry.edge.config.ts` still runs, but it creates no client and only applies the `release` option. Set all other options in `withSentry`. + +On Workers, these two files are optional. Keep them if you use `next dev`, which runs on Node.js and doesn't use the Worker entry. They also pass on the release that `withSentryConfig` sets at build time. + +Keep `instrumentation.ts`, because Next.js reports server errors, for example from Server Components and route handlers, through its `onRequestError` hook. + +The SDK takes the release from the first of these sources that has a value: + +1. The `release` option of `withSentry` +2. The `SENTRY_RELEASE` environment variable +3. The ID of the `CF_VERSION_METADATA` binding +4. The `release` option of `Sentry.init()` in `sentry.server.config.ts` or `sentry.edge.config.ts`, or else the release that `withSentryConfig` sets at build time + +On Node.js, the build release comes before `SENTRY_RELEASE`. + +### Control the Data You Send to Sentry + + + +## Send Logs + + + +If you're already logging with `console` or Consola, use an integration to capture those logs as Sentry Logs automatically: + +- `consoleLoggingIntegration` for `console` calls +- Consola + +## Send Application Metrics + + + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +The wizard created an example page that sends a test error from both your frontend and your backend: + +1. Build your app and run it in the Workers runtime on your machine: + + ```bash + npx opennextjs-cloudflare build && npx opennextjs-cloudflare preview + ``` + +2. Open `/sentry-example-page` on the URL that the preview command prints. +3. Click **Throw Sample Error**. + +If you skipped the example page, add a test button to one of your pages instead. Clicking it will trigger an error for Sentry to capture. + +```tsx {filename:app/page.tsx} +"use client"; + +export default function Page() { + return ( + + ); +} +``` + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your Next.js application on Cloudflare Workers. Here's what to explore next: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- [Distributed Tracing](/platforms/javascript/guides/nextjs/tracing/distributed-tracing/) to trace requests across services +- Set up tunneling to avoid ad blockers blocking Sentry events, if you didn't enable it in the wizard + + + +- If you encountered issues with our installation wizard, try [setting up Sentry manually](/platforms/javascript/guides/nextjs/manual-setup/) +- Find various topics in Troubleshooting +- [Get support](https://www.sentry.help/en/) + + + + diff --git a/platform-includes/getting-started-cloudflare/javascript.nuxt.mdx b/platform-includes/getting-started-cloudflare/javascript.nuxt.mdx new file mode 100644 index 0000000000000..b1d5b083fcdcb --- /dev/null +++ b/platform-includes/getting-started-cloudflare/javascript.nuxt.mdx @@ -0,0 +1,314 @@ + + + + +## Install + +Choose the features you want to configure, and this guide will show you how: + + + + + +### Install the Sentry SDK + +Run the command for your preferred package manager to add the Sentry SDK to your application: + +```bash {tabTitle:npm} +npm install @sentry/nuxt --save +``` + +```bash {tabTitle:yarn} +yarn add @sentry/nuxt +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/nuxt +``` + +## Configure + +### Apply Instrumentation to Your App + +Add the Sentry Nuxt module to your `nuxt.config.ts` file: + +```javascript {filename:nuxt.config.ts} +export default defineNuxtConfig({ + modules: ["@sentry/nuxt/module"], +}); +``` + +### Configure Client-Side Sentry + +Add a `sentry.client.config.ts` file to the root of your project (this is probably the same level as the `package.json`). In this file, import and initialize Sentry, specifying any SDK options for the client: + +```javascript {filename:sentry.client.config.ts} +import * as Sentry from "@sentry/nuxt"; + +Sentry.init({ + // If set up, you can use the Nuxt runtime config here + // dsn: useRuntimeConfig().public.sentry.dsn + // modify depending on your custom runtime config + dsn: "___PUBLIC_DSN___", + + // ___PRODUCT_OPTION_START___ session-replay + + // Replay may only be enabled for the client-side + integrations: [ + Sentry.replayIntegration(), + // ___PRODUCT_OPTION_START___ user-feedback + Sentry.feedbackIntegration({ + // Additional SDK configuration goes in here, for example: + colorScheme: "system", + }), + // ___PRODUCT_OPTION_END___ user-feedback + ], + // ___PRODUCT_OPTION_END___ session-replay + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ session-replay + + // Capture Replay for 10% of all sessions, + // plus for 100% of sessions with an error + // Learn more at + // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ session-replay +}); +``` + +We recommend you store your Sentry [Data Source Name](/concepts/key-terms/dsn-explainer/) (DSN) in an environment variable and configure it via the Nuxt runtime config. + +This allows you to access the DSN using `useRuntimeConfig().public.sentry.dsn`. + +```javascript {filename:nuxt.config.ts} +export default defineNuxtConfig({ + modules: ["@sentry/nuxt/module"], + runtimeConfig: { + public: { + sentry: { + dsn: process.env.NUXT_PUBLIC_SENTRY_DSN, // Use a public environment variable for the DSN + }, + }, + }, +}); +``` + +### Configure Cloudflare for Sentry + + + +#### Add the Nitro Plugin + + + If you have an existing `sentry.server.config.ts` file, delete it, as it will + conflict with the Cloudflare setup. + + +To enable Sentry for your Nuxt app on Cloudflare, create a new file in `server/plugins` and add the following code to it: + +```TypeScript {filename:server/plugins/sentry-cloudflare-plugin.ts} +import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins' + +export default defineNitroPlugin(sentryCloudflareNitroPlugin({ + dsn: '___PUBLIC_DSN___', + tracesSampleRate: 1.0, +})) +``` + +Or, if you need access to `nitroApp`: + +```TypeScript {filename:server/plugins/sentry-cloudflare-plugin.ts} +import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins' + +export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => { + // You can access `nitroApp` here if needed + return { + dsn: '___PUBLIC_DSN___', + tracesSampleRate: 1.0, + } +})) +``` + +### Add Readable Stack Traces With Source Maps (Optional) + +To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry` options inside your configuration file: + +These `sentry` options only affect the **build time** of the SDK. + +```javascript {filename:nuxt.config.ts} {3-10} +export default defineNuxtConfig({ + modules: ["@sentry/nuxt/module"], + sentry: { + org: "___ORG_SLUG___", + project: "___PROJECT_SLUG___", + // store your auth token in an environment variable + authToken: process.env.SENTRY_AUTH_TOKEN, + }, +}); +``` + +To keep your auth token secure, always store it in an environment variable instead of directly in your files: + + + +```bash {filename:.env} +SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ +``` + +#### Enable Client-Side Source Maps + +While Nuxt generates source maps on the server side by default, you need to explicitly enable client-side source maps in your Nuxt configuration. + +The `hidden` option enables source map generation while preventing source map reference comments that would normally appear at the end of each generated file in the build output. + +```javascript {filename:nuxt.config.ts} {2} +export default defineNuxtConfig({ + sourcemap: { client: "hidden" }, +}); +``` + +### Control the Data You Send to Sentry (Optional) + + + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +### Issues + +To verify that Sentry captures errors and creates issues in your Sentry project, create a test page with a button. + + + +```html {tabTitle:Vue} {filename:pages/example-error.vue} + + + +``` + + +### Tracing + +To test tracing, create a test API route `server/api/sentry-example.get.ts`: + +```js {tabTitle:Nitro} {filename:server/api/sentry-example.get.ts} +export default defineEventHandler((event) => { + throw new Error("Sentry Example API Route Error"); +}); +``` + +Then update the test page by including a new button that executes a function to fetch your API route: + +```html {tabTitle:Vue} {filename:pages/example-error.vue} + + + +``` + + + + + + + + + + + + + Once you have your test code in place, open the page in a browser and click + the button to trigger an error. + + + + +Once you have your test code in place, build and run your project. + +After running your project, open your test page in a browser and click the buttons. + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your Nuxt 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: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- Learn how to [manually capture errors](/platforms/javascript/guides/nuxt/usage/) +- Continue to [customize your configuration](/platforms/javascript/guides/nuxt/configuration/) +- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts +- Learn how to [track your Vue components or your Pinia store](/platforms/javascript/guides/nuxt/features/) + + + +- Find various support topics in [Cloudflare troubleshooting](/platforms/javascript/guides/cloudflare/troubleshooting/) and [Nuxt troubleshooting](/platforms/javascript/guides/nuxt/troubleshooting/) +- [Get support](https://www.sentry.help/en/) + + + + diff --git a/platform-includes/getting-started-cloudflare/javascript.remix.mdx b/platform-includes/getting-started-cloudflare/javascript.remix.mdx new file mode 100644 index 0000000000000..ee817b2c68666 --- /dev/null +++ b/platform-includes/getting-started-cloudflare/javascript.remix.mdx @@ -0,0 +1,388 @@ +## Configure + +### Configure Client-Side Sentry + +Create a client file `entry.client.tsx` in the `app` folder of your project if you don't have one already. In this file, import and initialize the Sentry SDK: + +```typescript {tabTitle:Client} {filename: entry.client.tsx} +import { useLocation, useMatches } from "@remix-run/react"; +import * as Sentry from "@sentry/remix"; +import { useEffect } from "react"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + + integrations: [ + // ___PRODUCT_OPTION_START___ performance + Sentry.browserTracingIntegration({ + useEffect, + useLocation, + useMatches, + }), + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ session-replay + // Replay is only available in the client + Sentry.replayIntegration(), + // ___PRODUCT_OPTION_END___ session-replay + // ___PRODUCT_OPTION_START___ user-feedback + Sentry.feedbackIntegration({ + // Additional SDK configuration goes in here, for example: + colorScheme: "system", + }), + // ___PRODUCT_OPTION_END___ user-feedback + ], + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + + // Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled + tracePropagationTargets: ["localhost", /^https:\/\/yourserver\.io\/api/], + // ___PRODUCT_OPTION_END___ performance + // ___PRODUCT_OPTION_START___ session-replay + + // Capture Replay for 10% of all sessions, + // plus for 100% of sessions with an error + // Learn more at + // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ session-replay +}); +``` + +#### Remix ErrorBoundary + +To capture errors from your [ErrorBoundary](https://remix.run/docs/en/main/route/error-boundary), define it in `root.tsx` to act as a fallback for all routes or create route-specific error boundaries in your route components. + +In your `ErrorBoundary` component, use `Sentry.captureRemixErrorBoundaryError` to send the captured error to Sentry: + +```tsx {filename: root.tsx} +import { captureRemixErrorBoundaryError } from "@sentry/remix"; + +export const ErrorBoundary = () => { + const error = useRouteError(); + + captureRemixErrorBoundaryError(error); + + return

    ...
    ; +}; +``` + +#### Performance Monitoring + +Wrap your Remix root component with `withSentry` to capture performance data: + +```tsx {filename: root.tsx} +import { + Links, + LiveReload, + Meta, + Outlet, + Scripts, + ScrollRestoration, +} from "@remix-run/react"; + +import { withSentry } from "@sentry/remix"; + +function App() { + return ( + + + + + + + + + + + + + ); +} + +export default withSentry(App); +``` + +### Configure Server-Side Sentry + +Create a Worker entry file, for example `server.ts` in your project's root folder, and set it as `main` in your wrangler config. + +In this file, instrument your Remix server build with `instrumentBuild` from `@sentry/remix/cloudflare`, pass it to `createRequestHandler`, and wrap the exported handler with `Sentry.withSentry()` from `@sentry/cloudflare`. `withSentry` isolates each request, so scope data like tags and users stays on the request that set it. + + + +Don't also wrap `createRequestHandler` with `makeWrappedCreateRequestHandler`. Combined with `withSentry`, it reports every request twice, as two `http.server` transactions in two different traces. + + + +```typescript {filename:server.ts} +import { createRequestHandler } from "@remix-run/cloudflare"; +import * as Sentry from "@sentry/cloudflare"; +import { instrumentBuild } from "@sentry/remix/cloudflare"; +// The server build produced by `remix vite:build` +import * as remixBuild from "./build/server/index.js"; + +const handleRequest = createRequestHandler(instrumentBuild(remixBuild)); + +export default Sentry.withSentry( + (env) => ({ + dsn: "___PUBLIC_DSN___", + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + }), + { + async fetch(request, env, ctx) { + return handleRequest(request, { env, ctx }); + }, + } +); +``` + + + + + +```javascript {filename:functions/_middleware.js} +import * as Sentry from "@sentry/cloudflare"; + +export const onRequest = [ + // Make sure Sentry is the first middleware + Sentry.sentryPagesPlugin((context) => ({ + dsn: "___PUBLIC_DSN___", + + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + + // Optionally limit which action formData fields are captured. + // Without this option, all fields are captured. + captureActionFormDataKeys: { + key_x: true, + key_y: true, + }, + })), + // Add more middlewares here +]; +``` + + + +### Capture Server-Side Errors + +To automatically capture server-side errors, export `sentryHandleError` as the [`handleError`](https://remix.run/docs/en/main/file-conventions/entry.server#handleerror) function from your server entry point (`entry.server.tsx`). Without this export, Remix handles errors thrown in loaders and actions itself, and Sentry doesn't receive them. + + + +Import from `@sentry/remix/cloudflare`, not from `@sentry/remix`. In a Cloudflare server build, `sentryHandleError` from `@sentry/remix` is `undefined`, and no errors are captured. + + + +```typescript {filename: entry.server.tsx} +import { sentryHandleError } from "@sentry/remix/cloudflare"; + +export const handleError = sentryHandleError; +``` + +### Configure Cloudflare for Sentry + + + +### Configure Vite + +Add two Sentry plugins to your `vite.config.ts`, next to the Remix plugin: + +- `sentryRemixVitePlugin` from `@sentry/remix/vite` parameterizes transaction names with your route patterns, for example `/users/:id`. +- `sentryCloudflareVitePlugin` from `@sentry/cloudflare/vite` instruments supported bundled dependencies at build time, so you get spans for database clients like `mysql`. Without it, database calls produce no spans and no warning. + +Set `ssr.target` to `webworker` and bundle the Sentry packages and any database client you want traced with `ssr.noExternal`. Setting `noExternal: true` bundles every dependency, which works too. + +```typescript {filename:vite.config.ts} {2-3, 11-12, 14-17} +import { vitePlugin as remix } from "@remix-run/dev"; +import { sentryCloudflareVitePlugin } from "@sentry/cloudflare/vite"; +import { sentryRemixVitePlugin } from "@sentry/remix/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [ + remix({ + // ... your Remix plugin options + }), + sentryRemixVitePlugin(), + sentryCloudflareVitePlugin(), + ], + ssr: { + target: "webworker", + noExternal: ["mysql", /^@sentry\//, "@opentelemetry/api"], + }, +}); +``` + +Build your app with `remix vite:build`. Under Vite 6, a plain `vite build` only builds the client and skips `build/server`, without an error. + +```bash +npx remix vite:build +``` + +### Add Readable Stack Traces With Source Maps (Optional) + +To upload source maps for clear error stack traces, pass your Sentry organization, project, and auth token to `sentryRemixVitePlugin` from the previous step. It injects debug IDs, uploads the source maps during your production build, and deletes them from your build output afterwards. + +The plugin also turns on hidden source maps for you, unless you set `build.sourcemap` yourself. + + + +Check our [Source Maps documentation](/platforms/javascript/guides/remix/sourcemaps/) for +alternative setup options. + + + +```javascript {filename:vite.config.ts} {10-16} +import { vitePlugin as remix } from "@remix-run/dev"; +import { sentryRemixVitePlugin } from "@sentry/remix/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [ + remix({ + // ... your Remix plugin options + }), + sentryRemixVitePlugin({ + // If you use environment variables, + // you don't need to specify these options + org: "___ORG_SLUG___", + project: "___PROJECT_SLUG___", + // store your auth token in an environment variable + authToken: process.env.SENTRY_AUTH_TOKEN, + }), + // ... other plugins + ], +}); +``` + +To keep your auth token secure, always store it in an environment variable instead of directly in your files: + + + +```bash {filename:.env} +SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ +``` + + + +### Control the Data You Send to Sentry (Optional) + + + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +### Issues + + + +To verify that Sentry captures errors and creates issues in your Sentry project, add a test button to one of your pages. + + + +Open the page in a browser and click the button to trigger a frontend error. + + + +```javascript + +``` + + + +### Tracing + +To test your tracing configuration, update the previous code snippet by calling a non-existing route and starting a trace to measure the time it takes for the execution of your code. + +Open the page in a browser and click the button to trigger the frontend error and a trace. + +```javascript + +``` + + + + + + + + + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your Remix application and should already be sending error and performance 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: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- Learn how to manually capture errors +- Continue to customize your configuration +- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts + + + +- If you encountered issues with the manual setup, try our installation wizard +- Find various support topics in [Cloudflare troubleshooting](/platforms/javascript/guides/cloudflare/troubleshooting/) and [Remix troubleshooting](/platforms/javascript/guides/remix/troubleshooting/) +- [Get support](https://www.sentry.help/en/) + + diff --git a/platform-includes/getting-started-cloudflare/javascript.sveltekit.mdx b/platform-includes/getting-started-cloudflare/javascript.sveltekit.mdx new file mode 100644 index 0000000000000..e5f5b3efe3bdd --- /dev/null +++ b/platform-includes/getting-started-cloudflare/javascript.sveltekit.mdx @@ -0,0 +1,358 @@ +## Prerequisites + +You need: + +- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/) +- Your application up and running +- SvelteKit version `2.0.0+` (we recommend `2.31.0` or higher for best support) +- Vite version `4.2` or newer + + + +Version `2.31.0` of SvelteKit introduces [official support for observability and tracing](https://svelte.dev/docs/kit/observability). +This means that Sentry can now follow the official best practice for how the SDK should be set up: + +- The Sentry SDK will be initialized at the correct, earliest possible time on the server, allowing for all its auto-instrumentation to work correctly. + This means, you will now get spans from auto instrumentation (e.g. database queries) automatically. +- The Sentry SDK picks up spans emitted from SvelteKit directly. + You'll get more accurate insights into the performance of your handlers, server actions, `load`, and remote functions. + +SvelteKit observability is still an experimental feature in SvelteKit 2.x, but we recommend giving it a try. +The Sentry wizard, as well as this guide, will use it as the default way of setting up the SDK. + + + + + +## Install + +Choose the features you want to configure, and this guide will show you how: + + + + + +### Install the Sentry SDK + +Run the command for your preferred package manager to add the Sentry SDK to your application: + +If you're updating your Sentry SDK to the latest version, check out our migration guide to learn more about breaking changes. + +```bash {tabTitle:npm} +npm install @sentry/sveltekit --save +``` + +```bash {tabTitle:yarn} +yarn add @sentry/sveltekit +``` + +```bash {tabTitle:pnpm} +pnpm add @sentry/sveltekit +``` + +## Configure + +You need to initialize and configure the Sentry SDK in three places: the client side, the server side, and your Vite config. + +### Configure Client-Side Sentry + +Create a client hooks file `src/hooks.client.(js|ts)` in your project if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError). + +```javascript {filename:src/hooks.client.(js|ts)} {1, 3-37, 43} +import * as Sentry from "@sentry/sveltekit"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + integrations: [ + // ___PRODUCT_OPTION_START___ session-replay + Sentry.replayIntegration(), + // ___PRODUCT_OPTION_END___ session-replay + // ___PRODUCT_OPTION_START___ user-feedback + Sentry.feedbackIntegration({ + // Additional SDK configuration goes in here, for example: + colorScheme: "system", + }), + // ___PRODUCT_OPTION_END___ user-feedback + ], + + // ___PRODUCT_OPTION_START___ session-replay + // Capture Replay for 10% of all sessions, + // plus for 100% of sessions with an error + // Learn more at + // https://docs.sentry.io/platforms/javascript/session-replay/configuration/#general-integration-configuration + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ session-replay +}); + +const myErrorHandler = ({ error, event }) => { + console.error("An error occurred on the client side:", error, event); +}; + +export const handleError = Sentry.handleErrorWithSentry(myErrorHandler); + +// or alternatively, if you don't have a custom error handler: +// export const handleError = handleErrorWithSentry(); +``` + +### Configure Server-Side Sentry + +_Requires SvelteKit `2.31.0` or higher and `@sentry/sveltekit` `10.8.0` or higher._ + +Configure server-side instrumentation and tracing. Where this config lives depends on your SvelteKit version — SvelteKit 2 uses `svelte.config.js`, while SvelteKit 3 moved it into the `sveltekit()` Vite plugin options in `vite.config.(js|ts)` instead (see [Configure Vite](#configure-vite) below). SvelteKit 3 no longer needs an instrumentation flag, so the only option to set there is `tracing`. + +```js {tabTitle:SvelteKit 2} {mdExpandTabs} {filename:svelte.config.js} {3-12} +const config = { + kit: { + experimental: { + instrumentation: { + server: true, + }, + // ___PRODUCT_OPTION_START___ performance + tracing: { + server: true, + }, + // ___PRODUCT_OPTION_END___ performance + }, + }, +}; + +export default config; +``` + +```js {tabTitle:SvelteKit 3} {filename:vite.config.(js|ts)} +import { sveltekit } from "@sveltejs/kit/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [ + sveltekit({ + // ___PRODUCT_OPTION_START___ performance + tracing: { + server: true, + }, + // ___PRODUCT_OPTION_END___ performance + // ... rest of your SvelteKit config + }), + ], + // ... rest of your Vite config +}); +``` + +Create a server hooks file `src/hooks.server.(js|ts)` in your project if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) and Sentry's Cloudflare request handler to the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle). + +```javascript {filename:src/hooks.server.(js|ts)} +import { + handleErrorWithSentry, + sentryHandle, + initCloudflareSentryHandle, +} from "@sentry/sveltekit"; +import { sequence } from "@sveltejs/kit/hooks"; +import * as Sentry from "@sentry/sveltekit"; + +export const handle = sequence( + initCloudflareSentryHandle({ + dsn: "___PUBLIC_DSN___", + + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of transactions for tracing. + // We recommend adjusting this value in production + // Learn more at + // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance + }), + sentryHandle() +); + +const myErrorHandler = ({ error, event }) => { + console.error("An error occurred on the server side:", error, event); +}; + +export const handleError = Sentry.handleErrorWithSentry(myErrorHandler); +// or alternatively, if you don't have a custom error handler: +// export const handleError = handleErrorWithSentry(); +``` + +### Configure Vite + +Add the `sentrySvelteKit` plugin **before** `sveltekit` in your `vite.config.(js|ts)` file to automatically upload source maps to Sentry and instrument `load` functions for tracing if it's configured. + +```javascript {filename:vite.config.(js|ts)} {2,6} +import { sveltekit } from "@sveltejs/kit/vite"; +import { sentrySvelteKit } from "@sentry/sveltekit/vite"; +import { defineConfig } from "vite"; + +export default defineConfig({ + plugins: [sentrySvelteKit(), sveltekit()], + // ... rest of your Vite config +}); +``` + +### Configure Cloudflare for Sentry + + + +### Add Readable Stack Traces With Source Maps (Optional) + +To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slug in your `vite.config.(js|ts)` file: + +```javascript {filename:vite.config.(js|ts)} {6-13} +import { sveltekit } from "@sveltejs/kit/vite"; +import { sentrySvelteKit } from "@sentry/sveltekit/vite"; + +export default { + plugins: [ + sentrySvelteKit({ + org: "___ORG_SLUG___", + project: "___PROJECT_SLUG___", + // store your auth token in an environment variable + authToken: process.env.SENTRY_AUTH_TOKEN, + }), + sveltekit(), + ], + // ... rest of your Vite config +}; +``` + +To keep your auth token secure, always store it in an environment variable instead of directly in your files: + + + +```bash {filename:.env} +SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ +``` + + + +### Control the Data You Send to Sentry (Optional) + + + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +### Issues + +To verify that Sentry captures errors and creates issues in your Sentry project, create a test page, for example, at `src/routes/sentry-example/+page.svelte` with a button that throws an error when clicked. + + + Open the page `sentry-example` in a browser and click the button to trigger a + frontend error. + + + + +```html {filename:+page.svelte} + + + +``` + + +### Tracing + +To test tracing, create a test API route like `src/routes/sentry-example/+server.(js|ts)`. + +```javascript {filename:+server.(js|ts)} +export const GET = async () => { + throw new Error("Sentry Example API Route Error"); +}; +``` + +Next, update your test button to call this route and throw an error if the response isn't `ok`. + +Open the page `sentry-example` in a browser and click the button to trigger two errors: + +- a frontend error +- an error within the API route + +Additionally, this starts a trace to measure the time it takes for the API request to complete. + +```html {filename:+page.svelte} + + + +``` + + + + + + + + + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your SvelteKit 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: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- Learn how to [manually capture errors](/platforms/javascript/guides/cloudflare/usage/) +- Continue to [customize your configuration](/platforms/javascript/guides/cloudflare/configuration/) +- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts +- Learn how to [manually instrument](/platforms/javascript/guides/sveltekit/apis/#load-function-instrumentation) SvelteKit-specific features + + + +- Find various support topics in [Cloudflare troubleshooting](/platforms/javascript/guides/cloudflare/troubleshooting/) and [SvelteKit troubleshooting](/platforms/javascript/guides/sveltekit/troubleshooting/) +- [Get support](https://www.sentry.help/en/) + + + + diff --git a/platform-includes/getting-started-complete/javascript.astro.mdx b/platform-includes/getting-started-complete/javascript.astro.mdx index 064dff9974b45..fb3cac04de9db 100644 --- a/platform-includes/getting-started-complete/javascript.astro.mdx +++ b/platform-includes/getting-started-complete/javascript.astro.mdx @@ -1,5 +1,3 @@ - - ### Install the Sentry SDK Install and add the Sentry integration using the `astro` CLI: @@ -34,88 +32,8 @@ pnpm add @sentry/profiling-node - - - - -### Install the Sentry SDKs - -Install both `@sentry/astro` and `@sentry/cloudflare`: - -```bash {tabTitle:npm} -npm install @sentry/astro @sentry/cloudflare -``` - -```bash {tabTitle:yarn} -yarn add @sentry/astro @sentry/cloudflare -``` - -```bash {tabTitle:pnpm} -pnpm add @sentry/astro @sentry/cloudflare -``` - - - ## Configure - - -### Wrangler Configuration - - - -### Configure Custom Entry Point - -Astro 6 with `@astrojs/cloudflare` v13+ supports custom entry points directly from `wrangler.jsonc`. Update your wrangler configuration to point to a custom Sentry entry point: - -```jsonc {filename:wrangler.jsonc} -{ - "main": "./sentry.server.config.ts", - // ... other configuration -} -``` - -Create a `sentry.server.config.ts` file in the root of your project that wraps the Astro Cloudflare handler with Sentry: - -```typescript {filename:sentry.server.config.ts} -import * as Sentry from "@sentry/cloudflare"; -import handler from "@astrojs/cloudflare/entrypoints/server"; - -export default Sentry.withSentry( - (env) => ({ - dsn: env.SENTRY_DSN, - // ___PRODUCT_OPTION_START___ performance - // Define how likely traces are sampled. Adjust this value in production, - // or use tracesSampler for greater control. - tracesSampleRate: 1.0, - // ___PRODUCT_OPTION_END___ performance - }), - handler -); -``` - -### Register the Sentry Integration - -Follow [Astro's Cloudflare deployment guide](https://docs.astro.build/en/guides/deploy/cloudflare/) if you haven't already. Then add the Sentry integration to your `astro.config.mjs` alongside the Cloudflare adapter. - -```javascript {filename:astro.config.mjs} -import { defineConfig } from "astro/config"; -import cloudflare from "@astrojs/cloudflare"; -import sentry from "@sentry/astro"; - -export default defineConfig({ - adapter: cloudflare(), - integrations: [sentry()], -}); -``` - - - - - ### Apply Instrumentation to Your App Register the Sentry integration in your `astro.config.mjs` file: @@ -129,8 +47,6 @@ export default defineConfig({ }); ``` - - ### Configure Client-side Sentry Create a `sentry.client.config.(ts|js)` file in the root of your project. In this file, import and initialize Sentry for the client: @@ -174,8 +90,6 @@ Sentry.init({ }); ``` - - Sentry automatically detects configuration files named `sentry.(client|server).config.(ts|js)` in the root of your project. You can rename these files or move them to a custom folder within your project. @@ -195,12 +109,8 @@ export default defineConfig({ - - ### Configure Server-side Sentry - - Create a `sentry.server.config.(ts|js)` file in the root of your project. In this file, import and initialize Sentry for the server: ```javascript {filename:sentry.server.config.(ts|js)} @@ -233,27 +143,15 @@ Sentry.init({ }); ``` - - - - -Server-side Sentry is already configured in your custom entry point file (`sentry.server.config.ts`) created in the previous step. - - - ### Add Readable Stack Traces With Source Maps To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry` options inside `astro.config.mjs`: - - ```javascript {filename:astro.config.mjs} import { defineConfig } from "astro/config"; -import cloudflare from "@astrojs/cloudflare"; import sentry from "@sentry/astro"; export default defineConfig({ - adapter: cloudflare(), integrations: [ sentry({ org: "___ORG_SLUG___", @@ -265,28 +163,6 @@ export default defineConfig({ }); ``` - - - - -```javascript {filename:astro.config.mjs} -import { defineConfig } from "astro/config"; -import sentry from "@sentry/astro"; - -export default defineConfig({ - integrations: [ - sentry({ - org: "___ORG_SLUG___", - project: "___PROJECT_SLUG___", - // store your auth token in an environment variable - authToken: process.env.SENTRY_AUTH_TOKEN, - }), - ], -}); -``` - - - To keep your auth token secure, set the `SENTRY_AUTH_TOKEN` environment variable in your build environment: @@ -297,14 +173,10 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ - - ### Avoid Ad Blockers With Tunneling (Optional) - - ### Control the Data You Send to Sentry (Optional) @@ -394,18 +266,8 @@ To test tracing, create a custom span to measure the time it takes for the API r Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). - - - - - - - - - - ## Next Steps At this point, you should have integrated Sentry into your Astro application and should already be sending data to your Sentry project. @@ -413,25 +275,12 @@ At this point, you should have integrated Sentry into your Astro application and Now's a good time to customize your setup and look into more advanced topics. Our next recommended steps for you are: - - -- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup -- Continue to customize your configuration -- Learn how to manually capture errors -- Learn more about [deploying Astro apps to Cloudflare](/platforms/javascript/guides/cloudflare/frameworks/astro/) -- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts - - - - - - Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup - Continue to customize your configuration - Learn how to manually capture errors +- Learn more about [deploying Astro apps to Cloudflare](/platforms/javascript/guides/astro/cloudflare/) - Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts - - - Find various topics in Troubleshooting diff --git a/platform-includes/getting-started-complete/javascript.nuxt.mdx b/platform-includes/getting-started-complete/javascript.nuxt.mdx index 8847328ac123f..ca94d38d99c5c 100644 --- a/platform-includes/getting-started-complete/javascript.nuxt.mdx +++ b/platform-includes/getting-started-complete/javascript.nuxt.mdx @@ -18,18 +18,8 @@ Choose the features you want to configure, and this guide will show you how: ]} /> - - - - - - - - - - ### Install the Sentry SDK Run the command for your preferred package manager to add the Sentry SDK to your application: @@ -122,7 +112,6 @@ export default defineNuxtConfig({ }); ``` - ### Configure Server-Side Sentry Add a `sentry.server.config.ts` file to the root of your project and initialize Sentry in it. @@ -177,51 +166,6 @@ To learn more, see [Server-Side Installation](/platforms/javascript/guides/nuxt/ node .output/server/index.mjs ``` - - - - -### Configure Cloudflare for Sentry - - - -#### Add the Nitro Plugin - - - If you have an existing `sentry.server.config.ts` file, delete it, as it will - conflict with the Cloudflare setup. - - -To enable Sentry for your Nuxt app on Cloudflare, create a new file in `server/plugins` and add the following code to it: - -```TypeScript {filename:server/plugins/sentry-cloudflare-plugin.ts} -import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins' - -export default defineNitroPlugin(sentryCloudflareNitroPlugin({ - dsn: '___PUBLIC_DSN___', - tracesSampleRate: 1.0, -})) -``` - -Or, if you need access to `nitroApp`: - -```TypeScript {filename:server/plugins/sentry-cloudflare-plugin.ts} -import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins' - -export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => { - // You can access `nitroApp` here if needed - return { - dsn: '___PUBLIC_DSN___', - tracesSampleRate: 1.0, - } -})) -``` - - - ### Add Readable Stack Traces With Source Maps (Optional) To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slugs in the `sentry` options inside your configuration file: @@ -260,14 +204,12 @@ export default defineNuxtConfig({ }); ``` - ### Avoid Ad Blockers With Tunneling (Optional) - ### Control the Data You Send to Sentry (Optional) @@ -354,18 +296,8 @@ Then update the test page by including a new button that executes a function to - - -Once you have your test code in place, build and run your project. - - - - - Once you have your test code in place, run your project in production mode (`nuxi build`, then `node .output/server/index.mjs`) or in development mode (`nuxt dev`). - - After running your project, open your test page in a browser and click the buttons. @@ -374,25 +306,14 @@ After running your project, open your test page in a browser and click the butto Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). - - - - - - - - - - ## Next Steps At this point, you should have integrated Sentry into your Nuxt 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: - - Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup - Learn how to [manually capture errors](/platforms/javascript/guides/nuxt/usage/) - Continue to [customize your configuration](/platforms/javascript/guides/nuxt/configuration/) @@ -409,22 +330,4 @@ Now's a good time to customize your setup and look into more advanced topics. Ou - - - -- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup -- Learn how to [manually capture errors](/platforms/javascript/guides/nuxt/usage/) -- Continue to [customize your configuration](/platforms/javascript/guides/nuxt/configuration/) -- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts -- Learn how to [track your Vue components or your Pinia store](/platforms/javascript/guides/nuxt/features/) - - - -- Find various support topics in Cloudflare troubleshooting and [Nuxt troubleshooting](/platforms/javascript/guides/nuxt/troubleshooting/) -- [Get support](https://www.sentry.help/en/) - - - - - diff --git a/platform-includes/getting-started-complete/javascript.remix.mdx b/platform-includes/getting-started-complete/javascript.remix.mdx index d3507e2ad8fa6..db074eb1a0887 100644 --- a/platform-includes/getting-started-complete/javascript.remix.mdx +++ b/platform-includes/getting-started-complete/javascript.remix.mdx @@ -111,8 +111,6 @@ export default withSentry(App); ### Configure Server-Side Sentry - - Create an instrumentation file `instrument.server.mjs` in your project's root folder and initialize the Sentry SDK within it: ```typescript {tabTitle:Server} {filename: instrument.server.mjs} @@ -178,91 +176,8 @@ const app = express(); - - - - -Create a Worker entry file, for example `server.ts` in your project's root folder, and set it as `main` in your wrangler config. - -In this file, instrument your Remix server build with `instrumentBuild` from `@sentry/remix/cloudflare`, pass it to `createRequestHandler`, and wrap the exported handler with `Sentry.withSentry()` from `@sentry/cloudflare`. `withSentry` isolates each request, so scope data like tags and users stays on the request that set it. - - - -Don't also wrap `createRequestHandler` with `makeWrappedCreateRequestHandler`. Combined with `withSentry`, it reports every request twice, as two `http.server` transactions in two different traces. - - - -```typescript {filename:server.ts} -import { createRequestHandler } from "@remix-run/cloudflare"; -import * as Sentry from "@sentry/cloudflare"; -import { instrumentBuild } from "@sentry/remix/cloudflare"; -// The server build produced by `remix vite:build` -import * as remixBuild from "./build/server/index.js"; - -const handleRequest = createRequestHandler(instrumentBuild(remixBuild)); - -export default Sentry.withSentry( - (env) => ({ - dsn: "___PUBLIC_DSN___", - // ___PRODUCT_OPTION_START___ performance - - // Set tracesSampleRate to 1.0 to capture 100% - // of transactions for tracing. - // We recommend adjusting this value in production - // Learn more at - // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate - tracesSampleRate: 1.0, - // ___PRODUCT_OPTION_END___ performance - }), - { - async fetch(request, env, ctx) { - return handleRequest(request, { env, ctx }); - }, - } -); -``` - - - - - -```javascript {filename:functions/_middleware.js} -import * as Sentry from "@sentry/cloudflare"; - -export const onRequest = [ - // Make sure Sentry is the first middleware - Sentry.sentryPagesPlugin((context) => ({ - dsn: "___PUBLIC_DSN___", - - // ___PRODUCT_OPTION_START___ performance - - // Set tracesSampleRate to 1.0 to capture 100% - // of transactions for tracing. - // We recommend adjusting this value in production - // Learn more at - // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate - tracesSampleRate: 1.0, - // ___PRODUCT_OPTION_END___ performance - - // Optionally limit which action formData fields are captured. - // Without this option, all fields are captured. - captureActionFormDataKeys: { - key_x: true, - key_y: true, - }, - })), - // Add more middlewares here -]; -``` - - - - - ### Capture Server-Side Errors - - To automatically capture server-side errors, export a [`handleError`](https://remix.run/docs/en/main/file-conventions/entry.server#handleerror) function from your server entry point (`entry.server.tsx`). Choose one of the two options: - Wrap your custom error handler with `wrapHandleErrorWithSentry`. @@ -290,41 +205,8 @@ import * as Sentry from "@sentry/remix"; export const handleError = Sentry.sentryHandleError; ``` - - - - -To automatically capture server-side errors, export `sentryHandleError` as the [`handleError`](https://remix.run/docs/en/main/file-conventions/entry.server#handleerror) function from your server entry point (`entry.server.tsx`). Without this export, Remix handles errors thrown in loaders and actions itself, and Sentry doesn't receive them. - - - -Import from `@sentry/remix/cloudflare`, not from `@sentry/remix`. In a Cloudflare server build, `sentryHandleError` from `@sentry/remix` is `undefined`, and no errors are captured. - - - -```typescript {filename: entry.server.tsx} -import { sentryHandleError } from "@sentry/remix/cloudflare"; - -export const handleError = sentryHandleError; -``` - - - - - -### Configure Cloudflare for Sentry - - - - - ### Configure Vite - - Add `sentryRemixVitePlugin` from `@sentry/remix/vite` to your `vite.config.ts`. The plugin: - Parameterizes client-side transaction names with your route patterns, for example `/users/:id`. @@ -351,46 +233,6 @@ export default defineConfig({ }); ``` - - - - -Add two Sentry plugins to your `vite.config.ts`, next to the Remix plugin: - -- `sentryRemixVitePlugin` from `@sentry/remix/vite` parameterizes transaction names with your route patterns, for example `/users/:id`. -- `sentryCloudflareVitePlugin` from `@sentry/cloudflare/vite` instruments supported bundled dependencies at build time, so you get spans for database clients like `mysql`. Without it, database calls produce no spans and no warning. - -Set `ssr.target` to `webworker` and bundle the Sentry packages and any database client you want traced with `ssr.noExternal`. Setting `noExternal: true` bundles every dependency, which works too. - -```typescript {filename:vite.config.ts} {2-3, 11-12, 14-17} -import { vitePlugin as remix } from "@remix-run/dev"; -import { sentryCloudflareVitePlugin } from "@sentry/cloudflare/vite"; -import { sentryRemixVitePlugin } from "@sentry/remix/vite"; -import { defineConfig } from "vite"; - -export default defineConfig({ - plugins: [ - remix({ - // ... your Remix plugin options - }), - sentryRemixVitePlugin(), - sentryCloudflareVitePlugin(), - ], - ssr: { - target: "webworker", - noExternal: ["mysql", /^@sentry\//, "@opentelemetry/api"], - }, -}); -``` - -Build your app with `remix vite:build`. Under Vite 6, a plain `vite build` only builds the client and skips `build/server`, without an error. - -```bash -npx remix vite:build -``` - - - ### Add Readable Stack Traces With Source Maps (Optional) To upload source maps for clear error stack traces, pass your Sentry organization, project, and auth token to `sentryRemixVitePlugin` from the previous step. It injects debug IDs, uploads the source maps during your production build, and deletes them from your build output afterwards. @@ -437,13 +279,10 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ - ### Avoid Ad Blockers With Tunneling (Optional) - - ### Control the Data You Send to Sentry (Optional) @@ -519,17 +358,8 @@ Open the page in a browser and click the button to trigger the frontend error an Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). - - - - - - - - - ## Next Steps At this point, you should have integrated Sentry into your Remix application and should already be sending error and performance data to your Sentry project. @@ -541,7 +371,6 @@ Now's a good time to customize your setup and look into more advanced topics. Ou - Continue to customize your configuration - Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts - - If you encountered issues with the manual setup, try our installation wizard @@ -549,14 +378,3 @@ Now's a good time to customize your setup and look into more advanced topics. Ou - [Get support](https://www.sentry.help/en/) - - - - - -- If you encountered issues with the manual setup, try our installation wizard -- Find various support topics in Cloudflare troubleshooting and [Remix troubleshooting](/platforms/javascript/guides/remix/troubleshooting/) -- [Get support](https://www.sentry.help/en/) - - - diff --git a/platform-includes/getting-started-complete/javascript.sveltekit.mdx b/platform-includes/getting-started-complete/javascript.sveltekit.mdx index c37251053054d..52fc145582743 100644 --- a/platform-includes/getting-started-complete/javascript.sveltekit.mdx +++ b/platform-includes/getting-started-complete/javascript.sveltekit.mdx @@ -20,18 +20,12 @@ This means that Sentry can now follow the official best practice for how the SDK SvelteKit observability is still an experimental feature in SvelteKit 2.x, but we recommend giving it a try. The Sentry wizard, as well as this guide, will use it as the default way of setting up the SDK. - - If you've already set up the SDK and don't want to migrate to the new setup, or don't want to upgrade to SvelteKit `2.31.0` or higher, that's fine too. Just follow this guide instead. However, note that auto instrumentation (e.g. for database queries) will not work. - - - - The SvelteKit Sentry SDK is designed to work out of the box with several SvelteKit adapters and their underlying server runtimes. Here's an overview of the current support: @@ -41,7 +35,7 @@ Here's an overview of the current support: - [Adapter-vercel](https://kit.svelte.dev/docs/adapter-vercel) when used with Vercel's Node.js Lambda runtime - [Adapter-node](https://kit.svelte.dev/docs/adapter-node) - **Supported non-Node.js runtimes** - - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) + - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/sveltekit/cloudflare/) - **Currently not supported** - Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported. - **Other adapters** @@ -49,8 +43,6 @@ Here's an overview of the current support: - - ## Install @@ -66,17 +58,8 @@ Choose the features you want to configure, and this guide will show you how: ]} /> - - - - - - - - - ### Install the Sentry SDK Run the command for your preferred package manager to add the Sentry SDK to your application: @@ -152,18 +135,8 @@ export const handleError = Sentry.handleErrorWithSentry(myErrorHandler); ### Configure Server-Side Sentry - - _Requires SvelteKit `2.31.0` or higher and `@sentry/sveltekit` `10.8.0` or higher._ If you're using older versions, check out [this guide](../manual-setup__v10.7.0#configure-server-side-sentry) instead. - - - - -_Requires SvelteKit `2.31.0` or higher and `@sentry/sveltekit` `10.8.0` or higher._ - - - Configure server-side instrumentation and tracing. Where this config lives depends on your SvelteKit version — SvelteKit 2 uses `svelte.config.js`, while SvelteKit 3 moved it into the `sveltekit()` Vite plugin options in `vite.config.(js|ts)` instead (see [Configure Vite](#configure-vite) below). SvelteKit 3 no longer needs an instrumentation flag, so the only option to set there is `tracing`. ```js {tabTitle:SvelteKit 2} {mdExpandTabs} {filename:svelte.config.js} {3-12} @@ -204,8 +177,6 @@ export default defineConfig({ }); ``` - - Create a `src/instrumentation.server.(js|ts)` file (if you don't have one already) to initialize the server-side SDK: ```js {filename:src/instrumentation.server.(js|ts)} {1, 3-15} @@ -250,49 +221,6 @@ If you're using SvelteKit versions older than `2.16.0` and encounter Content Sec - - - - -Create a server hooks file `src/hooks.server.(js|ts)` in your project if you don't have one already. In this file, import and initialize the Sentry SDK and add the `handleErrorWithSentry` function to the [`handleError` hook](https://svelte.dev/docs/kit/hooks#Shared-hooks-handleError) and Sentry's Cloudflare request handler to the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle). - -```javascript {filename:src/hooks.server.(js|ts)} -import { - handleErrorWithSentry, - sentryHandle, - initCloudflareSentryHandle, -} from "@sentry/sveltekit"; -import { sequence } from "@sveltejs/kit/hooks"; -import * as Sentry from "@sentry/sveltekit"; - -export const handle = sequence( - initCloudflareSentryHandle({ - dsn: "___PUBLIC_DSN___", - - // ___PRODUCT_OPTION_START___ performance - - // Set tracesSampleRate to 1.0 to capture 100% - // of transactions for tracing. - // We recommend adjusting this value in production - // Learn more at - // https://docs.sentry.io/platforms/javascript/configuration/options/#traces-sample-rate - tracesSampleRate: 1.0, - // ___PRODUCT_OPTION_END___ performance - }), - sentryHandle() -); - -const myErrorHandler = ({ error, event }) => { - console.error("An error occurred on the server side:", error, event); -}; - -export const handleError = Sentry.handleErrorWithSentry(myErrorHandler); -// or alternatively, if you don't have a custom error handler: -// export const handleError = handleErrorWithSentry(); -``` - - - ### Configure Vite Add the `sentrySvelteKit` plugin **before** `sveltekit` in your `vite.config.(js|ts)` file to automatically upload source maps to Sentry and instrument `load` functions for tracing if it's configured. @@ -308,17 +236,6 @@ export default defineConfig({ }); ``` - - -### Configure Cloudflare for Sentry - - - - - ### Add Readable Stack Traces With Source Maps (Optional) To upload source maps for clear error stack traces, add your Sentry auth token, organization, and project slug in your `vite.config.(js|ts)` file: @@ -351,7 +268,6 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ - ### Override Adapter Detection `sentrySvelteKit` tries to auto-detect your SvelteKit adapter to configure source maps upload correctly. If you're using an unsupported adapter or the wrong one is detected, set it using the `adapter` option: @@ -371,15 +287,10 @@ export default { }; ``` - - - ### Avoid Ad Blockers With Tunneling (Optional) - - ### Control the Data You Send to Sentry (Optional) @@ -466,17 +377,8 @@ Additionally, this starts a trace to measure the time it takes for the API reque Now, head over to your project on [Sentry.io](https://sentry.io) to view the collected data (it takes a couple of moments for the data to appear). - - - - - - - - - ## Next Steps At this point, you should have integrated Sentry into your SvelteKit application and should already be sending data to your Sentry project. @@ -484,12 +386,11 @@ At this point, you should have integrated Sentry into your SvelteKit application Now's a good time to customize your setup and look into more advanced topics. Our next recommended steps for you are: - - Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup - Learn how to [manually capture errors](/platforms/javascript/guides/sveltekit/usage/) - Continue to [customize your configuration](/platforms/javascript/guides/sveltekit/configuration/) - Learn how to [manually instrument](/platforms/javascript/guides/sveltekit/apis/#load-function-instrumentation) SvelteKit-specific features -- Learn more about [deploying SvelteKit apps to Cloudflare Workers and Pages](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) +- Learn more about [deploying SvelteKit apps to Cloudflare Workers and Pages](/platforms/javascript/guides/sveltekit/cloudflare/) - Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts @@ -500,21 +401,4 @@ Our next recommended steps for you are: - - - -- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup -- Learn how to [manually capture errors](/platforms/javascript/guides/cloudflare/usage/) -- Continue to [customize your configuration](/platforms/javascript/guides/cloudflare/configuration/) -- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts -- Learn how to [manually instrument](/platforms/javascript/guides/sveltekit/apis/#load-function-instrumentation) SvelteKit-specific features - - - -- Find various support topics in Cloudflare troubleshooting and [SvelteKit troubleshooting](/platforms/javascript/guides/sveltekit/troubleshooting/) -- [Get support](https://www.sentry.help/en/) - - - - diff --git a/platform-includes/getting-started-node/javascript.nextjs.mdx b/platform-includes/getting-started-node/javascript.nextjs.mdx new file mode 100644 index 0000000000000..1ce1e7b97b13f --- /dev/null +++ b/platform-includes/getting-started-node/javascript.nextjs.mdx @@ -0,0 +1,110 @@ + + + + +## Install + +### Run the Installation Wizard + +Run the Sentry wizard to automatically install the SDK and configure Sentry in your Next.js application: + +```bash +npx @sentry/wizard@latest -i nextjs +``` + +The wizard asks whether you want to enable **Tracing** and **Session Replay**, route browser requests through your server to avoid ad blockers, and create an example page. To match the configuration in this guide, answer **Yes** to each. + +Prefer to set things up yourself? Check out the [Manual Setup](/platforms/javascript/guides/nextjs/manual-setup/) guide. + +## Configure + +**Error Monitoring** starts working as soon as you call `Sentry.init()`. **Logs** and **Application Metrics** need no extra configuration, and you'll learn how to send them in steps [#3](#send-logs) and [#4](#send-application-metrics-). +This guide also enables **Tracing**, **Session Replay**, and **User Feedback**. + + + + + +### Control the Data You Send to Sentry + + + +## Send Logs + + + +If you're already logging with another library, use an integration to capture those logs as Sentry Logs automatically: + +- `consoleLoggingIntegration` for `console` calls +- Consola +- Pino +- Winston + +## Send Application Metrics + + + +In the Node.js runtime, `nodeRuntimeMetricsIntegration` also collects runtime health metrics automatically. + +## Verify Your Setup + +Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. + +The wizard created an example page that sends a test error from both your frontend and your backend: + +1. Start your development server: + + ```bash + npm run dev + ``` + +2. Open [localhost:3000/sentry-example-page](http://localhost:3000/sentry-example-page) in your browser. +3. Click **Throw Sample Error**. + +If you skipped the example page, add a test button to one of your pages instead. Clicking it will trigger an error for Sentry to capture. + +```tsx {filename:app/page.tsx} +"use client"; + +export default function Page() { + return ( + + ); +} +``` + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear). + + + +## Next Steps + +At this point, you should have integrated Sentry into your Next.js 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 agents built with the Vercel AI SDK, LangChain, and more +- Set up tunneling to avoid ad blockers blocking Sentry events, if you didn't enable it in the wizard + + + +- If you encountered issues with our installation wizard, try [setting up Sentry manually](/platforms/javascript/guides/nextjs/manual-setup/) +- Find various topics in Troubleshooting +- [Get support](https://www.sentry.help/en/) + + + + diff --git a/platform-includes/getting-started-node/javascript.nuxt.mdx b/platform-includes/getting-started-node/javascript.nuxt.mdx new file mode 100644 index 0000000000000..dbf7c4ea86950 --- /dev/null +++ b/platform-includes/getting-started-node/javascript.nuxt.mdx @@ -0,0 +1,130 @@ + + + + +## Install + + + + + + + + + +## Avoid Ad Blockers With Tunneling (Optional) + + + +## Control the Data You Send to Sentry (Optional) + + + +## Verify Your Setup + +The `sentry init` command checks the integration files it creates or modifies before it finishes. To confirm runtime events are reaching Sentry, start your Nuxt app, exercise the parts of your app that should send events, and then check your Sentry project. + +If you used the Nuxt installation wizard instead, you can also verify your setup with the example page or component it creates. + + +The wizard creates a `SentryErrorButton` component when it fails to add an example page to your project. This usually happens if you don't have a `app.vue` file or if that file does not contain the `NuxtPage` component. To verify your setup, follow these steps before continuing with the next section, "View Captured Data in Sentry": + +1. Add the `SentryErrorButton` component to a page and open it in your browser. For most Nuxt applications, this will be at localhost. +2. Click the "Throw Sample Error" button, which triggers an error and starts a performance trace on the client side. + +To test the server side as well, refer to the "Verify" section in the [Manual setup guide](/platforms/javascript/guides/nuxt/manual-setup/). + + + +To test Sentry, you can run your Nuxt application in either production or development mode. +We **recommend testing in production mode** as it most closely resembles your deployed application's environment. + +The SDK bundles `sentry.server.config.ts` into the Nitro server build and initializes Sentry when the server starts. To learn more, see Server-Side Installation. + +### Run in Production Mode (Recommended) + +Build your project with `nuxi build`, then start the server. + +```bash +# Start your app after building your project with `nuxi build` +node .output/server/index.mjs +``` + +### Run in Development Mode + +Sentry also monitors the server side during development. Start the dev server as usual. + +Spans from some libraries, such as database clients, can be missing in development mode. +Errors and request traces always work. To learn more, see Development Mode. + +```bash +nuxt dev +``` + +If you used the Nuxt installation wizard, after building and running your project: + +1. Open the example page `/sentry-example-page` in your browser. For most Nuxt applications, this will be at localhost. +2. Click the "Throw sample error" button. This triggers two errors: + - a frontend error + - an error within the API route + +Sentry captures both of these errors for you. Additionally, the button click starts a performance trace to measure the time it takes for the API request to complete. + + + +### View Captured Data in Sentry + +Now, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear). + + + + + +## Next Steps + +At this point, you should have integrated Sentry into your Nuxt application and should already be sending error and performance 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: + +- Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup +- Learn how to [manually capture errors](/platforms/javascript/guides/nuxt/usage/) +- Continue to [customize your configuration](/platforms/javascript/guides/nuxt/configuration/) +- Get familiar with [Sentry's product features](/product/) like tracing, insights, and alerts +- Learn how to [track your Vue components or your Pinia store](/platforms/javascript/guides/nuxt/features/) +- Learn how to [add support for different Nitro deployment presets](/platforms/javascript/guides/nuxt/features/nitro-deployment-presets/) (like Cloudflare) + + + +- If you encountered issues with our installation wizard, try [setting up Sentry manually](/platforms/javascript/guides/nuxt/manual-setup/) +- [Get support](https://www.sentry.help/en/) + + + + diff --git a/platform-includes/getting-started-prerequisites/javascript.sveltekit.mdx b/platform-includes/getting-started-prerequisites/javascript.sveltekit.mdx index d042a382ab607..8d099e46eb8d6 100644 --- a/platform-includes/getting-started-prerequisites/javascript.sveltekit.mdx +++ b/platform-includes/getting-started-prerequisites/javascript.sveltekit.mdx @@ -36,7 +36,7 @@ Here's an overview of the current support: - [Adapter-vercel](https://kit.svelte.dev/docs/adapter-vercel) when used with Vercel's Node.js Lambda runtime - [Adapter-node](https://kit.svelte.dev/docs/adapter-node) - **Supported non-Node.js runtimes** - - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/cloudflare/frameworks/sveltekit/) + - [Adapter-cloudflare](https://kit.svelte.dev/docs/adapter-cloudflare) requires [additional setup](/platforms/javascript/guides/sveltekit/cloudflare/) - **Currently not supported** - Non-Node.js server runtimes, such as Vercel's edge runtime, are not yet supported. - **Other adapters** diff --git a/platform-includes/getting-started-wizard-files/javascript.nextjs.mdx b/platform-includes/getting-started-wizard-files/javascript.nextjs.mdx new file mode 100644 index 0000000000000..d3b92a08b86ab --- /dev/null +++ b/platform-includes/getting-started-wizard-files/javascript.nextjs.mdx @@ -0,0 +1,143 @@ +### Initialize the SDK + +Next.js runs code in different environments, so the wizard creates a separate initialization file for each in your project's root directory (or `src` folder): + +- `instrumentation-client.ts`: runs in the browser +- `sentry.server.config.ts`: runs in the Node.js runtime +- `sentry.edge.config.ts`: runs in the Edge runtime + +Use the tabs in the code box below to view each file. + +The snippets also turn on: + +- Tracing: via `tracesSampleRate` in all three files +- Session Replay: via `replayIntegration()`, sampled with `replaysSessionSampleRate` and `replaysOnErrorSampleRate` +- User Feedback: via `feedbackIntegration()`. The wizard doesn't add this integration, so add it to `instrumentation-client.ts` yourself. + +Don't need a feature? Remove its integration and options from the snippets. + +```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} +import * as Sentry from "@sentry/nextjs"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [ + // enables Session Replay + Sentry.replayIntegration(), + // enables User Feedback + Sentry.feedbackIntegration({ + // Additional integration configuration goes in here + colorScheme: "system", + }), + ], + + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + tracesSampleRate: 1.0, + + // Capture replays for 10% of all sessions, + // plus for 100% of sessions with an error + // Requires Sentry.replayIntegration() + replaysSessionSampleRate: 0.1, + replaysOnErrorSampleRate: 1.0, +}); + +// Instruments client-side navigations +export const onRouterTransitionStart = Sentry.captureRouterTransitionStart; +``` + +```typescript {tabTitle:Server} {filename:sentry.server.config.ts} +import * as Sentry from "@sentry/nextjs"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + tracesSampleRate: 1.0, +}); +``` + +```typescript {tabTitle:Edge} {filename:sentry.edge.config.ts} +import * as Sentry from "@sentry/nextjs"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + tracesSampleRate: 1.0, +}); +``` + +### Register the Server-Side Configuration + +The wizard creates a [Next.js instrumentation file](https://nextjs.org/docs/app/guides/instrumentation) named `instrumentation.ts`. It loads your server and edge configurations, and exports `onRequestError` to capture errors from Server Components, route handlers, and middleware. + +```typescript {filename:instrumentation.ts} +import * as Sentry from "@sentry/nextjs"; + +export async function register() { + if (process.env.NEXT_RUNTIME === "nodejs") { + await import("./sentry.server.config"); + } + + if (process.env.NEXT_RUNTIME === "edge") { + await import("./sentry.edge.config"); + } +} + +export const onRequestError = Sentry.captureRequestError; +``` + +### Capture React Render Errors + +If you use the App Router, the wizard adds Sentry to `app/global-error.tsx` to capture React rendering errors. If you use the Pages Router, it adds Sentry to `pages/_error.tsx` instead. + + + +### Apply Instrumentation to Your App + +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"; + +const nextConfig: NextConfig = { + // Your existing Next.js configuration +}; + +export default withSentryConfig(nextConfig, { + org: "___ORG_SLUG___", + project: "___PROJECT_SLUG___", + + // Only print logs for uploading source maps in CI + silent: !process.env.CI, + + // Upload a larger set of source maps for prettier stack traces (increases build time) + widenClientFileUpload: true, + + // Route browser requests to Sentry through a Next.js rewrite to avoid ad blockers. + // This can increase your server load as well as your hosting bill. + tunnelRoute: "/monitoring", +}); +``` + +### Add Readable Stack Traces With Source Maps + +The wizard stores your auth token in `.env.sentry-build-plugin` and adds the file to `.gitignore`. The Sentry build plugin uses this token to upload source maps when you build your app locally. + +For CI/CD builds, set the `SENTRY_AUTH_TOKEN` environment variable in your build system instead. + + + +```bash {filename:.env.sentry-build-plugin} +SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ +``` diff --git a/redirects.js b/redirects.js index b047758e4359a..d79bbd296af08 100644 --- a/redirects.js +++ b/redirects.js @@ -1046,7 +1046,38 @@ const userDocsRedirects = [ { // The Nuxt SDK links to this path in its Cloudflare build warning source: '/platforms/javascript/guides/nuxt/install/cloudflare-workers/', - destination: '/platforms/javascript/guides/cloudflare/frameworks/nuxt/', + destination: '/platforms/javascript/guides/nuxt/cloudflare/', + }, + // The Cloudflare quick starts of these frameworks moved from the Cloudflare guide into the framework guides. + { + source: + '/platforms/javascript/guides/cloudflare/frameworks/:framework(astro|hono|nextjs|nuxt|remix|sveltekit)/', + destination: '/platforms/javascript/guides/:framework/cloudflare/', + }, + { + source: '/platforms/javascript/guides/cloudflare/frameworks/tanstack-start/', + destination: '/platforms/javascript/guides/tanstackstart-react/cloudflare/', + }, + { + source: '/platforms/javascript/guides/remix/frameworks/', + destination: '/platforms/javascript/guides/remix/cloudflare/', + }, + { + source: '/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/', + destination: '/platforms/javascript/guides/react-router/hydrogen/', + }, + { + source: '/platforms/javascript/guides/cloudflare/frameworks/hydrogen-remix/', + destination: '/platforms/javascript/guides/remix/hydrogen/', + }, + { + // The Cloudflare quick start links to every framework page. + source: '/platforms/javascript/guides/cloudflare/frameworks/', + destination: '/platforms/javascript/guides/cloudflare/', + }, + { + source: '/platforms/javascript/guides/nextjs/best-practices/deploying-on-cloudflare/', + destination: '/platforms/javascript/guides/nextjs/cloudflare/', }, { source: '/platforms/javascript/guides/connect/', @@ -2107,13 +2138,11 @@ const userDocsRedirects = [ }, { source: '/platforms/javascript/guides/remix/frameworks/hydrogen/', - destination: - '/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/', + destination: '/platforms/javascript/guides/react-router/hydrogen/', }, { source: '/platforms/javascript/guides/cloudflare/frameworks/hydrogen/', - destination: - '/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router/', + destination: '/platforms/javascript/guides/react-router/hydrogen/', }, // Removed /product/onboarding/ section (content was orphaned and duplicated elsewhere) { diff --git a/src/components/docPage/index.tsx b/src/components/docPage/index.tsx index 22e6c5e301a9e..014f3bb37904c 100644 --- a/src/components/docPage/index.tsx +++ b/src/components/docPage/index.tsx @@ -29,6 +29,7 @@ import Mermaid from '../mermaid'; import {PaginationNav} from '../paginationNav'; import {PlatformSdkDetail} from '../platformSdkDetail'; import {getSdkPackageName} from '../platformSdkPackageName'; +import {RuntimeSelector} from '../runtimeSelector'; import {Sidebar} from '../sidebar'; import {SidebarTableOfContents} from '../sidebarTableOfContents'; import {ReaderDepthTracker} from '../track-reader-depth'; @@ -123,6 +124,7 @@ export async function DocPage({ {/* This exact id is important for Algolia indexing */}
    + {frontMatter.runtime && } {children} diff --git a/src/components/runtimeLinks.spec.ts b/src/components/runtimeLinks.spec.ts new file mode 100644 index 0000000000000..0989ac44cbca0 --- /dev/null +++ b/src/components/runtimeLinks.spec.ts @@ -0,0 +1,70 @@ +import {describe, expect, it} from 'vitest'; + +import {getQuickStartTitle, getRuntimeLinks} from './runtimeLinks'; + +const G = 'platforms/javascript/guides'; + +type Page = {children: Page[]; frontmatter: {runtime?: string}; path: string}; + +const page = (path: string, runtime?: string, children: Page[] = []): Page => ({ + path, + frontmatter: runtime ? {runtime} : {}, + children, +}); + +const piDurable = page(`${G}/pi-durable`, 'node', [ + page(`${G}/pi-durable/cloudflare`, 'cloudflare'), + page(`${G}/pi-durable/deno`, 'deno'), + page(`${G}/pi-durable/bun`, 'bun'), + page(`${G}/pi-durable/configuration`), +]); + +const path = (p: string) => p.split('/'); + +describe('getRuntimeLinks', () => { + it('links the guide page and its child pages with a runtime, in doc tree order', () => { + expect(getRuntimeLinks(piDurable, path(`${G}/pi-durable`))?.map(l => l.url)).toEqual([ + `/${G}/pi-durable/`, + `/${G}/pi-durable/cloudflare/`, + `/${G}/pi-durable/deno/`, + `/${G}/pi-durable/bun/`, + ]); + }); + + it('selects the runtime of the current page', () => { + const selected = (p: string) => + getRuntimeLinks(piDurable, path(p)) + ?.filter(l => l.selected) + .map(l => l.runtime); + + expect(selected(`${G}/pi-durable`)).toEqual(['node']); + expect(selected(`${G}/pi-durable/deno`)).toEqual(['deno']); + expect(selected(`${G}/pi-durable/configuration/options`)).toEqual([]); + }); + + it('returns null for a guide with quick starts for fewer than two runtimes', () => { + expect(getRuntimeLinks(page(`${G}/node`, 'node'), path(`${G}/node`))).toBeNull(); + expect(getRuntimeLinks(page(`${G}/eve`), path(`${G}/eve`))).toBeNull(); + expect(getRuntimeLinks(undefined, path('product/agents'))).toBeNull(); + }); +}); + +describe('getQuickStartTitle', () => { + it('names the runtime of the guide page if the guide has quick starts for more runtimes', () => { + expect(getQuickStartTitle(piDurable)).toBe('Quick Start (Node.js)'); + }); + + it('returns "Quick Start" for a guide with quick starts for fewer than two runtimes', () => { + expect(getQuickStartTitle(page(`${G}/node`, 'node'))).toBe('Quick Start'); + expect(getQuickStartTitle(page(`${G}/eve`))).toBe('Quick Start'); + expect(getQuickStartTitle(undefined)).toBe('Quick Start'); + }); + + it('returns "Quick Start" if only the child pages set a runtime', () => { + const hono = page(`${G}/hono`, undefined, [ + page(`${G}/hono/cloudflare`, 'cloudflare'), + page(`${G}/hono/bun`, 'bun'), + ]); + expect(getQuickStartTitle(hono)).toBe('Quick Start'); + }); +}); diff --git a/src/components/runtimeLinks.ts b/src/components/runtimeLinks.ts new file mode 100644 index 0000000000000..d2c448466c00d --- /dev/null +++ b/src/components/runtimeLinks.ts @@ -0,0 +1,61 @@ +const RUNTIME_TITLES: Record = { + node: 'Node.js', + cloudflare: 'Cloudflare', + deno: 'Deno', + bun: 'Bun', +}; + +export type RuntimeLink = { + runtime: string; + selected: boolean; + title: string; + url: string; +}; + +type QuickStartNode = { + frontmatter: {runtime?: string}; + path: string; + children?: QuickStartNode[]; +}; + +/** + * Returns the links to the quick starts of `guide`: the guide page and its child pages that + * set `runtime` in their frontmatter, in doc tree order. The page at `path` is selected. + * Returns `null` if the guide has quick starts for fewer than two runtimes. + */ +export function getRuntimeLinks( + guide: QuickStartNode | undefined, + path: string[] +): RuntimeLink[] | null { + if (!guide) { + return null; + } + + const current = path.join('/'); + const links = [guide, ...(guide.children ?? [])].flatMap(page => { + const runtime = page.frontmatter.runtime; + return runtime + ? [ + { + runtime, + selected: page.path === current, + title: RUNTIME_TITLES[runtime] ?? runtime, + url: `/${page.path}/`, + }, + ] + : []; + }); + return links.length < 2 ? null : links; +} + +/** + * Returns the sidebar title of the guide page of `guide`: "Quick Start", or + * "Quick Start ()", for example "Quick Start (Node.js)", if the guide has quick + * starts for more than one runtime. + */ +export function getQuickStartTitle(guide: QuickStartNode | undefined): string { + const runtime = getRuntimeLinks(guide, [])?.find( + link => link.url === `/${guide?.path}/` + )?.title; + return runtime ? `Quick Start (${runtime})` : 'Quick Start'; +} diff --git a/src/components/runtimeSelector.tsx b/src/components/runtimeSelector.tsx new file mode 100644 index 0000000000000..e03e6cb2fa50d --- /dev/null +++ b/src/components/runtimeSelector.tsx @@ -0,0 +1,66 @@ +import {Button} from '@radix-ui/themes'; +import Link from 'next/link'; +import {nodeForPath} from 'sentry-docs/docTree'; +import {serverContext} from 'sentry-docs/serverContext'; + +import {PlatformIcon} from './platformIcon'; +import {getRuntimeLinks} from './runtimeLinks'; + +/** + * Links the quick starts of the current guide for each runtime: the guide page and its child + * pages that set `runtime` in their frontmatter. `DocPage` renders it on each page that sets + * `runtime`. The links are plain anchors, so they are also in the page's Markdown export for + * AI agents. + */ +export function RuntimeSelector() { + const {rootNode, path} = serverContext(); + const links = getRuntimeLinks(nodeForPath(rootNode, path.slice(0, 4)), path); + if (!links) { + return null; + } + + return ( + + ); +} diff --git a/src/components/sidebar/dynamicNav.tsx b/src/components/sidebar/dynamicNav.tsx index 11ca96b607909..7ab25c73fb834 100644 --- a/src/components/sidebar/dynamicNav.tsx +++ b/src/components/sidebar/dynamicNav.tsx @@ -290,6 +290,8 @@ type Props = { collapsible?: boolean; exclude?: string[]; extraLinks?: ExternalSidebarLink[]; + /** The title of the link to the `root` page in a platform sidebar. */ + quickStartTitle?: string; title?: string; }; @@ -300,6 +302,7 @@ export function DynamicNav({ collapsible = false, exclude = [], extraLinks, + quickStartTitle = 'Quick Start', }: Props) { if (root.startsWith('/')) { root = root.substring(1); @@ -363,7 +366,7 @@ export function DynamicNav({ {isPlatformSidebar && (
); diff --git a/src/types/frontmatter.ts b/src/types/frontmatter.ts index fd9a5557eef19..47943ef95f842 100644 --- a/src/types/frontmatter.ts +++ b/src/types/frontmatter.ts @@ -97,6 +97,12 @@ export interface FrontMatter { */ previousPage?: PaginationNavNode; + /** + * The runtime of a quick start, for example `node` or `cloudflare`. The page then shows a + * runtime selector that links the quick starts of the same guide for the other runtimes. + */ + runtime?: string; + /** * Set this to true to show a separator/divider below this item in the sidebar * @deprecated Use sidebar_section instead From c9ed9059e033fe17776756a59bd70e7aeed8d78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Tue, 10 Nov 2026 11:15:13 -0500 Subject: [PATCH 011/141] feat(js): Add a framework selector to the Node.js, Bun and Deno quick starts (#19974) ## DESCRIBE YOUR PR This turns the Express, Fastify, Hapi and Koa guides into landing pages that link to the Node.js, Bun and Deno quick starts, because the runtime SDKs instrument these frameworks automatically. Their subpages redirect to the Node.js guide. Image The runtime quick starts get a "Framework" dropdown with 2 groups: - **Set up with this guide** (Express, Fastify, Koa, Hapi): swaps in the framework's snippets, such as error capture and the test route, and labels each changed block. A line under the dropdown links to the changed steps. The selection is kept in `?framework=express`. - **Set up with its own guide** (Next.js, Nuxt, Hono, Elysia and others): opens that framework's guide. On Cloudflare, the dropdown replaces the list of framework guides. FWIW the dropdown is onkly for humans. Agents already find everything in the respective guide, such as Express. Meta frameworks, that are not based on an integration are baked-in into the markdown, so agents finds it too: https://sentry-docs-git-jp-poc-selector-2-all-frameworks.sentry.dev/platforms/javascript/guides/node.md Image Image In addition, `/platform-redirect/` links for these guides go to the Node.js page when the guide does not have the requested page. The selector is ported from #19683. ## Known issues - Express, Fastify, Koa and Hapi are not in the Cloudflare dropdown, because they have no tested setup on Workers. - The table of contents does not show headings that only exist in a swapped-in snippet. - The framework snippets load in the browser, so the `.md` export and agents get only the runtime steps. The setup code is the same for every framework, only the examples differ. ## 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) --------- Co-authored-by: Francesco Novy Co-authored-by: Claude Opus 5.5 Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- .../[framework]/[...includePath]/route.ts | 161 +++++ app/platform-redirect/page.tsx | 10 +- app/platform-redirect/utils.spec.ts | 45 +- app/platform-redirect/utils.ts | 22 + docs/contributing/pages/components.mdx | 23 + .../configuration/integrations/fastify.mdx | 41 ++ .../data-management/sensitive-data/index.mdx | 2 +- .../common/sourcemaps/uploading/rollup.mdx | 2 +- .../platforms/javascript/guides/bun/index.mdx | 12 +- .../javascript/guides/cloudflare/index.mdx | 13 +- .../data-management/sensitive-data/index.mdx | 2 +- .../cordova/sourcemaps/uploading/rollup.mdx | 2 +- .../javascript/guides/deno/index.mdx | 12 +- .../integrations/contextlines.mdx | 20 - .../javascript/guides/express/index.mdx | 44 +- .../javascript/guides/express/index__v7.x.mdx | 14 - .../automatic-instrumentation.mdx | 6 - .../guides/fastify/features/error-handler.mdx | 57 -- .../guides/fastify/features/index.mdx | 9 - .../javascript/guides/fastify/index.mdx | 27 +- .../automatic-instrumentation.mdx | 6 - .../integrations/contextlines.mdx | 20 - .../javascript/guides/hapi/index.mdx | 25 +- .../automatic-instrumentation.mdx | 6 - .../integrations/contextlines.mdx | 20 - .../platforms/javascript/guides/koa/index.mdx | 25 +- .../automatic-instrumentation.mdx | 6 - .../javascript/guides/node/index.mdx | 4 + docs/product/logs/getting-started/index.mdx | 8 +- .../product/metrics/getting-started/index.mdx | 8 +- .../javascript.fastify.mdx | 2 +- .../javascript.koa.mdx | 31 - .../getting-started-node/javascript.mdx | 14 +- .../javascript.bun.mdx | 7 + .../javascript.deno.mdx | 7 + .../javascript.express.mdx | 0 .../javascript.fastify.mdx | 0 .../javascript.hapi.mdx | 0 .../javascript.koa.mdx | 0 .../javascript.mdx | 11 + .../javascript.node.mdx | 12 +- redirects.js | 22 +- .../frameworkSelector/frameworks.spec.ts | 88 +++ .../frameworkSelector/frameworks.ts | 125 ++++ src/components/frameworkSelector/index.tsx | 557 ++++++++++++++++++ .../frameworkSelector/style.module.scss | 69 +++ src/components/migrationGuide/index.tsx | 7 +- src/components/platformContent.tsx | 35 +- src/components/platformIcon.tsx | 7 + src/mdxComponents.ts | 2 + 50 files changed, 1375 insertions(+), 273 deletions(-) create mode 100644 app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]/route.ts delete mode 100644 docs/platforms/javascript/guides/express/configuration/integrations/contextlines.mdx delete mode 100644 docs/platforms/javascript/guides/express/index__v7.x.mdx delete mode 100644 docs/platforms/javascript/guides/express/tracing/instrumentation/automatic-instrumentation.mdx delete mode 100644 docs/platforms/javascript/guides/fastify/features/error-handler.mdx delete mode 100644 docs/platforms/javascript/guides/fastify/features/index.mdx delete mode 100644 docs/platforms/javascript/guides/fastify/tracing/instrumentation/automatic-instrumentation.mdx delete mode 100644 docs/platforms/javascript/guides/hapi/configuration/integrations/contextlines.mdx delete mode 100644 docs/platforms/javascript/guides/hapi/tracing/instrumentation/automatic-instrumentation.mdx delete mode 100644 docs/platforms/javascript/guides/koa/configuration/integrations/contextlines.mdx delete mode 100644 docs/platforms/javascript/guides/koa/tracing/instrumentation/automatic-instrumentation.mdx delete mode 100644 platform-includes/getting-started-install/javascript.koa.mdx create mode 100644 platform-includes/getting-started-verify-issues-tracing/javascript.bun.mdx create mode 100644 platform-includes/getting-started-verify-issues-tracing/javascript.deno.mdx rename platform-includes/{getting-started-verify => getting-started-verify-issues-tracing}/javascript.express.mdx (100%) rename platform-includes/{getting-started-verify => getting-started-verify-issues-tracing}/javascript.fastify.mdx (100%) rename platform-includes/{getting-started-verify => getting-started-verify-issues-tracing}/javascript.hapi.mdx (100%) rename platform-includes/{getting-started-verify => getting-started-verify-issues-tracing}/javascript.koa.mdx (100%) create mode 100644 platform-includes/getting-started-verify-issues-tracing/javascript.mdx create mode 100644 src/components/frameworkSelector/frameworks.spec.ts create mode 100644 src/components/frameworkSelector/frameworks.ts create mode 100644 src/components/frameworkSelector/index.tsx create mode 100644 src/components/frameworkSelector/style.module.scss diff --git a/app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]/route.ts b/app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]/route.ts new file mode 100644 index 0000000000000..acfaca67ac4f3 --- /dev/null +++ b/app/api/platform-content/[platform]/[runtime]/[framework]/[...includePath]/route.ts @@ -0,0 +1,161 @@ +import { + PlatformContentPayload, + RUNTIMES, +} from 'sentry-docs/components/frameworkSelector/frameworks'; +import {resolvePlatformContent} from 'sentry-docs/components/platformContent'; +import {getFileBySlugWithCache} from 'sentry-docs/mdx'; + +/** + * Serves the compiled MDX of a `` include as it applies to a framework running + * on a runtime, so a runtime's page can swap in framework snippets client-side + * (see ``). + * + * Only the combinations from `generateStaticParams` are built; there is no runtime rendering. + */ + +export const dynamic = 'force-static'; +export const dynamicParams = false; + +export function generateStaticParams() { + return Object.entries(RUNTIMES).flatMap(([runtime, {frameworks, includePaths}]) => + frameworks.flatMap(({key: framework}) => + includePaths.map(includePath => ({ + platform: 'javascript', + runtime, + framework, + includePath: includePath.split('/'), + })) + ) + ); +} + +type SlugFile = Awaited>; + +async function tryGetFile(slug: string): Promise { + try { + return await getFileBySlugWithCache(slug); + } catch { + return undefined; + } +} + +/** + * Resolves an include for a framework on a runtime: + * 1. `..`, for snippets specific to both + * 2. On Node.js, the framework guide's content, which falls back to Node.js + * Elsewhere, only a `.` snippet, to not pull in Node.js content + * 3. The runtime guide's own content + */ +async function resolveForFramework( + includePath: string, + platform: string, + runtime: string, + framework: string +): Promise { + const base = `platform-includes/${includePath}/${platform}`; + + const doc = await tryGetFile(`${base}.${runtime}.${framework}`); + if (doc) { + return doc; + } + + if (runtime === 'node') { + return resolvePlatformContent({ + includePath, + path: ['platforms', platform, 'guides', framework], + }); + } + + return ( + (await tryGetFile(`${base}.${framework}`)) ?? + resolvePlatformContent({ + includePath, + path: ['platforms', platform, 'guides', runtime], + }) + ); +} + +const INCLUDE_RE = / Promise, + payload: PlatformContentPayload +) { + for (const [, rawName] of source.matchAll(INCLUDE_RE)) { + const name = rawName.replace(/\.mdx$/, ''); + if (name in payload.includes) { + continue; + } + // Missing includes render nothing, same as . + const doc = await tryGetFile(`includes/${name}`); + if (doc) { + payload.includes[name] = doc.mdxSource; + await collectNested(doc.matter.content, resolve, payload); + } + } + + for (const [, includePath] of source.matchAll(PLATFORM_CONTENT_RE)) { + if (includePath in payload.platformContents) { + continue; + } + const doc = await resolve(includePath); + payload.platformContents[includePath] = doc?.mdxSource ?? null; + if (doc) { + await collectNested(doc.matter.content, resolve, payload); + } + } +} + +async function buildPayload( + includePath: string, + resolve: (includePath: string) => Promise +): Promise { + const doc = await resolve(includePath); + const payload: PlatformContentPayload = { + changed: false, + code: doc?.mdxSource ?? null, + includes: {}, + platformContents: {}, + }; + if (doc) { + await collectNested(doc.matter.content, resolve, payload); + } + return payload; +} + +export async function GET( + _request: Request, + { + params, + }: { + params: Promise<{ + framework: string; + includePath: string[]; + platform: string; + runtime: string; + }>; + } +) { + const {platform, runtime, framework, includePath} = await params; + const resolve = (path: string) => + resolveForFramework(path, platform, runtime, framework); + + const resolveForRuntime = (path: string) => + resolvePlatformContent({ + includePath: path, + path: ['platforms', platform, 'guides', runtime], + }); + + const [payload, runtimePayload] = await Promise.all([ + buildPayload(includePath.join('/'), resolve), + buildPayload(includePath.join('/'), resolveForRuntime), + ]); + payload.changed = + payload.code !== runtimePayload.code || + JSON.stringify(payload.platformContents) !== + JSON.stringify(runtimePayload.platformContents); + + return Response.json(payload); +} diff --git a/app/platform-redirect/page.tsx b/app/platform-redirect/page.tsx index 8ae7d7f0d7a64..858edc12f0828 100644 --- a/app/platform-redirect/page.tsx +++ b/app/platform-redirect/page.tsx @@ -7,7 +7,7 @@ import {SmartLink} from 'sentry-docs/components/smartLink'; import {extractPlatforms, getDocsRootNode, nodeForPath} from 'sentry-docs/docTree'; import {setServerContext} from 'sentry-docs/serverContext'; -import {platformUrlFor, sanitizeNext} from './utils'; +import {landingPageFallbackGuide, platformUrlFor, sanitizeNext} from './utils'; export const metadata: Metadata = { robots: 'noindex', @@ -142,9 +142,11 @@ export default async function Page(props: { const requestedPlatform = Array.isArray(platform) ? platform[0] : platform; if (requestedPlatform) { - const validPlatform = platformOrGuideList.find( - p => p.key === requestedPlatform?.toLowerCase() - ); + const requestedKey = requestedPlatform.toLowerCase(); + const fallbackKey = landingPageFallbackGuide(rootNode, requestedKey); + const validPlatform = + platformOrGuideList.find(p => p.key === requestedKey) ?? + platformOrGuideList.find(p => p.key === fallbackKey); if (validPlatform) { return redirect(platformUrlFor(validPlatform.url, sanitized)); } diff --git a/app/platform-redirect/utils.spec.ts b/app/platform-redirect/utils.spec.ts index 3b14c5b7f79df..a55e6f20f5e43 100644 --- a/app/platform-redirect/utils.spec.ts +++ b/app/platform-redirect/utils.spec.ts @@ -1,11 +1,54 @@ +import type {DocNode} from 'sentry-docs/docTree'; import {describe, expect, it} from 'vitest'; -import {platformUrlFor, sanitizeNext} from './utils'; +import {landingPageFallbackGuide, platformUrlFor, sanitizeNext} from './utils'; const path = (next: string) => sanitizeNext(next).pathname; const hash = (next: string) => sanitizeNext(next).hash; const REJECTED = {pathname: '', hash: ''}; +describe('landingPageFallbackGuide', () => { + const node = ( + slug: string, + frontmatter: Record = {}, + children: DocNode[] = [] + ) => ({slug, frontmatter, children, missing: false, path: slug}) as unknown as DocNode; + + const rootNode = node('', {}, [ + node('platforms', {}, [ + node('javascript', {}, [ + node('guides', {}, [ + node('express', { + inheritCommonContent: false, + fallbackGuide: 'javascript.node', + }), + node('nestjs', {fallbackGuide: 'javascript.node'}), + node('cordova', {inheritCommonContent: false}), + ]), + ]), + ]), + ]); + + it('returns the fallback guide of a landing page guide', () => { + expect(landingPageFallbackGuide(rootNode, 'javascript.express')).toBe( + 'javascript.node' + ); + }); + + it('returns nothing for a guide that inherits the common content', () => { + expect(landingPageFallbackGuide(rootNode, 'javascript.nestjs')).toBeUndefined(); + }); + + it('returns nothing for a landing page guide without a fallback guide', () => { + expect(landingPageFallbackGuide(rootNode, 'javascript.cordova')).toBeUndefined(); + }); + + it('returns nothing for a platform or an unknown guide', () => { + expect(landingPageFallbackGuide(rootNode, 'javascript')).toBeUndefined(); + expect(landingPageFallbackGuide(rootNode, 'javascript.unknown')).toBeUndefined(); + }); +}); + describe('sanitizeNext', () => { it('should return an empty string for external URLs', () => { expect(sanitizeNext('http://example.com')).toEqual(REJECTED); diff --git a/app/platform-redirect/utils.ts b/app/platform-redirect/utils.ts index e646c519afcab..816318c19a356 100644 --- a/app/platform-redirect/utils.ts +++ b/app/platform-redirect/utils.ts @@ -1,3 +1,25 @@ +import {DocNode, nodeForPath} from 'sentry-docs/docTree'; + +/** + * Returns the `fallbackGuide` key (e.g. `javascript.node`) of a guide that is a single + * landing page (`inheritCommonContent: false`), such as `javascript.express`. The pages + * that such a guide does not have are in its fallback guide. + */ +export function landingPageFallbackGuide( + rootNode: DocNode, + key: string +): string | undefined { + const [platform, guide] = key.split('.'); + if (!guide) { + return undefined; + } + const guideNode = nodeForPath(rootNode, ['platforms', platform, 'guides', guide]); + if (guideNode?.frontmatter.inheritCommonContent !== false) { + return undefined; + } + return guideNode.frontmatter.fallbackGuide; +} + // Parse base only — never part of the return value, and only compared against itself const PARSE_BASE = 'https://sanitize.invalid'; diff --git a/docs/contributing/pages/components.mdx b/docs/contributing/pages/components.mdx index 130549944885f..06fe0522ac58f 100644 --- a/docs/contributing/pages/components.mdx +++ b/docs/contributing/pages/components.mdx @@ -360,6 +360,7 @@ Attributes: - `includePath` (string) - the subfolder within `/includes` to map to - `platform` (string) - defaults to the `platform` value from the page context +- `switchable` (boolean) - lets a surrounding [`FrameworkSelector`](#frameworkselector) swap the include for the selected framework's version Some notes: @@ -371,6 +372,28 @@ Some notes: Note: This currently causes issues with tableOfContents generation, so its recommended to disable the TOC when using it. +## FrameworkSelector + +Adds a framework dropdown to a runtime's quick start, such as the Node.js, Bun, and Deno guides. Selecting a framework that doesn't have its own SDK (Express, Fastify, Koa, Hapi) swaps every `` inside the selector for that framework's version. Selecting a framework that has its own guide (Next.js, Nuxt, and others) opens that guide. The selection is kept in the `?framework=` query parameter. + +```markdown {tabTitle:Example} + + + + + +``` + +The runtimes, their frameworks, and their switchable include paths are configured in `src/components/frameworkSelector/frameworks.ts`. + +The framework snippets are only shown after a reader selects the framework, so they're easy to miss when you change content: + +- `platform-includes//javascript..mdx` (for example, `javascript.express.mdx`) shows up on the Node.js, Bun, **and** Deno quick starts. Put snippets that only apply to one runtime in `javascript...mdx`, for example `javascript.node.express.mdx`. +- On Node.js, a framework without its own file uses the Node.js content. On Bun and Deno, it uses the runtime's own content. +- Every `switchable` include path has to be listed in the runtime's `includePaths` in `frameworks.ts`. If it isn't, the framework version isn't built and the page quietly keeps showing the runtime's content. `frameworks.spec.ts` fails when the two get out of sync. +- The framework snippets aren't part of the runtime page's [Markdown export](/contributing/pages/llm-support/). Keep framework-specific guidance that agents need, such as error handling options, on the framework's own guide page too, for example `docs/platforms/javascript/guides/express/index.mdx`. +- To review a change, open the quick start with the framework selected, for example `/platforms/javascript/guides/node/?framework=express`, for each runtime the file applies to. + ## PlatformIdentifier Render terms in the correct case within the body text of a page (not in code samples) based on the platform case_style setting: diff --git a/docs/platforms/javascript/common/configuration/integrations/fastify.mdx b/docs/platforms/javascript/common/configuration/integrations/fastify.mdx index f4ba56683c2d8..cf140e80b1134 100644 --- a/docs/platforms/javascript/common/configuration/integrations/fastify.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/fastify.mdx @@ -19,6 +19,47 @@ Sentry.init({ }); ``` +## Options + +### `shouldHandleError` + +A function that decides whether an error is captured. By default, errors with a 5xx status code (and errors with a 2xx status code or lower) are captured, and errors with a 3xx or 4xx status code aren't. + +```typescript +declare function shouldHandleError( + error: Error, + request: FastifyRequest, + reply: FastifyReply +): boolean; +``` + +```javascript +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [ + Sentry.fastifyIntegration({ + shouldHandleError(error, request, reply) { + return reply.statusCode >= 500; + }, + }), + ], +}); +``` + +If you use TypeScript, cast the request and reply to get full type safety: + +```typescript +import type { FastifyRequest, FastifyReply } from "fastify"; + +Sentry.fastifyIntegration({ + shouldHandleError(error, minimalRequest, minimalReply) { + const request = minimalRequest as FastifyRequest; + const reply = minimalReply as FastifyReply; + return reply.statusCode >= 500; + }, +}); +``` + ## Supported Versions - `fastify`: `^3.21.0 || ^4.0.0` diff --git a/docs/platforms/javascript/common/data-management/sensitive-data/index.mdx b/docs/platforms/javascript/common/data-management/sensitive-data/index.mdx index b5c70dd09409f..dae753d55eacb 100644 --- a/docs/platforms/javascript/common/data-management/sensitive-data/index.mdx +++ b/docs/platforms/javascript/common/data-management/sensitive-data/index.mdx @@ -1,7 +1,7 @@ --- title: "Scrubbing Sensitive Data" description: "Learn about filtering or scrubbing sensitive data within the Sentry JavaScript SDK, so that data is not sent with the event. You can also configure server-side scrubbing to ensure the data is not stored." -customCanonicalTag: "/platforms/javascript/guides/koa/data-management/sensitive-data/" +customCanonicalTag: "/platforms/javascript/guides/node/data-management/sensitive-data/" sidebar_order: 100 keywords: - pii diff --git a/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx b/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx index 1595ac6fcb59a..06aa5f958ffef 100644 --- a/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx +++ b/docs/platforms/javascript/common/sourcemaps/uploading/rollup.mdx @@ -2,7 +2,7 @@ title: Rollup description: "Upload your source maps with the Sentry Rollup Plugin." sidebar_order: 5 -customCanonicalTag: "/platforms/javascript/guides/koa/sourcemaps/uploading/rollup/" +customCanonicalTag: "/platforms/javascript/guides/node/sourcemaps/uploading/rollup/" --- diff --git a/docs/platforms/javascript/guides/bun/index.mdx b/docs/platforms/javascript/guides/bun/index.mdx index 953542c895b9e..4f18bafd063a0 100644 --- a/docs/platforms/javascript/guides/bun/index.mdx +++ b/docs/platforms/javascript/guides/bun/index.mdx @@ -7,6 +7,8 @@ categories: - server-only --- + + @@ -108,13 +110,7 @@ For Bun, `bunR Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. -Add an intentional error to your main application file: - -```javascript -setTimeout(() => { - throw new Error("Sentry Test Error"); -}, 0); -``` + ### View Captured Data in Sentry @@ -137,3 +133,5 @@ At this point, you should have integrated Sentry into your Bun application. Here
+ + diff --git a/docs/platforms/javascript/guides/cloudflare/index.mdx b/docs/platforms/javascript/guides/cloudflare/index.mdx index 51632e610ec6b..cd9bfc16f52ed 100644 --- a/docs/platforms/javascript/guides/cloudflare/index.mdx +++ b/docs/platforms/javascript/guides/cloudflare/index.mdx @@ -12,16 +12,9 @@ categories: This guide covers Cloudflare Workers. If you're deploying a Cloudflare Pages application, see Cloudflare Pages instead, which is set up with middleware rather than a wrapper. -If you're using any of the listed frameworks, follow their specific setup instructions: +If you're using a framework, select it to open its setup instructions: -- **[Astro](/platforms/javascript/guides/astro/cloudflare/)** -- **[Hono](/platforms/javascript/guides/hono/cloudflare/)** (with @sentry/hono) -- **[Hydrogen](/platforms/javascript/guides/react-router/hydrogen/)** -- **[Next.js](/platforms/javascript/guides/nextjs/cloudflare/)** -- **[Nuxt](/platforms/javascript/guides/nuxt/cloudflare/)** -- **[Remix](/platforms/javascript/guides/remix/cloudflare/)** -- **[SvelteKit](/platforms/javascript/guides/sveltekit/cloudflare/)** -- **[TanStack Start](/platforms/javascript/guides/tanstackstart-react/cloudflare/)** + The Cloudflare Workers runtime has some platform-specific limitations that @@ -178,7 +171,7 @@ At this point, you should have integrated Sentry into your Cloudflare Worker. He -- Using a framework? Follow its setup instructions, linked at the top of this page +- Using a framework? Select it in the [framework selector](#framework-selector) at the top of this page - Find various support topics in troubleshooting - [Get support](https://www.sentry.help/en/) diff --git a/docs/platforms/javascript/guides/cordova/data-management/sensitive-data/index.mdx b/docs/platforms/javascript/guides/cordova/data-management/sensitive-data/index.mdx index 5045b48f990e1..5a280d3a5710c 100644 --- a/docs/platforms/javascript/guides/cordova/data-management/sensitive-data/index.mdx +++ b/docs/platforms/javascript/guides/cordova/data-management/sensitive-data/index.mdx @@ -1,7 +1,7 @@ --- title: "Scrubbing Sensitive Data" description: "Learn about filtering or scrubbing sensitive data within the Sentry JavaScript SDK, so that data is not sent with the event. You can also configure server-side scrubbing to ensure the data is not stored." -customCanonicalTag: "/platforms/javascript/guides/koa/data-management/sensitive-data/" +customCanonicalTag: "/platforms/javascript/guides/node/data-management/sensitive-data/" sidebar_order: 100 keywords: - pii diff --git a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx index 066d1b6ba87f4..c2f8ffb6e6b6d 100644 --- a/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx +++ b/docs/platforms/javascript/guides/cordova/sourcemaps/uploading/rollup.mdx @@ -2,7 +2,7 @@ title: Rollup description: "Upload your source maps with the Sentry Rollup Plugin." sidebar_order: 5 -customCanonicalTag: "/platforms/javascript/guides/koa/sourcemaps/uploading/rollup/" +customCanonicalTag: "/platforms/javascript/guides/node/sourcemaps/uploading/rollup/" --- diff --git a/docs/platforms/javascript/guides/deno/index.mdx b/docs/platforms/javascript/guides/deno/index.mdx index 41329f9bb689a..87e356d892b3f 100644 --- a/docs/platforms/javascript/guides/deno/index.mdx +++ b/docs/platforms/javascript/guides/deno/index.mdx @@ -7,6 +7,8 @@ categories: - server-only --- + + This SDK is currently in **beta**. Beta features are still in progress and may have bugs. Please reach out on [GitHub](https://github.com/getsentry/sentry-javascript/issues/new/choose) if you have any feedback or concerns @@ -122,13 +124,7 @@ For Deno, `de Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. -Add an intentional error to your application: - -```javascript -setTimeout(() => { - throw new Error("Sentry Test Error"); -}, 0); -``` + ### View Captured Data in Sentry @@ -151,3 +147,5 @@ At this point, you should have integrated Sentry into your Deno application. Her + + diff --git a/docs/platforms/javascript/guides/express/configuration/integrations/contextlines.mdx b/docs/platforms/javascript/guides/express/configuration/integrations/contextlines.mdx deleted file mode 100644 index 7b3af58727490..0000000000000 --- a/docs/platforms/javascript/guides/express/configuration/integrations/contextlines.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: ContextLines -description: "Adds source code to your stack frames. (default)" ---- - -_Import name: `Sentry.contextLinesIntegration`_ - -This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations). - -This integration adds source code to your stack frames. It ensures that you can see the code that caused the error directly in the Sentry UI. - - - -## Options - -### `frameContextLines` - -_Type: `number`_ - -The number of lines to collect around each stack frame's line number. Defaults to 7. diff --git a/docs/platforms/javascript/guides/express/index.mdx b/docs/platforms/javascript/guides/express/index.mdx index 059dcbfb2b745..222756abf18f0 100644 --- a/docs/platforms/javascript/guides/express/index.mdx +++ b/docs/platforms/javascript/guides/express/index.mdx @@ -1,11 +1,51 @@ --- title: Express -description: "Learn how to manually set up Sentry in your Express app and capture your first events." +description: "Learn how to set up Sentry in your Express app on Node.js, Bun, or Deno." sdk: sentry.javascript.node fallbackGuide: javascript.node +inheritCommonContent: false categories: - server - server-only --- - +[Express](https://expressjs.com/) doesn't need its own Sentry SDK. Set up Sentry for the runtime your app runs on, and the SDK instruments Express automatically: `expressIntegration` captures errors from your routes and middleware, and creates spans for incoming requests when tracing is enabled. + +## Set Up Sentry for Your Runtime + +- +- +- + +## Customize Error Capturing + +Errors with a 3xx or 4xx status code are skipped, since they're usually expected redirects or client errors. To change which errors are captured, pass a `shouldHandleError` callback to `expressIntegration()`: + +```javascript +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [ + Sentry.expressIntegration({ + shouldHandleError(error) { + const status = Number(error.status ?? error.statusCode ?? 500); + // Capture 401/403 in addition to the default 5xx errors + return status === 401 || status === 403 || status >= 500; + }, + }), + ], +}); +``` + +If you capture errors yourself in your own error-handling middleware, set `shouldHandleError: false` to avoid duplicate events. diff --git a/docs/platforms/javascript/guides/express/index__v7.x.mdx b/docs/platforms/javascript/guides/express/index__v7.x.mdx deleted file mode 100644 index 76ef56f70dc76..0000000000000 --- a/docs/platforms/javascript/guides/express/index__v7.x.mdx +++ /dev/null @@ -1,14 +0,0 @@ ---- -title: Express -description: "Learn how to instrument the Sentry Express SDK." -sdk: sentry.javascript.node -fallbackGuide: javascript.node -categories: - - server ---- - - - -This guide explains how to set up Sentry in your Express application. - - diff --git a/docs/platforms/javascript/guides/express/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/javascript/guides/express/tracing/instrumentation/automatic-instrumentation.mdx deleted file mode 100644 index c7b42fb602ab9..0000000000000 --- a/docs/platforms/javascript/guides/express/tracing/instrumentation/automatic-instrumentation.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Automatic Instrumentation -description: "Learn what transactions are captured after tracing is enabled in the Sentry Express SDK." ---- - - diff --git a/docs/platforms/javascript/guides/fastify/features/error-handler.mdx b/docs/platforms/javascript/guides/fastify/features/error-handler.mdx deleted file mode 100644 index 43e3c0f8cf935..0000000000000 --- a/docs/platforms/javascript/guides/fastify/features/error-handler.mdx +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: Fastify Error Handler -description: "Learn how Sentry's Fastify integration captures errors and how to configure it." ---- - -The `fastifyIntegration` captures errors in your Fastify application and sends them to Sentry. It's enabled by default, so you only need to add it to your `Sentry.init` call to configure it. - -By default, errors with status codes 5xx and above, as well as errors with status codes 2xx and below, are captured. Errors with 3xx and 4xx status codes aren't sent to Sentry. - -## Configuration - -To control which errors are captured, pass `shouldHandleError` to `Sentry.fastifyIntegration`: - -```javascript -import * as Sentry from "@sentry/node"; - -Sentry.init({ - dsn: "your-dsn", - integrations: [ - Sentry.fastifyIntegration({ - shouldHandleError(error, request, reply) { - return reply.statusCode >= 500; - }, - }), - ], -}); -``` - -## Options - -`Sentry.fastifyIntegration` accepts the following options: - -- `shouldHandleError` - -A function that determines whether an error should be captured. - -```typescript -declare function shouldHandleError( - error: Error, - request: FastifyRequest, - reply: FastifyReply -): boolean; -``` - -If using TypeScript, you can cast the request and reply to get full type safety. - -```typescript -import type { FastifyRequest, FastifyReply } from "fastify"; - -Sentry.fastifyIntegration({ - shouldHandleError(error, minimalRequest, minimalReply) { - const request = minimalRequest as FastifyRequest; - const reply = minimalReply as FastifyReply; - return reply.statusCode >= 500; - }, -}); -``` diff --git a/docs/platforms/javascript/guides/fastify/features/index.mdx b/docs/platforms/javascript/guides/fastify/features/index.mdx deleted file mode 100644 index b7fcfb338bb49..0000000000000 --- a/docs/platforms/javascript/guides/fastify/features/index.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -title: Fastify Features -description: "Learn how Sentry's Node SDK exposes features for first class integration with Fastify." -excerpt: "" ---- - -The Sentry Node SDK offers Fastify-specific features for first class integration with the framework. - - diff --git a/docs/platforms/javascript/guides/fastify/index.mdx b/docs/platforms/javascript/guides/fastify/index.mdx index 8635ad6a08605..2e8735557adb6 100644 --- a/docs/platforms/javascript/guides/fastify/index.mdx +++ b/docs/platforms/javascript/guides/fastify/index.mdx @@ -1,13 +1,34 @@ --- title: Fastify -description: "Learn how to manually set up Sentry in your Fastify app and capture your first events." +description: "Learn how to set up Sentry in your Fastify app on Node.js, Bun, or Deno." sdk: sentry.javascript.node fallbackGuide: javascript.node +inheritCommonContent: false categories: - server - server-only --- - +[Fastify](https://fastify.dev/) doesn't need its own Sentry SDK. Set up Sentry for the runtime your app runs on, and the SDK instruments Fastify automatically: `fastifyIntegration` captures errors from your routes and hooks, and creates spans for incoming requests when tracing is enabled. - +## Set Up Sentry for Your Runtime + +- +- +- + +## Customize Error Capturing + +Errors with a 3xx or 4xx status code are skipped. To change which errors are captured, pass a `shouldHandleError` callback to `fastifyIntegration()`. See the [Fastify integration](/platforms/javascript/guides/node/configuration/integrations/fastify/#shouldhandleerror) for all options. diff --git a/docs/platforms/javascript/guides/fastify/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/javascript/guides/fastify/tracing/instrumentation/automatic-instrumentation.mdx deleted file mode 100644 index abc98b5bca4fd..0000000000000 --- a/docs/platforms/javascript/guides/fastify/tracing/instrumentation/automatic-instrumentation.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Automatic Instrumentation -description: "Learn what transactions are captured after tracing is enabled in the Sentry Fastify SDK." ---- - - diff --git a/docs/platforms/javascript/guides/hapi/configuration/integrations/contextlines.mdx b/docs/platforms/javascript/guides/hapi/configuration/integrations/contextlines.mdx deleted file mode 100644 index 7b3af58727490..0000000000000 --- a/docs/platforms/javascript/guides/hapi/configuration/integrations/contextlines.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: ContextLines -description: "Adds source code to your stack frames. (default)" ---- - -_Import name: `Sentry.contextLinesIntegration`_ - -This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations). - -This integration adds source code to your stack frames. It ensures that you can see the code that caused the error directly in the Sentry UI. - - - -## Options - -### `frameContextLines` - -_Type: `number`_ - -The number of lines to collect around each stack frame's line number. Defaults to 7. diff --git a/docs/platforms/javascript/guides/hapi/index.mdx b/docs/platforms/javascript/guides/hapi/index.mdx index 9c3a092676880..147b858df193c 100644 --- a/docs/platforms/javascript/guides/hapi/index.mdx +++ b/docs/platforms/javascript/guides/hapi/index.mdx @@ -1,11 +1,32 @@ --- title: Hapi -description: "Learn how to manually set up Sentry in your Hapi app and capture your first events." +description: "Learn how to set up Sentry in your Hapi app on Node.js, Bun, or Deno." sdk: sentry.javascript.node fallbackGuide: javascript.node +inheritCommonContent: false categories: - server - server-only --- - +[Hapi](https://hapi.dev/) doesn't need its own Sentry SDK. Set up Sentry for the runtime your app runs on, and the SDK instruments Hapi automatically: `hapiIntegration` registers an error handler when your server starts, and creates spans for incoming requests when tracing is enabled. + +## Set Up Sentry for Your Runtime + +- +- +- + +To configure the integration, see the [Hapi integration](/platforms/javascript/guides/node/configuration/integrations/hapi/). diff --git a/docs/platforms/javascript/guides/hapi/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/javascript/guides/hapi/tracing/instrumentation/automatic-instrumentation.mdx deleted file mode 100644 index e749b53b702b1..0000000000000 --- a/docs/platforms/javascript/guides/hapi/tracing/instrumentation/automatic-instrumentation.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Automatic Instrumentation -description: "Learn what transactions are captured after tracing is enabled in the Sentry Hapi SDK." ---- - - diff --git a/docs/platforms/javascript/guides/koa/configuration/integrations/contextlines.mdx b/docs/platforms/javascript/guides/koa/configuration/integrations/contextlines.mdx deleted file mode 100644 index 7b3af58727490..0000000000000 --- a/docs/platforms/javascript/guides/koa/configuration/integrations/contextlines.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: ContextLines -description: "Adds source code to your stack frames. (default)" ---- - -_Import name: `Sentry.contextLinesIntegration`_ - -This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations). - -This integration adds source code to your stack frames. It ensures that you can see the code that caused the error directly in the Sentry UI. - - - -## Options - -### `frameContextLines` - -_Type: `number`_ - -The number of lines to collect around each stack frame's line number. Defaults to 7. diff --git a/docs/platforms/javascript/guides/koa/index.mdx b/docs/platforms/javascript/guides/koa/index.mdx index 61f9b6d2450cb..33d7cff36ebad 100644 --- a/docs/platforms/javascript/guides/koa/index.mdx +++ b/docs/platforms/javascript/guides/koa/index.mdx @@ -1,11 +1,32 @@ --- title: Koa -description: "Learn how to manually set up Sentry in your Koa app and capture your first events." +description: "Learn how to set up Sentry in your Koa app on Node.js, Bun, or Deno." sdk: sentry.javascript.node fallbackGuide: javascript.node +inheritCommonContent: false categories: - server - server-only --- - +[Koa](https://koajs.com/) doesn't need its own Sentry SDK. Set up Sentry for the runtime your app runs on, and the SDK instruments Koa automatically: `koaIntegration` registers an error handler when your app starts, and creates spans for incoming requests and middleware when tracing is enabled. + +## Set Up Sentry for Your Runtime + +- +- +- + +To configure the integration, see the [Koa integration](/platforms/javascript/guides/node/configuration/integrations/koa/). diff --git a/docs/platforms/javascript/guides/koa/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/javascript/guides/koa/tracing/instrumentation/automatic-instrumentation.mdx deleted file mode 100644 index 4ad82b17e57af..0000000000000 --- a/docs/platforms/javascript/guides/koa/tracing/instrumentation/automatic-instrumentation.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: Automatic Instrumentation -description: "Learn what transactions are captured after tracing is enabled in the Sentry Koa SDK." ---- - - diff --git a/docs/platforms/javascript/guides/node/index.mdx b/docs/platforms/javascript/guides/node/index.mdx index 989e9c7935797..0955371bf4511 100644 --- a/docs/platforms/javascript/guides/node/index.mdx +++ b/docs/platforms/javascript/guides/node/index.mdx @@ -7,8 +7,12 @@ categories: - server-only --- + + + + diff --git a/docs/product/logs/getting-started/index.mdx b/docs/product/logs/getting-started/index.mdx index abe253815930a..22a2b112a8ae4 100644 --- a/docs/product/logs/getting-started/index.mdx +++ b/docs/product/logs/getting-started/index.mdx @@ -68,13 +68,13 @@ To set up Sentry Logs, use the links below for supported SDKs. After it's been s - - - - - - - - - `shouldHandleError` option. +`fastifyIntegration` captures errors from your routes and hooks automatically, so you don't need to register a Sentry error handler. Errors with a 3xx or 4xx status code are skipped. To change which errors are captured, use the `shouldHandleError` option. diff --git a/platform-includes/getting-started-install/javascript.koa.mdx b/platform-includes/getting-started-install/javascript.koa.mdx deleted file mode 100644 index d0c4e2e161466..0000000000000 --- a/platform-includes/getting-started-install/javascript.koa.mdx +++ /dev/null @@ -1,31 +0,0 @@ - - -```bash {tabTitle:npm} -npm install @sentry/node -``` - -```bash {tabTitle:yarn} -yarn add @sentry/node -``` - -```bash {tabTitle:pnpm} -pnpm add @sentry/node -``` - - - - - -```bash {tabTitle:npm} -npm install @sentry/node @sentry/profiling-node --save -``` - -```bash {tabTitle:yarn} -yarn add @sentry/node @sentry/profiling-node -``` - -```bash {tabTitle:pnpm} -pnpm add @sentry/node @sentry/profiling-node -``` - - diff --git a/platform-includes/getting-started-node/javascript.mdx b/platform-includes/getting-started-node/javascript.mdx index 6494a33f2dd07..339f211dd3356 100644 --- a/platform-includes/getting-started-node/javascript.mdx +++ b/platform-includes/getting-started-node/javascript.mdx @@ -1,4 +1,4 @@ - + @@ -6,7 +6,7 @@ Run the command for your preferred package manager to add the Sentry SDK to your application: - + ## Configure @@ -23,7 +23,7 @@ The snippet also turns on: - Tracing: via `tracesSampleRate` - Profiling: via `profileSessionSampleRate` and `nodeProfilingIntegration()` - + Then, use the [--import](https://nodejs.org/api/cli.html#--importmodule) command line option and point it to your `instrument.(js|mjs)` file to load the module before the application starts: @@ -37,15 +37,15 @@ node --import ./instrument.mjs app.mjs If you are using a bundler like vite, you can also follow the bundler setup docs instead. - + ### Add Readable Stack Traces With Source Maps - + ### Control the Data You Send to Sentry - + ## Send Logs @@ -66,7 +66,7 @@ On Node.js, ` Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project. - + ### View Captured Data in Sentry diff --git a/platform-includes/getting-started-verify-issues-tracing/javascript.bun.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.bun.mdx new file mode 100644 index 0000000000000..3f64ed54344fb --- /dev/null +++ b/platform-includes/getting-started-verify-issues-tracing/javascript.bun.mdx @@ -0,0 +1,7 @@ +Add an intentional error to your main application file: + +```javascript +setTimeout(() => { + throw new Error("Sentry Test Error"); +}, 0); +``` diff --git a/platform-includes/getting-started-verify-issues-tracing/javascript.deno.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.deno.mdx new file mode 100644 index 0000000000000..d65d054a8eb1d --- /dev/null +++ b/platform-includes/getting-started-verify-issues-tracing/javascript.deno.mdx @@ -0,0 +1,7 @@ +Add an intentional error to your application: + +```javascript +setTimeout(() => { + throw new Error("Sentry Test Error"); +}, 0); +``` diff --git a/platform-includes/getting-started-verify/javascript.express.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.express.mdx similarity index 100% rename from platform-includes/getting-started-verify/javascript.express.mdx rename to platform-includes/getting-started-verify-issues-tracing/javascript.express.mdx diff --git a/platform-includes/getting-started-verify/javascript.fastify.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.fastify.mdx similarity index 100% rename from platform-includes/getting-started-verify/javascript.fastify.mdx rename to platform-includes/getting-started-verify-issues-tracing/javascript.fastify.mdx diff --git a/platform-includes/getting-started-verify/javascript.hapi.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.hapi.mdx similarity index 100% rename from platform-includes/getting-started-verify/javascript.hapi.mdx rename to platform-includes/getting-started-verify-issues-tracing/javascript.hapi.mdx diff --git a/platform-includes/getting-started-verify/javascript.koa.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.koa.mdx similarity index 100% rename from platform-includes/getting-started-verify/javascript.koa.mdx rename to platform-includes/getting-started-verify-issues-tracing/javascript.koa.mdx diff --git a/platform-includes/getting-started-verify-issues-tracing/javascript.mdx b/platform-includes/getting-started-verify-issues-tracing/javascript.mdx new file mode 100644 index 0000000000000..736f01a457988 --- /dev/null +++ b/platform-includes/getting-started-verify-issues-tracing/javascript.mdx @@ -0,0 +1,11 @@ +Add an intentional error to your main application file that Sentry will capture: + +```javascript +setTimeout(() => { + try { + foo(); + } catch (e) { + Sentry.captureException(e); + } +}, 99); +``` diff --git a/platform-includes/getting-started-verify/javascript.node.mdx b/platform-includes/getting-started-verify/javascript.node.mdx index 736f01a457988..11d461b54dfc7 100644 --- a/platform-includes/getting-started-verify/javascript.node.mdx +++ b/platform-includes/getting-started-verify/javascript.node.mdx @@ -1,11 +1 @@ -Add an intentional error to your main application file that Sentry will capture: - -```javascript -setTimeout(() => { - try { - foo(); - } catch (e) { - Sentry.captureException(e); - } -}, 99); -``` + diff --git a/redirects.js b/redirects.js index d79bbd296af08..597821d1a0681 100644 --- a/redirects.js +++ b/redirects.js @@ -1095,17 +1095,17 @@ const userDocsRedirects = [ { source: '/platforms/javascript/guides/express/install/lightweight/', destination: - '/platforms/javascript/guides/express/configuration/integrations/opentelemetry/', + '/platforms/javascript/guides/node/configuration/integrations/opentelemetry/', }, { source: '/platforms/javascript/guides/fastify/install/lightweight/', destination: - '/platforms/javascript/guides/fastify/configuration/integrations/opentelemetry/', + '/platforms/javascript/guides/node/configuration/integrations/opentelemetry/', }, { source: '/platforms/javascript/guides/hapi/install/lightweight/', destination: - '/platforms/javascript/guides/hapi/configuration/integrations/opentelemetry/', + '/platforms/javascript/guides/node/configuration/integrations/opentelemetry/', }, { source: '/platforms/javascript/guides/hono/install/lightweight/', @@ -1115,7 +1115,7 @@ const userDocsRedirects = [ { source: '/platforms/javascript/guides/koa/install/lightweight/', destination: - '/platforms/javascript/guides/koa/configuration/integrations/opentelemetry/', + '/platforms/javascript/guides/node/configuration/integrations/opentelemetry/', }, { source: @@ -1127,6 +1127,20 @@ const userDocsRedirects = [ '/platforms/javascript/guides/:guide(node|express|fastify|hapi|hono|koa|nestjs)/install/commonjs/', destination: '/platforms/javascript/guides/:guide/', }, + // Express, Fastify, Hapi and Koa are single landing pages, their subpages moved to Node.js. + { + source: '/platforms/javascript/guides/fastify/features/:path*', + destination: '/platforms/javascript/guides/node/configuration/integrations/fastify/', + }, + { + source: + '/platforms/javascript/guides/:guide(express|fastify|hapi|koa)__v:version/:path*', + destination: '/platforms/javascript/guides/node/', + }, + { + source: '/platforms/javascript/guides/:guide(express|fastify|hapi|koa)/:path+', + destination: '/platforms/javascript/guides/node/:path+/', + }, { source: '/platforms/javascript/guides/nestjs/install/esm-without-import/', destination: '/platforms/javascript/guides/nestjs/', diff --git a/src/components/frameworkSelector/frameworks.spec.ts b/src/components/frameworkSelector/frameworks.spec.ts new file mode 100644 index 0000000000000..41c74fea53736 --- /dev/null +++ b/src/components/frameworkSelector/frameworks.spec.ts @@ -0,0 +1,88 @@ +import {existsSync, readdirSync, readFileSync} from 'node:fs'; +import {join} from 'node:path'; + +import matter from 'gray-matter'; +import {describe, expect, it} from 'vitest'; + +import {getRuntimeLinks} from '../runtimeLinks'; +import {RUNTIMES} from './frameworks'; + +const GUIDES_DIR = 'docs/platforms/javascript/guides'; + +const pageExists = (url: string) => { + const file = join('docs', url.replace(/\/$/, '')); + return existsSync(`${file}.mdx`) || existsSync(join(file, 'index.mdx')); +}; + +/** The index page of a guide and its child pages, with their frontmatter. */ +const guidePages = (guide: string) => { + const dir = join(GUIDES_DIR, guide); + const path = `platforms/javascript/guides/${guide}`; + const frontmatter = (file: string) => + matter(readFileSync(join(dir, file), 'utf8')).data; + const children = readdirSync(dir, {withFileTypes: true}).flatMap(entry => { + const file = entry.isDirectory() ? join(entry.name, 'index.mdx') : entry.name; + if (!file.endsWith('.mdx') || file === 'index.mdx' || !existsSync(join(dir, file))) { + return []; + } + const name = entry.isDirectory() ? entry.name : entry.name.replace(/\.mdx$/, ''); + return [{path: `${path}/${name}`, frontmatter: frontmatter(file)}]; + }); + return {path, frontmatter: frontmatter('index.mdx'), children}; +}; + +const PLATFORM_CONTENT_RE = /]*)\/>/g; + +/** + * The `switchable` include paths of a runtime's quick start: the ones on its page and in the + * `platform-includes` files the page includes directly. + */ +const switchableIncludePaths = (runtime: string) => { + const found = new Set(); + const scan = (source: string, nested: boolean) => { + for (const [, includePath, attributes] of source.matchAll(PLATFORM_CONTENT_RE)) { + if (/\bswitchable\b/.test(attributes)) { + found.add(includePath); + } else if (nested) { + const file = [`javascript.${runtime}.mdx`, 'javascript.mdx'] + .map(name => join('platform-includes', includePath, name)) + .find(existsSync); + if (file) { + scan(readFileSync(file, 'utf8'), false); + } + } + } + }; + scan(readFileSync(join(GUIDES_DIR, runtime, 'index.mdx'), 'utf8'), true); + return [...found].sort(); +}; + +describe('RUNTIMES', () => { + it.each(Object.entries(RUNTIMES))('%s links only to existing pages', (_, runtime) => { + const urls = (runtime.frameworkGuides ?? []).map(g => g.url); + expect(urls.filter(url => !pageExists(url))).toEqual([]); + }); + + it.each(Object.entries(RUNTIMES))( + '%s lists every switchable include path of its quick start', + (runtime, {includePaths}) => { + expect(switchableIncludePaths(runtime)).toEqual([...includePaths].sort()); + } + ); + + it('links every quick start of a guide with quick starts for more than one runtime', () => { + const guides = readdirSync(GUIDES_DIR).filter(guide => + existsSync(join(GUIDES_DIR, guide, 'index.mdx')) + ); + const missing = guides.flatMap(guide => + (getRuntimeLinks(guidePages(guide), []) ?? []) + .filter( + link => + link.runtime in RUNTIMES && + !RUNTIMES[link.runtime].frameworkGuides?.some(g => g.url === link.url) + ) + .map(link => link.url) + ); + expect(missing).toEqual([]); + }); +}); diff --git a/src/components/frameworkSelector/frameworks.ts b/src/components/frameworkSelector/frameworks.ts new file mode 100644 index 0000000000000..4922ff5ffd359 --- /dev/null +++ b/src/components/frameworkSelector/frameworks.ts @@ -0,0 +1,125 @@ +export type Framework = { + /** Guide slug, e.g. `express` for `/platforms/javascript/guides/express/`. */ + key: string; + title: string; +}; + +const EXPRESS: Framework = {key: 'express', title: 'Express'}; +const FASTIFY: Framework = {key: 'fastify', title: 'Fastify'}; +const KOA: Framework = {key: 'koa', title: 'Koa'}; +const HAPI: Framework = {key: 'hapi', title: 'Hapi'}; + +/** A framework with its own Sentry SDK. The selector opens its guide instead of swapping snippets. */ +export type FrameworkGuide = { + /** Platform icon key, e.g. `javascript-astro`. */ + icon: string; + title: string; + url: string; +}; + +/** + * `slug` is the page path below `/platforms/javascript/guides/`. The icon defaults to the + * one of the guide in the first segment of `slug`. + */ +const guide = ( + title: string, + slug: string, + icon = `javascript-${slug.split('/')[0]}` +): FrameworkGuide => ({ + icon, + title, + url: `/platforms/javascript/guides/${slug}/`, +}); + +export type Runtime = { + /** Frameworks selectable on the runtime's getting started page. */ + frameworks: Framework[]; + /** Frameworks with their own Sentry SDK that the selector links to. */ + frameworkGuides?: FrameworkGuide[]; + /** + * `` include paths on the runtime's getting started page. + * Each one is pre-built per framework as a static JSON file that the page loads on demand. + */ + includePaths: string[]; + title: string; +}; + +/** Runtime guides (keyed by guide slug) that have a framework selector on their getting started page. */ +export const RUNTIMES: Record = { + node: { + title: 'Node.js', + frameworks: [EXPRESS, FASTIFY, KOA, HAPI], + frameworkGuides: [ + guide('Astro', 'astro'), + guide('Hono', 'hono'), + guide('NestJS', 'nestjs'), + guide('Next.js', 'nextjs'), + guide('Nitro', 'nitro'), + guide('Nuxt', 'nuxt'), + guide('React Router', 'react-router'), + guide('Remix', 'remix'), + guide('SolidStart', 'solidstart'), + guide('SvelteKit', 'sveltekit'), + guide('TanStack Start', 'tanstackstart-react'), + ], + includePaths: [ + 'getting-started-prerequisites', + 'getting-started-install', + 'getting-started-config', + 'getting-started-capture-errors', + 'getting-started-sourcemaps-short-version', + 'getting-started-data-collection', + 'getting-started-verify', + ], + }, + bun: { + title: 'Bun', + frameworks: [EXPRESS, FASTIFY, KOA, HAPI], + frameworkGuides: [guide('Elysia', 'elysia'), guide('Hono', 'hono')], + includePaths: ['getting-started-verify-issues-tracing'], + }, + deno: { + title: 'Deno', + frameworks: [EXPRESS, FASTIFY, KOA, HAPI], + frameworkGuides: [guide('Hono', 'hono')], + includePaths: ['getting-started-verify-issues-tracing'], + }, + cloudflare: { + title: 'Cloudflare Workers', + frameworks: [], + frameworkGuides: [ + guide('Astro', 'astro/cloudflare'), + guide('Hono', 'hono/cloudflare'), + guide('Hydrogen', 'react-router/hydrogen', 'javascript-hydrogen'), + guide('Next.js', 'nextjs/cloudflare'), + guide('Nuxt', 'nuxt/cloudflare'), + guide('Remix', 'remix/cloudflare'), + guide('SvelteKit', 'sveltekit/cloudflare'), + guide('TanStack Start', 'tanstackstart-react/cloudflare'), + ], + includePaths: [], + }, +}; + +export const FRAMEWORK_QUERY_PARAM = 'framework'; + +/** The serialized form of a `` include, served by the platform-content API route. */ +export type PlatformContentPayload = { + /** Whether the content differs from what the runtime's page shows without a framework. */ + changed: boolean; + /** Compiled MDX of the resolved include, or `null` if there is no content for it. */ + code: string | null; + /** Compiled MDX of nested `` files, keyed by name. */ + includes: Record; + /** Compiled MDX of nested `` files, keyed by include path. */ + platformContents: Record; +}; + +export function platformContentUrl( + platform: string, + runtime: string, + framework: string, + includePath: string +) { + return `/api/platform-content/${platform}/${runtime}/${framework}/${includePath}/`; +} diff --git a/src/components/frameworkSelector/index.tsx b/src/components/frameworkSelector/index.tsx new file mode 100644 index 0000000000000..4284ff50108b9 --- /dev/null +++ b/src/components/frameworkSelector/index.tsx @@ -0,0 +1,557 @@ +'use client'; + +import {ArrowRightIcon, CaretSortIcon} from '@radix-ui/react-icons'; +import * as RadixSelect from '@radix-ui/react-select'; +import {useRouter} from 'next/navigation'; +import { + createContext, + ReactNode, + useCallback, + useContext, + useEffect, + useMemo, + useRef, + useState, +} from 'react'; +import {getMDXComponent} from 'sentry-docs/getMDXComponent'; + +import {Alert} from '../alert'; +import {CodeBlock} from '../codeBlock'; +import {CodeContext} from '../codeContext'; +import {CodeTabs} from '../codeTabs'; +import {Expandable} from '../expandable'; +import {FeatureBadge} from '../featureBadge'; +import { + OnboardingOption, + OnboardingOptionButtons, + OnboardingSteps, + updateElementsVisibilityForOptions, +} from '../onboarding'; +import {PlatformIcon} from '../platformIcon'; +import {SmartLink} from '../smartLink'; +import styles from '../versionSelector/style.module.scss'; +import { + Framework, + FRAMEWORK_QUERY_PARAM, + FrameworkGuide, + PlatformContentPayload, + platformContentUrl, + RUNTIMES, +} from './frameworks'; +import frameworkStyles from './style.module.scss'; + +const DEFAULT_VALUE = 'none'; +const GUIDE_VALUE_PREFIX = 'guide:'; +const groupLabelClassName = 'px-2 pt-2 pb-1 text-xs font-medium text-[var(--gray-11)]'; +const itemClassName = `${styles.item} ${frameworkStyles.option}`; + +/** The state of a switchable block while a framework is selected. */ +type ContentStatus = + | {state: 'loading' | 'unchanged'} + /** `step` is the title of the `h2` step that contains the block, `targetId` the block's id. */ + | {state: 'changed'; targetId: string; step?: string}; + +type FrameworkContextValue = { + framework: Framework | null; + platform: string; + /** Records the status of the block with `includePath`, or removes it with `null`. */ + reportContent: (includePath: string, status: ContentStatus | null) => void; + /** The runtime guide the page belongs to, e.g. `node`. */ + runtime: string; +}; + +const FrameworkContext = createContext(null); + +function ItemLabel({icon, title}: {icon: string; title: string}) { + return ( + + + {title} + + ); +} + +/** + * The guides of a dropdown group as plain links. The dropdown renders its options only while + * it's open, so without these the page's HTML, and its Markdown export for AI agents, would + * not link the guides. People use the dropdown, so the links are hidden from them. + */ +function GuideLinks({guides, label}: {guides: FrameworkGuide[]; label: string}) { + if (guides.length === 0) { + return null; + } + return ( + + ); +} + +function stepTitle(el: HTMLElement): string | undefined { + const step = Array.from(document.querySelectorAll('main h2[id]')) + .filter(h => h.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING) + .pop(); + return (step?.querySelector('a') ?? step)?.textContent?.trim(); +} + +function FrameworkSummary({ + contents, + framework, + platform, +}: { + contents: Record; + framework: Framework; + platform: string; +}) { + const statuses = Object.values(contents); + if (statuses.some(c => c.state === 'loading')) { + return ( +

Loading the steps for {framework.title}…

+ ); + } + + const changed = statuses + .filter(c => c.state === 'changed') + .map(c => ({...c, el: document.getElementById(c.targetId)})) + .filter(c => c.el) + .sort((a, b) => + a.el!.compareDocumentPosition(b.el!) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1 + ); + const steps = changed.filter( + (c, i) => changed.findIndex(other => other.step === c.step) === i + ); + + return ( +

+ + {steps.length > 0 ? ( + + Updated for {framework.title}:{' '} + {steps.map((c, i) => ( + + {i > 0 && ', '} + {c.step ?? 'Show the change'} + + ))} + + ) : ( + The steps for {framework.title} are the same as without a framework. + )} +

+ ); +} + +function readFrameworkFromUrl(frameworks: Framework[]): Framework | null { + const key = new URLSearchParams(window.location.search).get(FRAMEWORK_QUERY_PARAM); + return frameworks.find(f => f.key === key) ?? null; +} + +function writeFrameworkToUrl(framework: Framework | null) { + const url = new URL(window.location.href); + if (framework) { + url.searchParams.set(FRAMEWORK_QUERY_PARAM, framework.key); + } else { + url.searchParams.delete(FRAMEWORK_QUERY_PARAM); + } + window.history.replaceState(window.history.state, '', url); +} + +/** + * Renders a framework dropdown and lets `` blocks among its + * children swap to the selected framework's snippets for `runtime`, loaded on demand. + * The selection is kept in the `?framework=` query param. + */ +export function FrameworkSelector({ + children, + runtime, + platform = 'javascript', +}: { + runtime: string; + children?: ReactNode; + platform?: string; +}) { + const router = useRouter(); + const runtimeConfig = RUNTIMES[runtime]; + const frameworks = useMemo(() => runtimeConfig?.frameworks ?? [], [runtimeConfig]); + const frameworkGuides = runtimeConfig?.frameworkGuides ?? []; + const [framework, setFramework] = useState(null); + const [contents, setContents] = useState>({}); + + const reportContent = useCallback( + (includePath: string, status: ContentStatus | null) => + setContents(prev => { + const next = {...prev}; + if (status) { + next[includePath] = status; + } else { + delete next[includePath]; + } + return next; + }), + [] + ); + + // The page is statically rendered, so the query param can only be read after mount. + useEffect(() => { + setFramework(readFrameworkFromUrl(frameworks)); + }, [frameworks]); + + const handleChange = (value: string) => { + if (value.startsWith(GUIDE_VALUE_PREFIX)) { + router.push(value.slice(GUIDE_VALUE_PREFIX.length)); + return; + } + const selected = frameworks.find(f => f.key === value) ?? null; + setFramework(selected); + writeFrameworkToUrl(selected); + }; + + const contextValue = useMemo( + () => ({framework, platform, reportContent, runtime}), + [framework, platform, reportContent, runtime] + ); + + return ( + + {/* Left out of the Markdown export, which gets the guides from `GuideLinks` */} +
+ +
+ + + + + + + + + {/* Radix finds the items for keyboard navigation only inside the viewport. + It hides the viewport's scrollbar, so the content scrolls instead. */} + + + + + + + {frameworks.length > 0 && ( + + + Set up with this guide + + {frameworks.map(f => ( + + + + + + ))} + + )} + {frameworkGuides.length > 0 && ( + + + Set up with its own guide + + {frameworkGuides.map(g => ( + + + + + + + ))} + + )} + + + +
+
+ +
+ {framework && ( + + )} +
+ {children} +
+ ); +} + +const payloadCache = new Map>(); + +function fetchPayload(url: string): Promise { + let promise = payloadCache.get(url); + if (!promise) { + promise = fetch(url).then(res => { + if (!res.ok) { + throw new Error(`Failed to load ${url}: ${res.status}`); + } + return res.json(); + }); + // Allow retrying after a failed request + promise.catch(() => payloadCache.delete(url)); + payloadCache.set(url, promise); + } + return promise; +} + +/** + * Client-side stand-ins for the server-only MDX components, scoped to the selected + * framework on the page's runtime. + */ +function clientMdxComponents( + payload: PlatformContentPayload, + platform: string, + runtime: string, + framework: string +) { + // Checked in order, like the server's fallback chain + const platformKeys = [`${platform}.${framework}`, `${platform}.${runtime}`]; + + function MDX({code}: {code: string | null | undefined}) { + const Component = useMemo(() => (code ? getMDXComponent(code) : null), [code]); + return Component ? : null; + } + + function Include({name}: {name: string}) { + return ; + } + + function PlatformContent({includePath}: {includePath: string}) { + return ; + } + + function PlatformLink({children, to}: {children: ReactNode; to?: string}) { + if (!to) { + return children; + } + return ( + + {children} + + ); + } + + function PlatformSection({ + children, + supported = [], + notSupported = [], + noGuides, + }: { + children: ReactNode; + noGuides?: boolean; + notSupported?: string[]; + supported?: string[]; + }) { + if (noGuides) { + return null; + } + for (const key of platformKeys) { + if (supported.includes(key)) { + return
{children}
; + } + if (notSupported.includes(key)) { + return null; + } + } + return supported.length ? null :
{children}
; + } + + const components = { + Alert, + CodeBlock, + CodeTabs, + Expandable, + FeatureBadge, + Include, + Link: SmartLink, + OnboardingOption, + OnboardingOptionButtons, + OnboardingSteps, + PlatformContent, + PlatformLink, + PlatformSection, + a: SmartLink, + }; + + return {MDX, components}; +} + +function RemoteFrameworkContent({ + fallback, + framework, + includePath, + platform, + reportContent, + runtime, +}: { + fallback: ReactNode; + framework: Framework; + includePath: string; + platform: string; + reportContent: FrameworkContextValue['reportContent']; + runtime: string; +}) { + const url = platformContentUrl(platform, runtime, framework.key, includePath); + const [payload, setPayload] = useState(null); + const [error, setError] = useState(false); + const codeContext = useContext(CodeContext); + const changedRef = useRef(null); + const targetId = `framework-content-${includePath.replace(/\//g, '-')}`; + + useEffect(() => { + if (error) { + reportContent(includePath, {state: 'unchanged'}); + } else if (!payload) { + reportContent(includePath, {state: 'loading'}); + } else if (!payload.changed || !changedRef.current) { + reportContent(includePath, {state: 'unchanged'}); + } else { + reportContent(includePath, { + state: 'changed', + step: stepTitle(changedRef.current), + targetId, + }); + } + }, [error, includePath, payload, reportContent, targetId]); + + useEffect(() => () => reportContent(includePath, null), [includePath, reportContent]); + + useEffect(() => { + let cancelled = false; + setPayload(null); + setError(false); + fetchPayload(url).then( + result => !cancelled && setPayload(result), + () => !cancelled && setError(true) + ); + return () => { + cancelled = true; + }; + }, [url]); + + const mdx = useMemo( + () => + payload ? clientMdxComponents(payload, platform, runtime, framework.key) : null, + [payload, platform, runtime, framework.key] + ); + + // Apply the current feature selection (tracing, profiling, ...) to the new content + useEffect(() => { + if (payload && codeContext?.onboardingOptions) { + updateElementsVisibilityForOptions(codeContext.onboardingOptions, false); + } + }, [payload, codeContext?.onboardingOptions]); + + if (error || payload?.changed === false) { + return fallback; + } + + if (!payload || !mdx) { + return ( +
+ {fallback} +
+ ); + } + + return ( +
+

+ + For {framework.title} +

+ +
+ ); +} + +/** + * Renders the server-rendered `children` by default, or the selected framework's + * version of `includePath` when inside a `` with a framework selected. + */ +export function FrameworkContent({ + children, + includePath, +}: { + children: ReactNode; + includePath: string; +}) { + const context = useContext(FrameworkContext); + + if (!context?.framework) { + return children; + } + + return ( + + ); +} diff --git a/src/components/frameworkSelector/style.module.scss b/src/components/frameworkSelector/style.module.scss new file mode 100644 index 0000000000000..5ba4afe092218 --- /dev/null +++ b/src/components/frameworkSelector/style.module.scss @@ -0,0 +1,69 @@ +.summary { + display: flex; + align-items: center; + gap: 0.5rem; + margin-top: -0.5rem; + font-size: 0.875rem; + color: var(--gray-11); +} + +.changed { + margin-block: 1rem; + padding: 0.25rem 0 0.25rem 1rem; + border-left: 3px solid var(--accent-purple); + border-radius: 0 0.25rem 0.25rem 0; + // Clears the sticky header and the sticky feature buttons of the quick start + scroll-margin-top: calc(var(--header-height) + 5rem); + animation: highlight 1.6s ease-out; +} + +.label { + display: flex; + align-items: center; + gap: 0.5rem; + margin: 0 0 0.5rem; + font-size: 0.75rem; + font-weight: 500; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--accent-purple); +} + +// The option that has the keyboard focus. The selected option keeps its own color. +.option[data-highlighted]:not([data-state='checked']) { + background-color: var(--accent-purple-light); +} + +@keyframes highlight { + from { + background-color: var(--accent-purple-light); + } + + to { + background-color: transparent; + } +} + +:global(.dark) { + .label { + color: var(--accent-purple-light); + } + + .changed { + animation-name: highlight-dark; + } + + .option[data-highlighted]:not([data-state='checked']) { + background-color: var(--gray-a4); + } +} + +@keyframes highlight-dark { + from { + background-color: color-mix(in srgb, var(--accent-purple), transparent 85%); + } + + to { + background-color: transparent; + } +} diff --git a/src/components/migrationGuide/index.tsx b/src/components/migrationGuide/index.tsx index 1f46b98d4ed71..f4c9f1ba1083e 100644 --- a/src/components/migrationGuide/index.tsx +++ b/src/components/migrationGuide/index.tsx @@ -16,8 +16,10 @@ const MIGRATIONS = { 'dotnet-v7': {storagePrefix: 'sentry-dotnet-v7-migration', platform: 'dotnet'}, } as const; -// Share the MDX component map across item bodies and platform pages. -const components = mdxComponents(); +// Share the MDX component map across item bodies and platform pages. Built on first +// use rather than at import time: `mdxComponents` imports this module, so calling it +// while that import cycle is still resolving can read components that aren't loaded yet. +let components: ReturnType | undefined; // `getMDXComponent` compiles its source with `new Function`, so the same item // body is compiled once instead of once per page it appears on. Keyed by source, @@ -30,6 +32,7 @@ function ItemBody({mdxSource}: {mdxSource: string}) { MDXLayout = getMDXComponent(mdxSource); componentBySource.set(mdxSource, MDXLayout); } + components ??= mdxComponents(); return ; } diff --git a/src/components/platformContent.tsx b/src/components/platformContent.tsx index a4fa773303f60..4a6402165f00d 100644 --- a/src/components/platformContent.tsx +++ b/src/components/platformContent.tsx @@ -12,6 +12,7 @@ import { VERSION_INDICATOR, } from 'sentry-docs/versioning'; +import {FrameworkContent} from './frameworkSelector'; import {Include} from './include'; type Props = { @@ -20,6 +21,11 @@ type Props = { fallbackPlatform?: string; noGuides?: boolean; platform?: string; + /** + * Allow this content to be swapped client-side for another guide's version + * when rendered inside a ``. + */ + switchable?: boolean; }; const updatePathIfVersionedFileDoesNotExist = (path: string): string => { @@ -52,9 +58,33 @@ function MDXLayoutRenderer({mdxSource: source, ...rest}) { return ; } -export async function PlatformContent({includePath, platform, noGuides}: Props) { +export async function PlatformContent({ + includePath, + platform, + noGuides, + switchable, +}: Props) { const {path} = serverContext(); + const doc = await resolvePlatformContent({includePath, path, platform, noGuides}); + const content = doc ? : null; + if (switchable) { + return {content}; + } + + return content; +} + +/** + * Returns the `platform-includes//` file for the page at `path`: the file of the + * guide, its `fallbackGuide`, the platform, its `fallbackPlatform`, or `_default`, in this order. + */ +export async function resolvePlatformContent({ + includePath, + path, + platform, + noGuides, +}: Pick & {path: string[]}) { if (!platform) { if (path.length < 2 || path[0] !== 'platforms') { return null; @@ -136,8 +166,7 @@ export async function PlatformContent({includePath, platform, noGuides}: Props) } } - const {mdxSource} = doc; - return ; + return doc; } const mdxComponentsWithWrapper = mdxComponents({Include, PlatformContent}); diff --git a/src/components/platformIcon.tsx b/src/components/platformIcon.tsx index 132b094e3b550..d7ddb88331ced 100644 --- a/src/components/platformIcon.tsx +++ b/src/components/platformIcon.tsx @@ -76,6 +76,7 @@ import Html5SVG from 'platformicons/svg/HTML5.svg'; import HttpxSVG from 'platformicons/svg/httpx.svg'; import HueySVG from 'platformicons/svg/huey.svg'; import HuggingfaceSVG from 'platformicons/svg/huggingface.svg'; +import HydrogenSVG from 'platformicons/svg/hydrogen.svg'; import IonicSVG from 'platformicons/svg/ionic.svg'; import IrisSVG from 'platformicons/svg/iris.svg'; import JavaSVG from 'platformicons/svg/java.svg'; @@ -235,6 +236,7 @@ import Html5SVGLarge from 'platformicons/svg_80x80/HTML5.svg'; import HttpxSVGLarge from 'platformicons/svg_80x80/httpx.svg'; import HueySVGLarge from 'platformicons/svg_80x80/huey.svg'; import HuggingfaceSVGLarge from 'platformicons/svg_80x80/huggingface.svg'; +import HydrogenSVGLarge from 'platformicons/svg_80x80/hydrogen.svg'; import IonicSVGLarge from 'platformicons/svg_80x80/ionic.svg'; import IrisSVGLarge from 'platformicons/svg_80x80/iris.svg'; import JavaSVGLarge from 'platformicons/svg_80x80/java.svg'; @@ -672,6 +674,10 @@ const formatToSVG = { sm: HonoSVG, lg: HonoSVGLarge, }, + hydrogen: { + sm: HydrogenSVG, + lg: HydrogenSVGLarge, + }, kotlin: { sm: KotlinSVG, lg: KotlinSVGLarge, @@ -1076,6 +1082,7 @@ export const PLATFORM_TO_ICON = { 'javascript-ionic': 'ionic', 'javascript-hapi': 'hapi', 'javascript-hono': 'hono', + 'javascript-hydrogen': 'hydrogen', 'javascript-eve': 'eve', 'javascript-firebase': 'firebase', 'javascript-flue': 'flue', diff --git a/src/mdxComponents.ts b/src/mdxComponents.ts index 27d17c1f72fe1..85c9d6dad9b5a 100644 --- a/src/mdxComponents.ts +++ b/src/mdxComponents.ts @@ -20,6 +20,7 @@ import {DevDocsCardGrid} from './components/devDocsCardGrid'; import DocImage from './components/docImage'; import {Expandable} from './components/expandable'; import {FeatureBadge} from './components/featureBadge'; +import {FrameworkSelector} from './components/frameworkSelector'; import {GitHubCodePreview} from './components/githubCodePreview'; import {GitHubDomainChecker} from './components/githubDomainChecker'; import {GradleFeatureConfig} from './components/gradleFeatureConfig'; @@ -101,6 +102,7 @@ export function mdxComponents( DefinitionList, Expandable, FeatureBadge, + FrameworkSelector, GuideGrid, IntegrationGrid, IntegrationListItem, From 40b6259b4eb170783dd038b159cd99f5c40f9c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Tue, 10 Nov 2026 11:15:14 -0500 Subject: [PATCH 012/141] docs(js): Add runtime quick starts to the agent guides (#20467) ## DESCRIBE YOUR PR This links the runtime quick starts of the agent guides, so a reader or a coding agent can start on one page and find the setup for their runtime. Pi Durable, Mastra and Flue set `runtime` in their frontmatter, so they show the runtime selector from #19977, and Pi Durable gets new Deno and Bun quick starts. - The framework dropdown on the Node.js, Bun, Deno and Cloudflare quick starts gets an "Agent frameworks" group (Eve, Flue, Mastra and Pi Durable). Each entry opens the quick start for that runtime. - On Deno, the app loads the Sentry import hook with `--preload`, and `deno.json` needs `nodeModulesDir`. On Bun, the app must be built with `sentryBunPlugin`, because Bun has no runtime hook. ## Dropdown decision "Agent frameworks" comes before "Set up with its own guide", so the agent guides are near the top of the dropdown. The alternative is to show them last. ## Known issues - The SDK repo has no tests for Pi Durable on Deno or Bun yet. Both setups were tested locally with a fake model provider. ## 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) --------- Co-authored-by: Claude Opus 5.5 --- .../javascript/guides/flue/cloudflare.mdx | 6 +- .../javascript/guides/flue/index.mdx | 3 +- .../javascript/guides/mastra/cloudflare.mdx | 6 +- .../javascript/guides/mastra/index.mdx | 3 +- .../javascript/guides/pi-durable/bun.mdx | 120 +++++++++++++++++ .../guides/pi-durable/cloudflare.mdx | 6 +- .../javascript/guides/pi-durable/deno.mdx | 121 ++++++++++++++++++ .../javascript/guides/pi-durable/index.mdx | 7 +- .../frameworkSelector/frameworks.spec.ts | 10 +- .../frameworkSelector/frameworks.ts | 18 +++ src/components/frameworkSelector/index.tsx | 55 +++++--- 11 files changed, 314 insertions(+), 41 deletions(-) create mode 100644 docs/platforms/javascript/guides/pi-durable/bun.mdx create mode 100644 docs/platforms/javascript/guides/pi-durable/deno.mdx diff --git a/docs/platforms/javascript/guides/flue/cloudflare.mdx b/docs/platforms/javascript/guides/flue/cloudflare.mdx index e5c274aa0189d..a9eba621da5b4 100644 --- a/docs/platforms/javascript/guides/flue/cloudflare.mdx +++ b/docs/platforms/javascript/guides/flue/cloudflare.mdx @@ -1,15 +1,15 @@ --- -title: Cloudflare Quick Start +title: Sentry for Flue (Cloudflare) +sidebar_title: Quick Start (Cloudflare) sidebar_order: 0.5 description: Learn how to send Flue agent traces, model calls, tool executions, and errors to Sentry from Cloudflare Workers. +runtime: cloudflare --- [Flue](https://flueframework.com/) is an open TypeScript framework for building AI agents, made by the Astro team. This guide sets up the Sentry SDK in a Flue app running on Cloudflare Workers so agent turns, model calls, tool executions, and errors flow into [Sentry Agent Tracing](/product/agents/). -Running Flue on Node.js? Follow the [Flue Quick Start](../) instead. - ## Prerequisites Before you begin, you need: diff --git a/docs/platforms/javascript/guides/flue/index.mdx b/docs/platforms/javascript/guides/flue/index.mdx index 5a87966bc49b9..430cf14d3ef05 100644 --- a/docs/platforms/javascript/guides/flue/index.mdx +++ b/docs/platforms/javascript/guides/flue/index.mdx @@ -4,6 +4,7 @@ description: Learn how to send Flue agent traces, model calls, tool executions, sdk: sentry.javascript.node fallbackGuide: javascript.node icon: flue +runtime: node categories: - server - server-only @@ -18,8 +19,6 @@ keywords: -Deploying Flue agents to Cloudflare Workers? Follow the [Cloudflare Quick Start](./cloudflare/) instead. - ## Prerequisites Before you begin, you need: diff --git a/docs/platforms/javascript/guides/mastra/cloudflare.mdx b/docs/platforms/javascript/guides/mastra/cloudflare.mdx index 2efb42fef0a73..59dfc102ee961 100644 --- a/docs/platforms/javascript/guides/mastra/cloudflare.mdx +++ b/docs/platforms/javascript/guides/mastra/cloudflare.mdx @@ -1,15 +1,15 @@ --- -title: Cloudflare Quick Start +title: Sentry for Mastra (Cloudflare) +sidebar_title: Quick Start (Cloudflare) sidebar_order: 0.5 description: Learn how to send Mastra agent traces, model calls, tool executions, and errors to Sentry from Cloudflare Workers. +runtime: cloudflare --- [Mastra](https://mastra.ai/) is a TypeScript framework for building AI applications and agents. This guide sets up the Sentry SDK in a Mastra app running on Cloudflare Workers so agent runs, model generations, tool calls, workflows, and errors flow into [Sentry Agent Tracing](/product/agents/). -Running Mastra on Node.js? Follow the [Mastra Quick Start](../) instead. - ## Prerequisites Before you begin, you need: diff --git a/docs/platforms/javascript/guides/mastra/index.mdx b/docs/platforms/javascript/guides/mastra/index.mdx index 43ecc77e79488..94b8b41e34bc6 100644 --- a/docs/platforms/javascript/guides/mastra/index.mdx +++ b/docs/platforms/javascript/guides/mastra/index.mdx @@ -4,6 +4,7 @@ description: Learn how to send Mastra agent traces, model calls, tool executions sdk: sentry.javascript.node fallbackGuide: javascript.node icon: mastra +runtime: node categories: - server - server-only @@ -18,8 +19,6 @@ keywords: -Running Mastra on Cloudflare Workers? Follow the [Cloudflare Quick Start](./cloudflare/) instead. - ## Prerequisites Before you begin, you need: diff --git a/docs/platforms/javascript/guides/pi-durable/bun.mdx b/docs/platforms/javascript/guides/pi-durable/bun.mdx new file mode 100644 index 0000000000000..8990f49d25a32 --- /dev/null +++ b/docs/platforms/javascript/guides/pi-durable/bun.mdx @@ -0,0 +1,120 @@ +--- +title: Sentry for Pi Durable (Bun) +sidebar_title: Quick Start (Bun) +sidebar_order: 0.7 +description: Learn how to send Pi Durable agent runs, model requests, tool calls, and errors to Sentry from a Bun app. +runtime: bun +--- + +[Pi Durable](https://earendil.com/posts/pi-durable/) is Earendil's durable agent harness, built on the same foundations as the Pi coding agent. This guide sets up the Sentry SDK in a Bun app that runs Pi Durable, so agent runs, model requests, tool calls, and errors flow into [Sentry Agent Tracing](/product/agents/). + + + +## Prerequisites + +Before you begin, you need: + +- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/). The project's DSN tells the SDK where to send data. +- A Bun application using `@earendil-works/pi-durable` version `1.0.0` or later. +- `@sentry/bun` version `11.6.0` or later. + + + +## Install + +Choose the features you want to configure, and this guide will show you how: + + + +Install the Sentry Bun SDK: + +```bash +bun add @sentry/bun@^11.6.0 +``` + +## Configure + +Create an `instrument.ts` file in the root of your project. The Pi Durable integration is enabled by default, so you don't add it to `integrations`: + +```typescript {filename:instrument.ts} +import * as Sentry from "@sentry/bun"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of spans for tracing. + // We recommend adjusting this value in production. + // Learn more at + // https://docs.sentry.io/platforms/javascript/guides/bun/configuration/options/#tracesSampleRate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance +}); +``` + +Bun has no runtime hook that Sentry can use to instrument Pi Durable, so build your app with `sentryBunPlugin` from `@sentry/bun/plugin`. The plugin instruments `Harness.open()` while `Bun.build()` bundles `@earendil-works/pi-durable`: + +```typescript {filename:build.ts} +import { sentryBunPlugin } from "@sentry/bun/plugin"; + +await Bun.build({ + entrypoints: ["./app.ts"], + outdir: "./dist", + target: "bun", + plugins: [sentryBunPlugin()], +}); +``` + +Build your app, then run the output with the instrument file preloaded: + +```bash +bun build.ts +bun --preload ./instrument.ts dist/app.js +``` + +If you run your source directly, for example with `bun app.ts`, the plugin doesn't run, and Pi Durable isn't traced. + +Your Pi Durable code doesn't change. Every Harness your app opens is traced, whichever storage it uses. + + + +### Control the Data You Send to Sentry (Optional) + + + +To change recording for Pi Durable only, pass `recordInputs` and `recordOutputs` to the integration. They take precedence over `dataCollection`: + +```typescript {filename:instrument.ts} +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [ + Sentry.piDurableIntegration({ + recordInputs: false, + recordOutputs: false, + }), + ], +}); +``` + + + + + + + +## Troubleshooting + +- **No AI spans at all.** Confirm that `sentryBunPlugin()` is in your `Bun.build()` call and that you run the built output, not your source files. + + + + + +## Supported Versions + +- `@sentry/bun`: `>=11.6.0` +- `@earendil-works/pi-durable`: `>=1.0.0 <2.0.0` diff --git a/docs/platforms/javascript/guides/pi-durable/cloudflare.mdx b/docs/platforms/javascript/guides/pi-durable/cloudflare.mdx index cfde28a4f313c..1a178064c9377 100644 --- a/docs/platforms/javascript/guides/pi-durable/cloudflare.mdx +++ b/docs/platforms/javascript/guides/pi-durable/cloudflare.mdx @@ -1,15 +1,15 @@ --- -title: Cloudflare Quick Start +title: Sentry for Pi Durable (Cloudflare) +sidebar_title: Quick Start (Cloudflare) sidebar_order: 0.5 description: Learn how to send Pi Durable agent runs, model requests, tool calls, and errors to Sentry from Cloudflare Durable Objects. +runtime: cloudflare --- [Pi Durable](https://earendil.com/posts/pi-durable/) is Earendil's durable agent harness, built on the same foundations as the Pi coding agent. This guide sets up the Sentry SDK in a Worker that runs Pi Durable in a Durable Object, for example through the Agents SDK `PiHarness`, so agent runs, model requests, tool calls, and errors flow into [Sentry Agent Tracing](/product/agents/). -Running Pi Durable on Node.js? Follow the [Pi Durable Quick Start](../) instead. - ## Prerequisites Before you begin, you need: diff --git a/docs/platforms/javascript/guides/pi-durable/deno.mdx b/docs/platforms/javascript/guides/pi-durable/deno.mdx new file mode 100644 index 0000000000000..24eecb22d96a1 --- /dev/null +++ b/docs/platforms/javascript/guides/pi-durable/deno.mdx @@ -0,0 +1,121 @@ +--- +title: Sentry for Pi Durable (Deno) +sidebar_title: Quick Start (Deno) +sidebar_order: 0.6 +description: Learn how to send Pi Durable agent runs, model requests, tool calls, and errors to Sentry from a Deno app. +runtime: deno +--- + +[Pi Durable](https://earendil.com/posts/pi-durable/) is Earendil's durable agent harness, built on the same foundations as the Pi coding agent. This guide sets up the Sentry SDK in a Deno app that runs Pi Durable, so agent runs, model requests, tool calls, and errors flow into [Sentry Agent Tracing](/product/agents/). + + + +## Prerequisites + +Before you begin, you need: + +- A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/). The project's DSN tells the SDK where to send data. +- A Deno application using `@earendil-works/pi-durable` version `1.0.0` or later. Deno must be version `2.8.3` or later. +- `@sentry/deno` version `11.6.0` or later. + + + +## Install + +Choose the features you want to configure, and this guide will show you how: + + + +Deno loads the Sentry Deno SDK from npm through the `npm:` specifier. Add it to the imports in your `deno.json`, so Deno uses version `11.6.0` or later. + +The Sentry import hook, which you load when you start your app, reads `@earendil-works/pi-durable` from a local `node_modules` directory, not from Deno's global npm cache. Set `nodeModulesDir` in your `deno.json` too: + +```json {filename:deno.json} +{ + "imports": { + "@sentry/deno": "npm:@sentry/deno@^11.6.0" + }, + "nodeModulesDir": "auto" +} +``` + +## Configure + +Initialize the Sentry SDK at the top of your entry file. The Pi Durable integration is enabled by default, so you don't add it to `integrations`: + +```typescript {filename:main.ts} +import * as Sentry from "npm:@sentry/deno"; + +Sentry.init({ + dsn: "___PUBLIC_DSN___", + // ___PRODUCT_OPTION_START___ performance + + // Set tracesSampleRate to 1.0 to capture 100% + // of spans for tracing. + // We recommend adjusting this value in production. + // Learn more at + // https://docs.sentry.io/platforms/javascript/guides/deno/configuration/options/#tracesSampleRate + tracesSampleRate: 1.0, + // ___PRODUCT_OPTION_END___ performance +}); +``` + +Load the Sentry import hook with the `--preload` flag when you start your app. Deno blocks access to the network, the file system, and system information until you grant it. Add the hosts your agents call, such as your model provider, to `--allow-net`, separated by commas, and add any other access your app needs: + +```bash +deno run \ + --preload=npm:@sentry/deno/import \ + --allow-net=___ORG_INGEST_DOMAIN___,api.openai.com \ + --allow-env \ + --allow-read=. \ + --allow-sys=hostname,osRelease \ + main.ts +``` + +The import hook instruments `Harness.open()` while Deno loads `@earendil-works/pi-durable`. `Sentry.init()` in your entry file alone is too late, because Deno loads every module that your entry file imports before it runs any of them. + +Your Pi Durable code doesn't change. Every Harness your app opens is traced, whichever storage it uses. + + + +### Control the Data You Send to Sentry (Optional) + + + +To change recording for Pi Durable only, pass `recordInputs` and `recordOutputs` to the integration. They take precedence over `dataCollection`: + +```typescript {filename:main.ts} +Sentry.init({ + dsn: "___PUBLIC_DSN___", + integrations: [ + Sentry.piDurableIntegration({ + recordInputs: false, + recordOutputs: false, + }), + ], +}); +``` + + + + + + + +## Troubleshooting + +- **No AI spans at all.** Confirm that you start your app with `--preload=npm:@sentry/deno/import` and that `deno.json` sets `nodeModulesDir`. Without the import hook, `@earendil-works/pi-durable` is loaded before `Sentry.init()` runs, so the SDK can't instrument it. +- **Your app stops at start with `NotCapable`.** Deno names the missing permission in the error. The import hook needs `--allow-env` and `--allow-read`. If the error asks for read access to a file in Deno's npm cache, set `nodeModulesDir` in your `deno.json` instead of granting more access. + + + + + +## Supported Versions + +- `@sentry/deno`: `>=11.6.0` +- `@earendil-works/pi-durable`: `>=1.0.0 <2.0.0` +- Deno: `>=2.8.3` diff --git a/docs/platforms/javascript/guides/pi-durable/index.mdx b/docs/platforms/javascript/guides/pi-durable/index.mdx index 45cc4aefb9886..87cbc8b766e5d 100644 --- a/docs/platforms/javascript/guides/pi-durable/index.mdx +++ b/docs/platforms/javascript/guides/pi-durable/index.mdx @@ -4,6 +4,7 @@ description: Learn how to send Pi Durable agent runs, model requests, tool calls sdk: sentry.javascript.node fallbackGuide: javascript.node icon: pi-durable +runtime: node categories: - server - server-only @@ -20,15 +21,13 @@ keywords: -Running Pi Durable in a Cloudflare Durable Object? Follow the [Cloudflare Quick Start](./cloudflare/) instead. - ## Prerequisites Before you begin, you need: - A Sentry [account](https://sentry.io/signup/) and [project](/product/projects/). The project's DSN tells the SDK where to send data. - A Node.js application using `@earendil-works/pi-durable` version `1.0.0` or later. -- `@sentry/node` version `11.6.0` or later, or [`@sentry/cloudflare@^11.6.0` when running on Cloudflare](./cloudflare/). Browser runtimes are not supported. +- `@sentry/node` version `11.6.0` or later. Browser runtimes are not supported. @@ -185,4 +184,6 @@ Sentry.init({ - `@sentry/node`: `>=11.6.0` - `@sentry/cloudflare`: `>=11.6.0` +- `@sentry/deno`: `>=11.6.0` +- `@sentry/bun`: `>=11.6.0` - `@earendil-works/pi-durable`: `>=1.0.0 <2.0.0` diff --git a/src/components/frameworkSelector/frameworks.spec.ts b/src/components/frameworkSelector/frameworks.spec.ts index 41c74fea53736..bc95d6b12c363 100644 --- a/src/components/frameworkSelector/frameworks.spec.ts +++ b/src/components/frameworkSelector/frameworks.spec.ts @@ -5,10 +5,13 @@ import matter from 'gray-matter'; import {describe, expect, it} from 'vitest'; import {getRuntimeLinks} from '../runtimeLinks'; -import {RUNTIMES} from './frameworks'; +import {Runtime, RUNTIMES} from './frameworks'; const GUIDES_DIR = 'docs/platforms/javascript/guides'; +const linkedUrls = (runtime: Runtime) => + [...(runtime.frameworkGuides ?? []), ...(runtime.agentGuides ?? [])].map(g => g.url); + const pageExists = (url: string) => { const file = join('docs', url.replace(/\/$/, '')); return existsSync(`${file}.mdx`) || existsSync(join(file, 'index.mdx')); @@ -59,8 +62,7 @@ const switchableIncludePaths = (runtime: string) => { describe('RUNTIMES', () => { it.each(Object.entries(RUNTIMES))('%s links only to existing pages', (_, runtime) => { - const urls = (runtime.frameworkGuides ?? []).map(g => g.url); - expect(urls.filter(url => !pageExists(url))).toEqual([]); + expect(linkedUrls(runtime).filter(url => !pageExists(url))).toEqual([]); }); it.each(Object.entries(RUNTIMES))( @@ -79,7 +81,7 @@ describe('RUNTIMES', () => { .filter( link => link.runtime in RUNTIMES && - !RUNTIMES[link.runtime].frameworkGuides?.some(g => g.url === link.url) + !linkedUrls(RUNTIMES[link.runtime]).includes(link.url) ) .map(link => link.url) ); diff --git a/src/components/frameworkSelector/frameworks.ts b/src/components/frameworkSelector/frameworks.ts index 4922ff5ffd359..3d4945367259f 100644 --- a/src/components/frameworkSelector/frameworks.ts +++ b/src/components/frameworkSelector/frameworks.ts @@ -36,6 +36,11 @@ export type Runtime = { frameworks: Framework[]; /** Frameworks with their own Sentry SDK that the selector links to. */ frameworkGuides?: FrameworkGuide[]; + /** + * Agent frameworks that the selector links to in the "Agent frameworks" group. Each URL is + * the framework's quick start for this runtime. + */ + agentGuides?: FrameworkGuide[]; /** * `` include paths on the runtime's getting started page. * Each one is pre-built per framework as a static JSON file that the page loads on demand. @@ -62,6 +67,12 @@ export const RUNTIMES: Record = { guide('SvelteKit', 'sveltekit'), guide('TanStack Start', 'tanstackstart-react'), ], + agentGuides: [ + guide('Eve', 'eve'), + guide('Flue', 'flue'), + guide('Mastra', 'mastra'), + guide('Pi Durable', 'pi-durable'), + ], includePaths: [ 'getting-started-prerequisites', 'getting-started-install', @@ -76,12 +87,14 @@ export const RUNTIMES: Record = { title: 'Bun', frameworks: [EXPRESS, FASTIFY, KOA, HAPI], frameworkGuides: [guide('Elysia', 'elysia'), guide('Hono', 'hono')], + agentGuides: [guide('Pi Durable', 'pi-durable/bun')], includePaths: ['getting-started-verify-issues-tracing'], }, deno: { title: 'Deno', frameworks: [EXPRESS, FASTIFY, KOA, HAPI], frameworkGuides: [guide('Hono', 'hono')], + agentGuides: [guide('Pi Durable', 'pi-durable/deno')], includePaths: ['getting-started-verify-issues-tracing'], }, cloudflare: { @@ -97,6 +110,11 @@ export const RUNTIMES: Record = { guide('SvelteKit', 'sveltekit/cloudflare'), guide('TanStack Start', 'tanstackstart-react/cloudflare'), ], + agentGuides: [ + guide('Flue', 'flue/cloudflare'), + guide('Mastra', 'mastra/cloudflare'), + guide('Pi Durable', 'pi-durable/cloudflare'), + ], includePaths: [], }, }; diff --git a/src/components/frameworkSelector/index.tsx b/src/components/frameworkSelector/index.tsx index 4284ff50108b9..6c569390f113d 100644 --- a/src/components/frameworkSelector/index.tsx +++ b/src/components/frameworkSelector/index.tsx @@ -102,6 +102,30 @@ function GuideLinks({guides, label}: {guides: FrameworkGuide[]; label: string}) ); } +function GuideGroup({guides, label}: {guides: FrameworkGuide[]; label: string}) { + if (guides.length === 0) { + return null; + } + + return ( + + {label} + {guides.map(g => ( + + + + + + + ))} + + ); +} + function stepTitle(el: HTMLElement): string | undefined { const step = Array.from(document.querySelectorAll('main h2[id]')) .filter(h => h.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING) @@ -194,7 +218,6 @@ export function FrameworkSelector({ const router = useRouter(); const runtimeConfig = RUNTIMES[runtime]; const frameworks = useMemo(() => runtimeConfig?.frameworks ?? [], [runtimeConfig]); - const frameworkGuides = runtimeConfig?.frameworkGuides ?? []; const [framework, setFramework] = useState(null); const [contents, setContents] = useState>({}); @@ -288,32 +311,22 @@ export function FrameworkSelector({ ))} )} - {frameworkGuides.length > 0 && ( - - - Set up with its own guide - - {frameworkGuides.map(g => ( - - - - - - - ))} - - )} + + +
From 8fa5488d18e6a9b69b52790771249875f138aff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Peer=20St=C3=B6cklmair?= Date: Tue, 10 Nov 2026 11:25:23 -0500 Subject: [PATCH 013/141] feat(platform-selector): Show JavaScript runtimes first (#20132) ## DESCRIBE YOUR PR This lists the JavaScript runtimes (Browser JavaScript, Node.js, Bun, Deno and Cloudflare) first in the sidebar platform selector and in the platform grid on the SDKs page, under a "Runtimes" title. The other JavaScript guides follow under "Frameworks and more". While searching, the titles are hidden and results keep their relevance order. The sidebar is now grouped: Image ## 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) Co-authored-by: Claude Opus 5.5 --- src/components/platformFilter/client.tsx | 68 +++++++++++------- .../platformFilter/style.module.scss | 9 +++ .../platformSelector/guideGroups.spec.ts | 70 +++++++++++++++++++ .../platformSelector/guideGroups.ts | 49 +++++++++++++ src/components/platformSelector/index.tsx | 38 +++++++--- .../platformSelector/style.module.scss | 10 +++ 6 files changed, 206 insertions(+), 38 deletions(-) create mode 100644 src/components/platformSelector/guideGroups.spec.ts create mode 100644 src/components/platformSelector/guideGroups.ts diff --git a/src/components/platformFilter/client.tsx b/src/components/platformFilter/client.tsx index f9cc8274d8f9a..c18fbf266a0ed 100644 --- a/src/components/platformFilter/client.tsx +++ b/src/components/platformFilter/client.tsx @@ -4,11 +4,12 @@ import {TriangleRightIcon} from '@radix-ui/react-icons'; import classNames from 'classnames'; import {matchSorter, rankings} from 'match-sorter'; import Link from 'next/link'; -import {useMemo, useState} from 'react'; +import {Fragment, useMemo, useState} from 'react'; import {type Platform} from 'sentry-docs/types'; import {splitToChunks, uniqByReference} from 'sentry-docs/utils'; import {PlatformIcon} from '../platformIcon'; +import {guideGroupTitle, sortRuntimesFirst} from '../platformSelector/guideGroups'; import styles from './style.module.scss'; export function PlatformFilterClient({platforms}: {platforms: Platform[]}) { @@ -101,6 +102,7 @@ export function PlatformFilterClient({platforms}: {platforms: Platform[]}) { matchKeys={matchKeys} // force expand if the filter is long enough to have few results forceExpand={filter.length >= 2} + showGuideGroups={filter === ''} /> ) )} @@ -119,10 +121,13 @@ function PlatformWithGuides({ platform, forceExpand, matchKeys, + showGuideGroups, }: { forceExpand: boolean; matchKeys: string[]; platform: Platform; + /** Lists the runtime guides first and shows titles above them and the guides after them. */ + showGuideGroups: boolean; }) { const [expanded, setExpanded] = useState(false); @@ -133,10 +138,14 @@ function PlatformWithGuides({ // In this case, we do not need to add the platform to the list of guides const hasGuideWithPlatformKey = platform.guides.some(g => g.key === platform.key); - return showPlatformInContent && !hasGuideWithPlatformKey - ? [platform, ...platform.guides] - : platform.guides; - }, [matchKeys, platform]); + const platformAndGuides = + showPlatformInContent && !hasGuideWithPlatformKey + ? [platform, ...platform.guides] + : platform.guides; + return showGuideGroups + ? sortRuntimesFirst(platform.key, platformAndGuides) + : platformAndGuides; + }, [matchKeys, platform, showGuideGroups]); return ( = 8 || platform.integrations.length >= 8} > - {guides.map((guide, i) => ( - -
- - {guide.title} -
- - ))} + {guides.map((guide, i) => { + const groupTitle = showGuideGroups && guideGroupTitle(platform.key, guides, i); + return ( + + {groupTitle &&
{groupTitle}
} + +
+ + {guide.title} +
+ +
+ ); + })} {platform.guides.length === 0 && platform.integrations.map((integ, i) => { return ( diff --git a/src/components/platformFilter/style.module.scss b/src/components/platformFilter/style.module.scss index 00186fbdef9cb..75ad8bb45543d 100644 --- a/src/components/platformFilter/style.module.scss +++ b/src/components/platformFilter/style.module.scss @@ -149,6 +149,15 @@ } } +.GuideGroupTitle { + padding: 0.75rem 0.5rem 0.25rem 1.5rem; + font-size: 0.75rem; + font-weight: 500; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--foreground-secondary); +} + .PlatformIcon { width: 20px; height: 20px; diff --git a/src/components/platformSelector/guideGroups.spec.ts b/src/components/platformSelector/guideGroups.spec.ts new file mode 100644 index 0000000000000..783be8eeb99a6 --- /dev/null +++ b/src/components/platformSelector/guideGroups.spec.ts @@ -0,0 +1,70 @@ +import {describe, expect, it} from 'vitest'; + +import {guideGroupTitle, sortRuntimesFirst} from './guideGroups'; + +const guides = (...keys: string[]) => keys.map(key => ({key})); +const keys = (list: Array<{key: string}>) => list.map(g => g.key); + +describe('sortRuntimesFirst', () => { + it('lists the runtime guides first, in their configured order', () => { + const sorted = sortRuntimesFirst( + 'javascript', + guides( + 'javascript', + 'javascript.angular', + 'javascript.bun', + 'javascript.cloudflare', + 'javascript.deno', + 'javascript.nextjs', + 'javascript.node' + ) + ); + expect(keys(sorted)).toEqual([ + 'javascript', + 'javascript.node', + 'javascript.bun', + 'javascript.deno', + 'javascript.cloudflare', + 'javascript.angular', + 'javascript.nextjs', + ]); + }); + + it('skips runtime guides that are not in the list', () => { + const sorted = sortRuntimesFirst( + 'javascript', + guides('javascript.angular', 'javascript.bun') + ); + expect(keys(sorted)).toEqual(['javascript.bun', 'javascript.angular']); + }); + + it('keeps the order of platforms without runtime guides', () => { + const list = guides('python.django', 'python.aiohttp'); + expect(sortRuntimesFirst('python', list)).toBe(list); + }); +}); + +describe('guideGroupTitle', () => { + const sorted = guides('javascript', 'javascript.node', 'javascript.angular'); + + it('returns "Runtimes" for the first runtime guide', () => { + expect(guideGroupTitle('javascript', sorted, 0)).toBe('Runtimes'); + expect(guideGroupTitle('javascript', sorted, 1)).toBeUndefined(); + }); + + it('returns "Frameworks and more" for the first guide after the runtimes', () => { + expect(guideGroupTitle('javascript', sorted, 2)).toBe('Frameworks and more'); + }); + + it('returns no titles for platforms without runtime guides', () => { + const list = guides('python.django', 'python.aiohttp'); + expect(guideGroupTitle('python', list, 0)).toBeUndefined(); + expect(guideGroupTitle('python', list, 1)).toBeUndefined(); + }); + + it('returns no title for a list that only has other guides', () => { + expect( + guideGroupTitle('javascript', guides('javascript.angular'), 0) + ).toBeUndefined(); + }); +}); diff --git a/src/components/platformSelector/guideGroups.ts b/src/components/platformSelector/guideGroups.ts new file mode 100644 index 0000000000000..a4b6bf42eb023 --- /dev/null +++ b/src/components/platformSelector/guideGroups.ts @@ -0,0 +1,49 @@ +/** + * Guide keys per platform that the platform selector and the platform grid list first, + * in this order, under the "Runtimes" title. The other guides of the platform follow under "Frameworks and more". + */ +export const RUNTIME_GUIDE_KEYS: Record = { + javascript: [ + 'javascript', + 'javascript.node', + 'javascript.bun', + 'javascript.deno', + 'javascript.cloudflare', + ], +}; + +const isRuntimeGuide = (platformKey: string, guideKey: string) => + RUNTIME_GUIDE_KEYS[platformKey]?.includes(guideKey) ?? false; + +/** + * Returns the guides with the platform's runtime guides first, in the order of + * `RUNTIME_GUIDE_KEYS`, followed by the other guides in their original order. + */ +export function sortRuntimesFirst( + platformKey: string, + guides: T[] +): T[] { + const runtimeKeys = RUNTIME_GUIDE_KEYS[platformKey]; + if (!runtimeKeys) { + return guides; + } + const runtimes = runtimeKeys.flatMap(key => guides.filter(g => g.key === key)); + return [...runtimes, ...guides.filter(g => !runtimeKeys.includes(g.key))]; +} + +/** + * Returns the group title to show above `guides[index]`, or `undefined` if the guide + * doesn't start a group. Expects the guides in the order of `sortRuntimesFirst`. + */ +export function guideGroupTitle( + platformKey: string, + guides: Array<{key: string}>, + index: number +): string | undefined { + const isRuntime = isRuntimeGuide(platformKey, guides[index].key); + if (index === 0) { + return isRuntime ? 'Runtimes' : undefined; + } + const followsRuntime = isRuntimeGuide(platformKey, guides[index - 1].key); + return !isRuntime && followsRuntime ? 'Frameworks and more' : undefined; +} diff --git a/src/components/platformSelector/index.tsx b/src/components/platformSelector/index.tsx index 7c9354b872b44..090fa2cd6de2a 100644 --- a/src/components/platformSelector/index.tsx +++ b/src/components/platformSelector/index.tsx @@ -25,6 +25,7 @@ import {Platform, PlatformGuide, PlatformIntegration} from 'sentry-docs/types'; import {isLocalStorageAvailable, uniqByReference} from 'sentry-docs/utils'; import {SidebarLink, SidebarSeparator} from '../sidebar/sidebarLink'; +import {guideGroupTitle, sortRuntimesFirst} from './guideGroups'; import {resolveSamePageUrl} from './samePageUrl'; import styles from './style.module.scss'; @@ -104,7 +105,7 @@ export function PlatformSelector({ ) .map(platform => [ platform, - ...platform.guides.map(guide => ({ + ...sortRuntimesFirst(platform.key, platform.guides).map(guide => ({ ...guide, // add a reference to the parent platform instead of its key platform, @@ -298,6 +299,7 @@ export function PlatformSelector({ activeItemKey={currentPlatformKey} onPlatformExpand={onToggleExpand} dropdownStyle={dropdownStyle} + showGuideGroups={searchValue === ''} listOnly /> ))} @@ -402,6 +404,7 @@ export function PlatformSelector({ activeItemKey={currentPlatformKey} onPlatformExpand={onToggleExpand} dropdownStyle={dropdownStyle} + showGuideGroups={searchValue === ''} listOnly={false} /> ); @@ -435,6 +438,8 @@ type PlatformItemProps = { dropdownStyle?: boolean; listOnly?: boolean; onPlatformExpand?: (platformKey: string) => void; + /** Shows titles above the runtime guides and the guides after them. */ + showGuideGroups?: boolean; }; function PlatformItem({ platform, @@ -443,6 +448,7 @@ function PlatformItem({ onPlatformExpand: onExpand, dropdownStyle = false, listOnly = false, + showGuideGroups = false, }: PlatformItemProps) { const showCaret = (p: Platform) => p.guides.length > 0 || p.integrations.length > 0; @@ -461,6 +467,15 @@ function PlatformItem({ ? markLastGuide(platform.guides.length > 0 ? platform.guides : platform.integrations) : []; + const groupTitle = (index: number) => { + const title = showGuideGroups && guideGroupTitle(platform.key, guides, index); + return title ? ( + + ) : null; + }; + if (listOnly) { return ( @@ -508,13 +523,11 @@ function PlatformItem({ )}
- {guides.map(guide => ( - + {guides.map((guide, i) => ( + + {groupTitle(i)} + + ))} ); @@ -568,9 +581,12 @@ function PlatformItem({ - {guides.map(guide => { - return ; - })} + {guides.map((guide, i) => ( + + {groupTitle(i)} + + + ))} ); } diff --git a/src/components/platformSelector/style.module.scss b/src/components/platformSelector/style.module.scss index a985a568009b1..17383728b6a66 100644 --- a/src/components/platformSelector/style.module.scss +++ b/src/components/platformSelector/style.module.scss @@ -228,6 +228,16 @@ height: 80%; } +.guide-group-title { + margin-left: 1.5rem; + padding: 0.75rem 0.5rem 0.25rem; + font-size: 0.75rem; + font-weight: 500; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--foreground-secondary); +} + .item-indicator { position: absolute; left: 0.375rem; From fed84901ca935c9912385506644450029f9bd98d 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, 10 Nov 2026 16:40:06 +0000 Subject: [PATCH 014/141] Bump API schema to a484918a (#20693) 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 0ea0b3007585b..5fd70cce9e995 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 = '411ccf67994d010bf15816294b5658653129d3f5'; +const SENTRY_API_SCHEMA_SHA = 'a484918a719b688e52840d5a6caf80a9c51f892c'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 84416d652d16144b6e2c1508c871a51b3b2479f5 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, 10 Nov 2026 16:48:59 +0000 Subject: [PATCH 015/141] Bump API schema to e35efe6d (#20694) 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 5fd70cce9e995..70f3914cc273b 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 = 'a484918a719b688e52840d5a6caf80a9c51f892c'; +const SENTRY_API_SCHEMA_SHA = 'e35efe6d4d6a9e961eedcd22691edc27b6950a5e'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From ad690a4e0cc8d5a3bd9b36db5aeb09b50f50dc0a 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, 10 Nov 2026 17:21:02 +0000 Subject: [PATCH 016/141] Bump API schema to e58a5c0e (#20696) 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 70f3914cc273b..fe6f8416e4be2 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 = 'e35efe6d4d6a9e961eedcd22691edc27b6950a5e'; +const SENTRY_API_SCHEMA_SHA = 'e58a5c0e99c51b6c68645dd504cec2f14c3a1b5c'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From cb0aa94188f0d9b8fec59028d6afc12eb33396c8 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, 10 Nov 2026 17:29:44 +0000 Subject: [PATCH 017/141] Bump API schema to 4674fdc9 (#20697) 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 fe6f8416e4be2..54110de273305 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 = 'e58a5c0e99c51b6c68645dd504cec2f14c3a1b5c'; +const SENTRY_API_SCHEMA_SHA = '4674fdc91b3a0a10481ac649c8deed47c410f92e'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From fcbe244e88848def58b31d6971b7818968bc76af Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 10 Nov 2026 18:33:53 +0100 Subject: [PATCH 018/141] docs(godot): Document Web tunneling (#20596) Document the Web tunneling options and add a setup guide for forwarding Godot events through a user-chosen server endpoint to help avoid ad blockers. Include GDScript configuration, a JavaScript handler for POST requests, and delivery verification steps. --- .../platforms/godot/configuration/options.mdx | 30 +++++++++ .../godot/configuration/tunneling.mdx | 64 +++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 docs/platforms/godot/configuration/tunneling.mdx diff --git a/docs/platforms/godot/configuration/options.mdx b/docs/platforms/godot/configuration/options.mdx index 393107d70380c..ec7bc1e9aa26c 100644 --- a/docs/platforms/godot/configuration/options.mdx +++ b/docs/platforms/godot/configuration/options.mdx @@ -470,6 +470,36 @@ Applies only when `android.enable_anr_detection` is enabled, and only to the V2 +## Web Options + +These options configure Web-specific behavior, such as tunneling. Set them programmatically through `options.web`, or in the **Project Settings** under **Sentry > Web**. See Web Tunneling for client and server setup. + + + +Sends uploads through a server on your game's origin to help avoid ad blockers. Your server must handle the tunnel route and forward envelopes to Sentry. The `dsn` is still required. + +When disabled, uploads go directly to Sentry and the other tunnel options are ignored. + + + + + +The tunnel path on your game's origin, such as `/events`. An empty string derives a stable path from the DSN. Your server must handle the same path. + + + + + +Prefixes the tunnel path, including an explicitly configured `web.tunnel_path`. For example, `/game` with `/events` sends uploads to `/game/events`. An empty string adds no prefix. + + + + + +Appends `/` to the tunnel path, including a DSN-derived path. Enable this when your server route requires a trailing slash. + + + ## Hooks These options can be used to hook the SDK in various ways to customize the reporting of events. diff --git a/docs/platforms/godot/configuration/tunneling.mdx b/docs/platforms/godot/configuration/tunneling.mdx new file mode 100644 index 0000000000000..cd169f67a82af --- /dev/null +++ b/docs/platforms/godot/configuration/tunneling.mdx @@ -0,0 +1,64 @@ +--- +title: Web Tunneling +sidebar_order: 102 +description: Send Sentry events from Godot Web exports through your own server to help avoid ad blockers. +--- + +Ad blockers can prevent your Web game from sending events to Sentry. Tunneling helps avoid this by sending uploads through a route on your game's origin, where your server forwards them to Sentry. + +Tunneling applies only to Web exports. Your server must provide an endpoint that forwards uploads to Sentry; enabling tunneling in Godot doesn't create that endpoint. + +## Configure the Game + +In **Project Settings > Sentry > Web**, enable tunneling and set the tunnel path to `/events`. Keep your Sentry DSN configured as usual. Leave **Base Path** empty and **Trailing Slash** disabled for this example. + +Alternatively, follow the programmatic initialization instructions and set the options in your initialization callback: + +```GDScript +SentrySDK.init(func(options: SentryOptions) -> void: + options.dsn = "___PUBLIC_DSN___" + options.web.enable_tunnel = true + options.web.tunnel_path = "/events" +) +``` + +This sends uploads to `/events` on the game's origin. For example, a game at `https://example.com/game/` sends uploads to `https://example.com/events`. + +## Configure the Server + +Your server must accept uploads at `/events` and forward them to Sentry. For a JavaScript server that uses Fetch API `Request` and `Response` objects, install `@sentry/core` and use its `handleTunnelRequest` helper: + +```javascript +import { handleTunnelRequest } from "@sentry/core"; + +export default { + async fetch(request) { + if ( + request.method === "POST" && + new URL(request.url).pathname === "/events" + ) { + return handleTunnelRequest({ + request, + allowedDsns: ["___PUBLIC_DSN___"], + }); + } + + return new Response("Not found", { status: 404 }); + }, +}; +``` + +Set `allowedDsns` to the same DSN configured in Godot. + +Preserve the incoming `Content-Length` header when creating the Fetch API request. The handler returns `411 Length required` when this header is missing. Configure request size limits in your server or hosting platform. + +The handler validates the envelope's DSN and forwards it to Sentry. + +## Verify the Setup + +To check that events reach Sentry through your tunnel: + +1. Export and run your game on Web. +2. Capture a test event with `SentrySDK.capture_message("Tunnel test")`. +3. In the browser's network panel, confirm that the upload goes to your tunnel route and receives a successful response. +4. Confirm that the event appears in Sentry. A successful HTTP response alone doesn't prove that your server forwarded the envelope. From 84d9832452f966960248531d95912330b1048218 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Tue, 10 Nov 2026 18:34:33 +0100 Subject: [PATCH 019/141] docs(godot): Document automatic performance metrics (#20660) Documents automatic frame, rendering, and memory metrics introduced in Godot SDK 2.4.0, plus network metrics coming in 2.5.0. Covers configuration in Project Settings, GDScript, and C#, along with metric definitions, attributes, and collection limitations. Links the general configuration reference to the Application Metrics guide. --- .../platforms/godot/configuration/options.mdx | 6 + docs/platforms/godot/metrics/index.mdx | 125 +++++++++++++++++- 2 files changed, 130 insertions(+), 1 deletion(-) diff --git a/docs/platforms/godot/configuration/options.mdx b/docs/platforms/godot/configuration/options.mdx index ec7bc1e9aa26c..5fe81105ac684 100644 --- a/docs/platforms/godot/configuration/options.mdx +++ b/docs/platforms/godot/configuration/options.mdx @@ -276,6 +276,12 @@ options.SetBeforeSendLog(log => ## Metrics Options + + +Configures automatic performance metrics. All automatic metrics are disabled by default and don't affect manually emitted metrics. Configure them in the Project Settings under **Sentry > Auto Metrics** or through `options.auto_metrics` during initialization. See Application Metrics Options for available settings and configuration examples. + + + **Deprecated:** This compatibility option is a no-op: it always returns `true`, and assigning it has no effect. It will be removed in version 3.0. diff --git a/docs/platforms/godot/metrics/index.mdx b/docs/platforms/godot/metrics/index.mdx index d55b55792a0c8..0227d27af0a56 100644 --- a/docs/platforms/godot/metrics/index.mdx +++ b/docs/platforms/godot/metrics/index.mdx @@ -1,7 +1,7 @@ --- title: Set Up Metrics sidebar_title: Application Metrics -description: "Metrics let you to send, view, and query counters, gauges, and distributions from your Godot Engine game. Use these to track application health and drill down into related traces, logs, and errors." +description: "Metrics allow you to send, view, and query counters, gauges, and distributions from your Godot Engine game to track application health and drill down into related traces, logs, and errors." sidebar_order: 5700 new: true --- @@ -14,8 +14,131 @@ new: true +## Automatic Metrics + +Automatic metrics help you compare frame performance, rendering load, memory use, and multiplayer connectivity across devices and scenes. Automatic metrics are disabled by default and independent of metrics you send manually. + +Enable automatic metrics in the **Project Settings** under **Sentry** > **Auto Metrics**, or configure `options.auto_metrics` during programmatic initialization. See [Options](#options) for available settings. + +Collection pauses when the application loses focus or the operating system pauses it. Headless applications ignore focus changes but still respect OS pause. `SceneTree.paused` and `Engine.time_scale` don't affect collection. + +Automatic metrics include the following attributes when available, in addition to the [default attributes](#default-attributes) attached to every metric. These aren't added to manually emitted metrics. + +| Attribute | Description | +| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `gpu.name` | GPU model name; omitted in headless mode | +| `cpu.cores` | Logical CPU core count reported by Godot | +| `ram.gb` | Physical RAM reported by the OS, in GiB; unavailable on Web | +| `res.x`, `res.y` | Root viewport target width and height in pixels, before window stretching and after 3D scaling; omitted in headless mode | +| `scene` | Full resource path of the current scene, such as `res://levels/forest.tscn`; falls back to the scene node name if no resource path is available | + +Use these attributes to group performance data by hardware, resolution, or scene. + +### Frame Time and FPS + + + +Use frame metrics to track frame duration and frame rate across players' devices. + +| Metric | Type | Description | +| ---------------------- | ----------------- | ---------------------------------------------- | +| `game.perf.frame_time` | Distribution (ms) | Sampled elapsed time between process callbacks | +| `game.perf.fps` | Gauge | Engine-reported frames per second | + +The SDK randomly selects one frame from each collection interval and reports its frame time, including time spent waiting for VSync or frame limiting. Sampling may miss brief hitches. + +### Rendering + + + +Rendering metrics help identify scenes with high rendering load or video memory use. + +| Metric | Type | Description | +| ----------------------------------- | ------------- | --------------------------------------------------------------------------------- | +| `game.perf.render.draw_calls` | Gauge | Draw calls in the last rendered frame | +| `game.perf.render.primitives` | Gauge | Vertices or indices rendered in the last frame, including depth and shadow passes | +| `game.perf.render.video_mem_used` | Gauge (bytes) | Total video memory used, including texture, buffer, and other allocations | +| `game.perf.render.texture_mem_used` | Gauge (bytes) | Texture memory used | +| `game.perf.render.buffer_mem_used` | Gauge (bytes) | Render buffer memory used | + +### Memory + + + +Memory metrics help track process memory use and growth in object and node counts. Process memory usage is unavailable on Web; object and node counts are still collected. + +| Metric | Type | Description | +| ------------------------ | ------------- | ------------------------------------------- | +| `game.perf.used_memory` | Gauge (bytes) | RAM used by the game process | +| `game.perf.object_count` | Gauge | Instantiated objects, including nodes | +| `game.perf.node_count` | Gauge | Nodes in the scene tree, including its root | + +### Network + + + +Network metrics help diagnose multiplayer latency and traffic volume. Network metrics use only the default `SceneTree` multiplayer API; custom multiplayer APIs assigned to subtrees aren't monitored. Client, server, and mesh sessions are supported. No network metrics are emitted without an active multiplayer connection. + +Peer counts work across all transports. All other measurements require ENet. + +| Metric | Type | Description | +| --------------------------------- | ------------- | -------------------------------------------------------------------------- | +| `game.perf.net.num_peers` | Gauge | Connected remote peers, excluding this instance; server and mesh only | +| `game.perf.net.ping` | Gauge (ms) | Client round-trip time to the server | +| `game.perf.net.ping_peer_avg` | Gauge (ms) | Average peer round-trip time; server and mesh only | +| `game.perf.net.ping_peer_max` | Gauge (ms) | Highest peer round-trip time; server and mesh only | +| `game.perf.net.packet_loss_ratio` | Gauge (ratio) | ENet's estimated outgoing packet-loss ratio toward the server; client only | +| `game.perf.net.in_rate` | Gauge (bytes) | Bytes received per second; client and server only | +| `game.perf.net.out_rate` | Gauge (bytes) | Bytes sent per second; client and server only | +| `game.perf.net.in_packets` | Gauge | UDP datagrams received per second; client and server only | +| `game.perf.net.out_packets` | Gauge | UDP datagrams sent per second; client and server only | + +Ping includes Godot's network-processing delays, so it reflects latency experienced by the game rather than network delay alone. Traffic rates include ENet protocol traffic and retransmissions; packet rates count UDP datagrams, not RPCs or game messages. + + + Traffic collection resets ENet's shared byte and packet counters. Other code + reading and resetting those counters affects these measurements, and vice + versa. + + ## Options +Configure these properties on `options.auto_metrics`, or use the corresponding settings in the **Project Settings** under **Sentry > Auto Metrics**. Each interval applies only when the corresponding metrics are enabled. + +| Option | Default | Available Since | Description | +| -------------------------------- | ------- | --------------- | ----------------------------------------- | +| `enable_frame_metrics` | `false` | 2.4.0 | Collect frame time and FPS | +| `enable_rendering_metrics` | `false` | 2.4.0 | Collect rendering metrics | +| `enable_memory_metrics` | `false` | 2.4.0 | Collect memory, object, and node metrics | +| `enable_network_metrics` | `false` | 2.5.0 | Collect network metrics | +| `frame_metrics_interval_sec` | `1.0` | 2.4.0 | Frame collection interval, in seconds | +| `rendering_metrics_interval_sec` | `1.0` | 2.4.0 | Rendering collection interval, in seconds | +| `memory_metrics_interval_sec` | `60.0` | 2.4.0 | Memory collection interval, in seconds | +| `network_metrics_interval_sec` | `10.0` | 2.5.0 | Network collection interval, in seconds | + +For example, enable automatic metrics and adjust the memory interval during initialization: + +```GDScript {tabTitle:GDScript} {mdExpandTabs} +SentrySDK.init(func(options: SentryOptions) -> void: + options.auto_metrics.enable_frame_metrics = true + options.auto_metrics.enable_rendering_metrics = true + options.auto_metrics.enable_memory_metrics = true + options.auto_metrics.enable_network_metrics = true + options.auto_metrics.memory_metrics_interval_sec = 30.0 +) +``` + +```csharp {tabTitle:C#} +SentrySdk.Init(options => +{ + options.AutoMetrics.EnableFrameMetrics = true; + options.AutoMetrics.EnableRenderingMetrics = true; + options.AutoMetrics.EnableMemoryMetrics = true; + options.AutoMetrics.EnableNetworkMetrics = true; + options.AutoMetrics.MemoryMetricsIntervalSec = 30.0; +}); +``` + ## Default Attributes From 70e38c34a470f0ecea70904b5d188d0e04f7c85f Mon Sep 17 00:00:00 2001 From: Abdullah Khan <60121741+Abdkhan14@users.noreply.github.com> Date: Tue, 10 Nov 2026 12:41:17 -0500 Subject: [PATCH 020/141] docs(ai): Report onboarding progress through the Sentry CLI (#20650) The Getting Started agent guide only reported onboarding progress through the Sentry MCP server, and only when an onboarding code appeared in the user's first message. Since [#130292](https://github.com/getsentry/sentry/pull/130292) merged, handoff agents arrive at this guide directly after CLI login, with the run code in the handoff guide rather than in the user's first message. That left CLI-only handoff agents with no progress instructions at all. This adds a `sentry api` route to the Onboarding Progress section so CLI agents can report, widens the code trigger to also accept a code from "the Sentry handoff guide that sent you here", renames `connect_mcp` to `connect_agent` in the stage table, and drops the MCP-only framing throughout (heading, intro, field prefixes, stop conditions). Refs VDY-366 **Merge gates** - sentry PR [#130281](https://github.com/getsentry/sentry/pull/130281) (`connect_agent` alias) deployed to all cells - sentry PR [#130290](https://github.com/getsentry/sentry/pull/130290) (`extra.method` on connect) deployed to all cells - toolkit PR [#2063](https://github.com/getsentry/toolkit/pull/2063) (MCP accepts `connect_agent`) deployed to hosted MCP **Handoff side** The one-sentence run code handover goes in Evan's [#130263](https://github.com/getsentry/sentry/pull/130263). **Verification** - No `update.` prefix remains in the section; `connect_mcp` and the old heading are gone - Route table, heading, intro, CLI/MCP bullets, stop codes, and stage table all checked - Prettier, typos, lychee, and trailing-slashes need to run locally (node_modules not installed in sandbox) --------- Co-authored-by: Cursor Co-authored-by: Evan Purkhiser --- docs/ai/agent-setup/get-started.mdx | 34 +++++++++++++++++++---------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/docs/ai/agent-setup/get-started.mdx b/docs/ai/agent-setup/get-started.mdx index 81d27efe979be..03019fc48208a 100644 --- a/docs/ai/agent-setup/get-started.mdx +++ b/docs/ai/agent-setup/get-started.mdx @@ -44,7 +44,7 @@ Each step that touches Sentry, by route: | Get the DSN | `sentry dsn list` | `find_dsns` | The user pastes it | | Install the SDK | The platform's docs page | The platform's docs page | The platform's docs page | | Confirm the error arrived | `sentry issue list`, `sentry issue view` | `search_issues`, `search_events`, `get_sentry_resource` | Ask the user to check | -| Onboarding progress | Through the MCP server, if it's connected | `onboarding_status_update` | None | +| Onboarding progress | `sentry api` | `onboarding_status_update` | None | ## Step 3: Identify the Platform @@ -136,26 +136,38 @@ Offer follow-ups and let the user pick. Don't start them on your own. - Production was raised with the user: the DSN, sample rate, `release`, and `environment` are set for it, or there's an agreed next step. - Readable production stack traces were addressed: source maps or debug symbols are wired in, or the user knows what they need. -## Onboarding Progress (Through the Sentry MCP Server) +## Onboarding Progress -Sentry's onboarding page can show the progress of a setup like this one. The updates go through the Sentry MCP server, so send them when it's connected, even if the CLI does the rest of the setup. They only apply when the user's first message contains an onboarding code: a random-looking 10-character ASCII alphanumeric token set apart from the prose, such as `[abcd12efg0]` or `Onboarding: abcd12efg0`. Without one, make no progress calls, and never ask for or guess a code later. +Sentry's onboarding page can show the progress of a setup like this one. Send the updates through the route you picked in Step 2: `sentry api` on the CLI route, or the `onboarding_status_update` tool on the MCP route. The no-tools route sends none. They only apply when the user's first message, or the Sentry handoff guide that sent you here, contains an onboarding code: a random-looking 10-character ASCII alphanumeric token set apart from the prose, such as `[abcd12efg0]`, `Onboarding: abcd12efg0`, or `run code: abcd12efg0`. Without one, make no progress calls, and never ask for or guess a code later. Use the organization slug that came with the code. - **Keep the code to yourself.** Never mention, quote, or explain it unless the user asks about it, and don't let it change anything you say. -- **Find the tool.** Call `search_sentry_tools` with the exact query `onboarding_status_update`. If it returns that tool, its input schema is the contract for every call and wins over anything on this page. Call it through `execute_sentry_tool(name='onboarding_status_update', arguments=...)` with the code as `runToken`, and `stage`, `status`, `runStatus`, and `eventNote` inside the required `update` object. Stage metadata goes in `update.extra`. +- **Sentry CLI.** At each stage boundary, run: + + ```sh + sentry api organizations//onboarding/agent/status/ -X POST -F schemaVersion=1 \ + -f 'runToken=' \ + -f stage= \ + -f status= \ + -f 'eventNote=' + ``` + + Add each other field as its own `-f`: `-f runStatus=completed`, `-f 'extra[method]=cli'`, and one `-f 'extra[projectSlugs][]='` or `-f 'extra[issueIds][]='` for each slug or ID. Only `connect_agent`, `create_project`, and `receive_verification_error` take `extra`. + +- **Sentry MCP.** Call `search_sentry_tools` with the exact query `onboarding_status_update`. If it returns that tool, its input schema is the contract for every call and wins over anything on this page. Call it through `execute_sentry_tool(name='onboarding_status_update', arguments=...)` with the code as `runToken`, and `stage`, `status`, `runStatus`, and `eventNote` inside the required `update` object. Stage metadata goes in `update.extra` (MCP only). - **Call it silently.** Make the call at the right point with no narration of the call or its reply. If the user asks what it does, say it updates the onboarding page in Sentry for this setup. -- **Keep notes minimal.** Every call needs an `update.eventNote` saying what the stage is doing or did, within the schema's limit. Never include file contents, repository paths, terminal output, event payloads, MCP results, secrets, or personal or customer information. +- **Keep notes minimal.** Every call needs an `eventNote` saying what the stage is doing or did, within the schema's limit. Never include file contents, repository paths, terminal output, event payloads, MCP results, secrets, or personal or customer information. - **Statuses:** `active` (started or resumed), `waiting` (blocked on the user or permission), `completed`, `skipped` (only where a stage below allows it), and `failed`. After a `failed` stage, send `active` again when you retry. Never send `bypassed`; a later stage marks skipped earlier ones itself, so a missed call never needs replaying. -- **Run status:** send `update.runStatus: completed` only when `check_stack_trace_quality` finishes, and `update.runStatus: failed` only when the whole setup can't continue. -- **Never let it block setup.** If a call fails on invalid parameters and the error names the mistake, fix it and retry once. If the tool is missing or keeps failing, or a reply says `continueUpdates: false` or `Continue updates: no`, stop sending updates for the rest of the session and carry on. A failed progress call is never a setup failure. +- **Run status:** send `runStatus: completed` only when `check_stack_trace_quality` finishes, and `runStatus: failed` only when the whole setup can't continue. +- **Never let it block setup.** If a call fails on invalid parameters and the error names the mistake, fix it and retry once. If the tool is missing or keeps failing, a reply says `continueUpdates: false` or `Continue updates: no`, or a `sentry api` call fails with 404, 409, or 410, stop sending updates for the rest of the session and carry on. A failed progress call is never a setup failure. | Stage | When | | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `connect_mcp` | `completed` as soon as an MCP call such as `find_organizations` succeeds. | +| `connect_agent` | `completed` as soon as Step 2 confirms your route: `sentry auth status` shows you're logged in (CLI route, with `-f 'extra[method]=cli'`), or an MCP call such as `find_organizations` succeeds (the tool records the method itself). | | `analyze_project` | `active` before you inspect the repository (Step 2), `waiting` while you ask the user to confirm the platform, `completed` once the platform and current setup are clear (Step 3). If the project already uses Sentry, `completed` before you hand off. | -| `create_project` | `waiting` before you ask to create a project, `active` while you pick or create it, each usable project slug in `update.extra.projectSlugs`, `completed` once every planned project has a DSN. For one existing project, `completed` with its slug and `update.eventNote: Project already existed.` | +| `create_project` | `waiting` before you ask to create a project, `active` while you pick or create it, each usable project slug in `extra.projectSlugs`, `completed` once every planned project has a DSN. For one existing project, `completed` with its slug and `eventNote: Project already existed.` | | `instrument_app` | `active` just before you change SDK files, `completed` once the SDK is installed and initialized (Step 5). | | `plan_test_error` | `active` while you plan the test error, `waiting` for input or permission, `completed` when the trigger is ready. | | `send_verification_error` | `active` before you trigger it, `waiting` if it can't run yet, `completed` once it's triggered. | -| `receive_verification_error` | `active` or `waiting` while you check, each confirmed issue ID (never event IDs) in `update.extra.issueIds`, `completed` once every project has a confirmed result. | +| `receive_verification_error` | `active` or `waiting` while you check, each confirmed issue ID (never event IDs) in `extra.issueIds`, `completed` once every project has a confirmed result. | | `prepare_production` | `active` when production work starts (Step 7), `waiting` before you ask to deploy, `completed` once the configuration is ready or the user picks a next step. If deployment waits, say the agreed next step in the note. | -| `check_stack_trace_quality` | `active` before you check (Step 8), `completed` with `update.runStatus: completed` once the checks and accepted work are done or the user declines. `skipped` with `update.runStatus: completed` only when the platform needs no source maps or debug files. If the project already used Sentry, `skipped` with `update.runStatus: completed` and `update.eventNote: Sentry is already configured for this project.` | +| `check_stack_trace_quality` | `active` before you check (Step 8), `completed` with `runStatus: completed` once the checks and accepted work are done or the user declines. `skipped` with `runStatus: completed` only when the platform needs no source maps or debug files. If the project already used Sentry, `skipped` with `runStatus: completed` and `eventNote: Sentry is already configured for this project.` | From ce2d6f05e27d01f0df0a5de9174b49006bd6611b 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, 10 Nov 2026 20:25:12 +0000 Subject: [PATCH 021/141] Bump API schema to 35520634 (#20701) 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 54110de273305..dcde5e9babc34 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 = '4674fdc91b3a0a10481ac649c8deed47c410f92e'; +const SENTRY_API_SCHEMA_SHA = '35520634a4ae044bcf4760c003403eccbfd22da0'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From dc0f73af623c16127c5aeb8ab091cccbd96576ee 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, 10 Nov 2026 20:33:36 +0000 Subject: [PATCH 022/141] Bump API schema to c17b2fba (#20702) 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 dcde5e9babc34..9a7ee4a885e1a 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 = '35520634a4ae044bcf4760c003403eccbfd22da0'; +const SENTRY_API_SCHEMA_SHA = 'c17b2fbad3fab35064020fc021b004d282a5be0c'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From ec1380665f021c0ec84893dfa043a58041abcdfc Mon Sep 17 00:00:00 2001 From: Alex Krawiec Date: Tue, 10 Nov 2026 13:01:57 -0800 Subject: [PATCH 023/141] perf(css): Ship only the Radix color scales we use (#20700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Lighthouse lists render-blocking CSS as the top performance issue. Most of the cost is one stylesheet, about 89 KiB over the network, and most of that is the all-in-one `@radix-ui/themes/styles.css`. That file ships all 30 Radix color scales, and the site uses 7 of them. This PR imports Radix Themes in parts so we only ship the colors we use: - Replaced `@import '@radix-ui/themes/styles.css'` in `app/globals.css` with Radix's split files: `tokens/base.css`, `components.css` and `utilities.css`. - Import only the 7 color scales the site uses: `gray`, `sand` (gray color), `iris` (accent color), `amber` (callouts), and `red`, `green` and `yellow` (content separator labels). - Kept the same import order as `styles.css`. I checked that every selector in `styles.css` is still covered by the split files, apart from the color scales we dropped on purpose. - Added a comment saying any new Radix color has to be added to the import list. Otherwise it renders unstyled. Expected savings: about 23 KiB compressed from the main stylesheet, roughly a quarter of it. This is a modest gain, likely tens of milliseconds to first paint on mobile, not a big jump in score. Preview: https://sentry-docs-git-coolguyzone-perfradix-color-tokens.sentry.dev/ ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 --- app/globals.css | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/globals.css b/app/globals.css index 0bf7f57a9d819..18c1e69c0a170 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,4 +1,19 @@ -@import '@radix-ui/themes/styles.css'; +/* + * Radix Themes, split up so we only ship the color scales we use. The all-in-one + * styles.css carries all 30 scales and was the bulk of our render-blocking CSS. + * Using a new Radix color (accentColor, color="..." or var(---N))? Add + * its scale here, or it renders unstyled. Order mirrors styles.css. + */ +@import '@radix-ui/themes/tokens/colors/gray.css'; +@import '@radix-ui/themes/tokens/colors/sand.css'; +@import '@radix-ui/themes/tokens/colors/amber.css'; +@import '@radix-ui/themes/tokens/colors/green.css'; +@import '@radix-ui/themes/tokens/colors/iris.css'; +@import '@radix-ui/themes/tokens/colors/red.css'; +@import '@radix-ui/themes/tokens/colors/yellow.css'; +@import '@radix-ui/themes/tokens/base.css'; +@import '@radix-ui/themes/components.css'; +@import '@radix-ui/themes/utilities.css'; @tailwind base; @tailwind components; From ec47fe13341b02e267f0f148a532091d09d549cf 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, 10 Nov 2026 21:04:39 +0000 Subject: [PATCH 024/141] Bump API schema to a6c23b39 (#20703) 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 9a7ee4a885e1a..d5a3ce2753fe7 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 = 'c17b2fbad3fab35064020fc021b004d282a5be0c'; +const SENTRY_API_SCHEMA_SHA = 'a6c23b3976889b799580081fe0c4540dd1780548'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b4a555493ee405954746ef2e52b1057b3a3ebffd 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, 10 Nov 2026 21:13:37 +0000 Subject: [PATCH 025/141] Bump API schema to 1ef9bb60 (#20704) 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 d5a3ce2753fe7..2c3360222b672 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 = 'a6c23b3976889b799580081fe0c4540dd1780548'; +const SENTRY_API_SCHEMA_SHA = '1ef9bb60244c915f000f53251e9c858e0c303c21'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 38a66b76dfceb06e26853127011b937cf2ed9460 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Tue, 10 Nov 2026 13:19:05 -0800 Subject: [PATCH 026/141] docs(dotnet): Correct quick-start setup and verification (#20240) Follow-up to #19990: correct setup and verification across the base .NET quick start and all 19 integration guides, checked against SDK 6.12.1. Most setup inaccuracies predate the template migration. This also corrects the new claim that `Sentry.Profiling` installs on .NET Framework and adds the tracing option missing from the WinForms VB examples. - Fix package prerequisites, missing imports and terminators, ASP.NET Core and MAUI compatibility guidance, EF6 application-lifetime disposal, and the Google Cloud Functions user-factory interface. - Separate AppKit/macOS initialization from iOS and Mac Catalyst, scope Cocoa features to supported targets, and mark native tracing on Apple and Android as opt-in through `Native.EnableTracing`. - Use the OTLP exporter and OpenTelemetry sampling for the Blazor Server example; remove duplicate logging registration from Blazor WebAssembly. - Clarify which integration initializes Sentry, enable structured logs where needed, and verify logging through the configured provider or appender. - Add shared verification steps for logs, metrics, and traces, including manual transactions where sampling alone doesn't create tracing data. Validation: 31 focused documentation tests and all applicable pre-commit checks passed, including typo, external-link, and trailing-slash checks. All 22 changed MDX files compiled through the repository pipeline with website telemetry disabled in the temporary validation harness; shared includes, JSON examples, and the new OTLP link resolved. The .NET SDK is unavailable locally, so C#/VB snippets were source-checked but not compiled or run. ## 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+ --------- Co-authored-by: Shannon Anahata Co-authored-by: Ricardo Colombo Oliveira Co-authored-by: Alex Krawiec Co-authored-by: James Crosswell Co-authored-by: Claude Opus 5.5 --- .../platforms/dotnet/guides/android/index.mdx | 13 ++- docs/platforms/dotnet/guides/apple/index.mdx | 65 ++++++++++++--- docs/platforms/dotnet/guides/aspnet/index.mdx | 15 ++-- .../dotnet/guides/aspnetcore/index.mdx | 9 +- .../dotnet/guides/aws-lambda/index.mdx | 2 +- .../guides/azure-functions-worker/index.mdx | 2 +- .../dotnet/guides/blazor-server/index.mdx | 34 +++++--- .../guides/blazor-webassembly/index.mdx | 11 +-- .../dotnet/guides/entityframework/index.mdx | 28 ++++--- .../guides/extensions-logging/index.mdx | 82 ++++++++++--------- .../guides/google-cloud-functions/index.mdx | 14 ++-- .../platforms/dotnet/guides/log4net/index.mdx | 50 ++++++++++- docs/platforms/dotnet/guides/maui/index.mdx | 6 +- docs/platforms/dotnet/guides/nlog/index.mdx | 41 ++++++---- .../platforms/dotnet/guides/serilog/index.mdx | 35 ++++++-- .../dotnet/guides/winforms/index.mdx | 35 +++++--- docs/platforms/dotnet/guides/winui/index.mdx | 6 +- docs/platforms/dotnet/guides/wpf/index.mdx | 6 +- .../platforms/dotnet/guides/xamarin/index.mdx | 5 +- docs/platforms/dotnet/index.mdx | 6 +- .../getting-started-verify-data/dotnet.mdx | 9 ++ .../getting-started-verify-tracing/dotnet.mdx | 10 +++ 22 files changed, 335 insertions(+), 149 deletions(-) create mode 100644 platform-includes/getting-started-verify-data/dotnet.mdx create mode 100644 platform-includes/getting-started-verify-tracing/dotnet.mdx diff --git a/docs/platforms/dotnet/guides/android/index.mdx b/docs/platforms/dotnet/guides/android/index.mdx index 275826bcbcc2c..3d2aa82fedf3d 100644 --- a/docs/platforms/dotnet/guides/android/index.mdx +++ b/docs/platforms/dotnet/guides/android/index.mdx @@ -32,7 +32,7 @@ On .NET for Android, you also get: - [Capture Application Not Responding (ANR) errors](/platforms/android/configuration/app-not-respond/) when the app is unresponsive - Automatically [attach screenshots to Java exceptions](/platforms/android/enriching-events/screenshots/) - Automatic breadcrumbs for Activity lifecycle, App lifecycle, System and Network events and User Interactions - - Automatic [Activity lifecycle tracing](/platforms/android/tracing/instrumentation/automatic-instrumentation/#activity-instrumentation) and [User Interaction tracing](/platforms/android/tracing/instrumentation/automatic-instrumentation/#user-interaction-instrumentation) + - Opt-in automatic [Activity lifecycle tracing](/platforms/android/tracing/instrumentation/automatic-instrumentation/#activity-instrumentation) and [User Interaction tracing](/platforms/android/tracing/instrumentation/automatic-instrumentation/#user-interaction-instrumentation) through the embedded Android SDK. See `Native.EnableTracing`. - Device Root checking - Native crash reporting for Android, leveraging our [Android NDK](/platforms/android/configuration/using-ndk/) - Automatic session tracking and [release health](/product/releases/) @@ -46,7 +46,12 @@ The snippet also turns on: Don't need a feature? Remove its options from the snippet. -```csharp +```csharp {filename:MainActivity.cs} +using Android.App; +using Android.OS; +using Sentry; +using Sentry.Android; + [Activity(Label = "@string/app_name", MainLauncher = true)] public class MainActivity : Activity { @@ -66,7 +71,7 @@ public class MainActivity : Activity #endif // Android specific .NET features are under the Android properties: - options.Android.LogCatIntegration = LogCatIntegrationType.Errors; // Get logcat logs for both handled and unhandled errors; default is unhandled only + options.Android.LogCatIntegration = LogCatIntegrationType.Errors; // Attach logcat logs to handled and unhandled errors; default is None. options.Android.LogCatMaxLines = 1000; // Defaults to 1000 // Native Android SDK options are available via options.Native @@ -163,7 +168,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/docs/platforms/dotnet/guides/apple/index.mdx b/docs/platforms/dotnet/guides/apple/index.mdx index cacafbc17d0c4..025420afd9fd2 100644 --- a/docs/platforms/dotnet/guides/apple/index.mdx +++ b/docs/platforms/dotnet/guides/apple/index.mdx @@ -22,30 +22,35 @@ Install-Package Sentry -Version {{@inject packages.version('sentry.dotnet') }} **Error Monitoring** starts working as soon as you call `SentrySdk.Init()`. **Logs** sent through `SentrySdk.Logger` and **Application Metrics** need no extra configuration. You'll learn how to send them in [Send Logs](#send-logs) and [Send Application Metrics](#send-application-metrics-). -This guide also enables **Tracing**, **Profiling**, and **Session Replay** (experimental). +This guide also enables **Tracing**. The iOS and Mac Catalyst setup enables **Profiling**, and the iOS setup enables experimental **Session Replay**. -On .NET for iOS, macOS, and Mac Catalyst, you also get: +On all three platforms, you get the features of the main [.NET SDK](/platforms/dotnet/) for your managed code. On iOS and Mac Catalyst, the embedded [Cocoa SDK](/platforms/apple/) also provides: -- All the features of our main [.NET SDK](/platforms/dotnet/), for your managed code -- Native crash reporting for Apple platforms, leveraging our [Cocoa SDK](/platforms/apple/) including: +- Native crash reporting, including: - Automatically [attach screenshots to Native exceptions](/platforms/apple/guides/ios/configuration/options/#attachScreenshot) - Detect [App Hangs](/platforms/apple/configuration/app-hangs/) - - [Automatic performance tracing](/platforms/apple/tracing/) + - Opt-in [automatic performance tracing](/platforms/apple/tracing/). See `Native.EnableTracing`. - [Automatic breadcrumbs](/platforms/apple/enriching-events/breadcrumbs/#automatic-breadcrumbs) - [Swizzling](/platforms/apple/configuration/swizzling/) - Automatic session tracking and [release health](/product/releases/) -In your `AppDelegate.cs` file, call `SentrySdk.Init` in the `FinishedLaunching` event and include any options you would like to set. The `Dsn` is the only required parameter. +### iOS and Mac Catalyst + +In your `AppDelegate.cs` file, call `SentrySdk.Init` in `FinishedLaunching`. Keep your existing window and application setup after the Sentry initialization. The `Dsn` is the only required setting. The snippet also turns on: - Tracing: via `TracesSampleRate` - Profiling: via `ProfilesSampleRate`. On iOS and Mac Catalyst, the SDK adds the native profiling integration automatically, so you don't need the `Sentry.Profiling` package. -- Session Replay: via `Native.ExperimentalOptions.SessionReplay` +- Session Replay on iOS: via `Native.ExperimentalOptions.SessionReplay` Don't need a feature? Remove its options from the snippet. -```csharp +```csharp {filename:AppDelegate.cs} +using Foundation; +using Sentry; +using UIKit; + [Register("AppDelegate")] public class AppDelegate : UIApplicationDelegate { @@ -75,9 +80,11 @@ public class AppDelegate : UIApplicationDelegate // https://docs.sentry.io/platforms/apple/guides/ios/configuration/options/#attachScreenshot options.Native.AttachScreenshot = true; - // Session Replay is currently available via the ExperimentalOptions +#if IOS + // Session Replay is available on iOS via ExperimentalOptions. options.Native.ExperimentalOptions.SessionReplay.OnErrorSampleRate = 1.0; options.Native.ExperimentalOptions.SessionReplay.SessionSampleRate = 1.0; +#endif options.SetBeforeSend(evt => { @@ -103,11 +110,43 @@ public class AppDelegate : UIApplicationDelegate For a full list of native options, see Apple Native Options. +### macOS + +For an AppKit application targeting `net*-macos`, initialize Sentry in `NSApplicationDelegate.DidFinishLaunching`. This target doesn't include the Cocoa integration's `options.Native` or `OnCrashedLastRun` APIs. + +```csharp {filename:AppDelegate.cs} +using AppKit; +using Foundation; +using Sentry; + +[Register("AppDelegate")] +public class AppDelegate : NSApplicationDelegate +{ + public override void DidFinishLaunching(NSNotification notification) + { + SentrySdk.Init(options => + { + options.Dsn = "___PUBLIC_DSN___"; + options.SendDefaultPii = true; + options.IsGlobalModeEnabled = true; + options.TracesSampleRate = 1.0; +#if DEBUG + options.Debug = true; +#endif + }); + + // Keep the rest of your application startup here. + } +} +``` + +For custom transactions, see [Verify Your Setup](#verify-your-setup). The Cocoa profiling and replay configuration above doesn't apply to this target. + ### Options The .NET for iOS, macOS, and Mac Catalyst integration is part of [Sentry](/platforms/dotnet/). Please refer to the documentation for that package for information about platform agnostic options. -For configuration of the embedded Sentry Cocoa SDK, see Apple Native Options. +For configuration of the embedded Sentry Cocoa SDK on iOS and Mac Catalyst, see Apple Native Options. ## Send Logs @@ -141,9 +180,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps @@ -152,4 +193,4 @@ At this point, you should have integrated Sentry into your .NET for iOS, macOS, - Explore [practical guides](/get-started/guides/) on what to monitor, log, track, and investigate after setup - Learn how to [manually capture errors](/platforms/dotnet/usage/) - Explore [Tracing](/platforms/dotnet/tracing/) -- Configure the embedded Cocoa SDK with Apple Native Options +- On iOS and Mac Catalyst, configure the embedded Cocoa SDK with Apple Native Options diff --git a/docs/platforms/dotnet/guides/aspnet/index.mdx b/docs/platforms/dotnet/guides/aspnet/index.mdx index a49d3a19ad296..9c4255fbcd01d 100644 --- a/docs/platforms/dotnet/guides/aspnet/index.mdx +++ b/docs/platforms/dotnet/guides/aspnet/index.mdx @@ -37,16 +37,15 @@ The snippet also turns on: Don't need a feature? Remove its options from the snippet. -```csharp +```csharp {filename:Global.asax.cs} using System; using System.Web; +using Sentry; using Sentry.AspNet; -using Sentry.EntityFramework; // If you also installed Sentry.EntityFramework -using Sentry.Extensibility; public class MvcApplication : HttpApplication { - private IDisposable _sentry; + private static IDisposable _sentry; protected void Application_Start() { @@ -64,8 +63,6 @@ public class MvcApplication : HttpApplication // We recommend reducing this value in production. options.TracesSampleRate = 1.0; - // If you also installed the Sentry.EntityFramework package - options.AddEntityFramework(); options.AddAspNet(); }); } @@ -90,6 +87,8 @@ public class MvcApplication : HttpApplication } ``` +If you also use Entity Framework 6, install `Sentry.EntityFramework` and add `options.AddEntityFramework()` to the same initialization callback. See the [Entity Framework guide](/platforms/dotnet/guides/entityframework/) for setup details. + ### Capturing the affected user When opting-in to [SendDefaultPii](#senddefaultpii), the SDK will automatically read the user from the request by inspecting `HttpContext.User`. Default claim values like `NameIdentifier` for the _Id_ will be used. @@ -104,7 +103,7 @@ options.SendDefaultPii = true; ### SendDefaultPii -Although this setting is part of the [Sentry](/platforms/dotnet/) package, in the context of ASP.NET Core, it means reporting the user by reading the frameworks `HttpContext.User`. The strategy to create the `SentryUser` can be customized. +Although this setting is part of the [Sentry](/platforms/dotnet/) package, in ASP.NET it also enables reporting the user from `HttpContext.User`. ### IncludeRequestPayload @@ -151,7 +150,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Troubleshooting diff --git a/docs/platforms/dotnet/guides/aspnetcore/index.mdx b/docs/platforms/dotnet/guides/aspnetcore/index.mdx index 4b33240722ece..d8301dda91873 100644 --- a/docs/platforms/dotnet/guides/aspnetcore/index.mdx +++ b/docs/platforms/dotnet/guides/aspnetcore/index.mdx @@ -18,7 +18,7 @@ dotnet add package Sentry.AspNetCore -v {{@inject packages.version('sentry.dotne ``` ```shell {tabTitle:Paket CLI} -paket add Sentry --version {{@inject packages.version('sentry.dotnet.aspnetcore') }} +paket add Sentry.AspNetCore --version {{@inject packages.version('sentry.dotnet.aspnetcore') }} ``` This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/). This means that besides the ASP.NET Core related features, through this package you'll also get access to all the framework's logging integration and also the features available in the main [Sentry](/platforms/dotnet/) SDK. @@ -29,9 +29,9 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens This guide also enables **Tracing**. -The simplest way to initialize Sentry in ASP.NET Core is by using the `UseSentry` extension method from the `Sentry.AspNetCore` package in conjunction with the [framework configuration system](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0). +The simplest way to initialize Sentry in ASP.NET Core is by using the `UseSentry` extension method from the `Sentry.AspNetCore` package in conjunction with the [framework configuration system](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/). -Call `UseSentry` with your DSN and the options you want. The SDK provides this as extension methods to support ASP.NET Core `2.X`, `3.X`, and `5.X` and later. +`Sentry.AspNetCore` 6.x requires .NET 8 or later. Call `UseSentry` with your DSN and the options you want. For .NET 6 or 7, use `Sentry.AspNetCore` 4.x. The snippet also turns on: @@ -82,6 +82,7 @@ public static IWebHost BuildWebHost(string[] args) => // We recommend reducing this value in production. options.TracesSampleRate = 1.0; }) + .Build(); ``` ### Additional configuration @@ -330,7 +331,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Samples diff --git a/docs/platforms/dotnet/guides/aws-lambda/index.mdx b/docs/platforms/dotnet/guides/aws-lambda/index.mdx index 088b899271e1f..43b80991a643b 100644 --- a/docs/platforms/dotnet/guides/aws-lambda/index.mdx +++ b/docs/platforms/dotnet/guides/aws-lambda/index.mdx @@ -115,7 +115,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Samples diff --git a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx index 7fa4beee87e09..29b3ce66d19fd 100644 --- a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx +++ b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx @@ -119,7 +119,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Samples diff --git a/docs/platforms/dotnet/guides/blazor-server/index.mdx b/docs/platforms/dotnet/guides/blazor-server/index.mdx index c05548bffc813..0071c897b4859 100644 --- a/docs/platforms/dotnet/guides/blazor-server/index.mdx +++ b/docs/platforms/dotnet/guides/blazor-server/index.mdx @@ -73,16 +73,30 @@ However, on .NET 10 and later, Blazor emits OpenTelemetry activities for circuit #### Install OpenTelemetry -See OpenTelemetry Support for installation and setup instructions. +Install the OTLP exporter and OpenTelemetry instrumentation: + +```shell {tabTitle:.NET Core CLI} +dotnet add package Sentry.OpenTelemetry.Exporter -v {{@inject packages.version('sentry.dotnet') }} +dotnet add package OpenTelemetry.Extensions.Hosting +dotnet add package OpenTelemetry.Instrumentation.AspNetCore +``` + +```powershell {tabTitle:Package Manager} +Install-Package Sentry.OpenTelemetry.Exporter -Version {{@inject packages.version('sentry.dotnet') }} +Install-Package OpenTelemetry.Extensions.Hosting +Install-Package OpenTelemetry.Instrumentation.AspNetCore +``` + +See OpenTelemetry (OTLP) for sampling and trace propagation. #### Configure OpenTelemetry -Wire up Sentry as an OpenTelemetry exporter, subscribe to the Blazor activity sources, and register helper services for circuit and breadcrumb tracking: +Copy the [helper services](#circuit-lifecycle-tracking-services) into your application and add a `using` directive for their namespace. Then configure the OTLP exporter, subscribe to the Blazor activity sources, and register the helpers: ```csharp {filename:Program.cs} using Microsoft.AspNetCore.Components.Server.Circuits; using OpenTelemetry.Trace; -using Sentry.OpenTelemetry; +using Sentry; var builder = WebApplication.CreateBuilder(args); @@ -95,18 +109,14 @@ builder.Services.AddOpenTelemetry() tracing.AddSource("Microsoft.AspNetCore.Components"); tracing.AddSource("Microsoft.AspNetCore.Components.Server.Circuits"); tracing.AddAspNetCoreInstrumentation(); - // Export traces to Sentry - tracing.AddSentry(); + tracing.SetSampler(new ParentBasedSampler(new TraceIdRatioBasedSampler(0.1))); + tracing.AddSentryOtlpExporter("___PUBLIC_DSN___"); }); builder.WebHost.UseSentry(options => { options.Dsn = "___PUBLIC_DSN___"; - options.UseOpenTelemetry(); - // Enables Tracing. - // Set to 1.0 to capture 100% of spans for tracing. - // We recommend reducing this value in production. - options.TracesSampleRate = 0.1; + options.UseOtlp(); // Rewrites /_blazor SignalR transaction names to the actual Blazor route options.AddEventProcessor(new BlazorEventProcessor()); }); @@ -128,6 +138,8 @@ app.MapFallbackToPage("/_Host"); app.Run(); ``` +OpenTelemetry handles sampling in this configuration. Don't also set `TracesSampleRate` on the Sentry options. + #### Circuit Lifecycle Tracking Services The `BlazorSentryIntegration`, `SentryCircuitHandler`, and `BlazorEventProcessor` services shown above are not part of the Sentry integration. You can copy them from the [Blazor Server sample](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.AspNetCore.Blazor.Server/Services) into your application if they prove useful for your use case. @@ -174,7 +186,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Samples diff --git a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx index bafbb652e24b1..9f416bd84e987 100644 --- a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx +++ b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx @@ -53,15 +53,14 @@ builder.UseSentry(options => // Enables Tracing. // Set to 1.0 to capture 100% of spans for tracing. // We recommend reducing this value in production. - options.TracesSampleRate = 0.1; + options.TracesSampleRate = 1.0; }); -// Captures logError and higher as events -builder.Logging.AddSentry(o => o.InitializeSdk = false); - await builder.Build().RunAsync(); ``` +`UseSentry` also registers the logging integration. Don't call `builder.Logging.AddSentry` separately. + ## Send Logs Use `Microsoft.Extensions.Logging` to send structured logs from your application. Set `EnableLogs = true` in your Sentry initialization. @@ -108,9 +107,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Samples diff --git a/docs/platforms/dotnet/guides/entityframework/index.mdx b/docs/platforms/dotnet/guides/entityframework/index.mdx index d08272d0a7fc5..02568c407640b 100644 --- a/docs/platforms/dotnet/guides/entityframework/index.mdx +++ b/docs/platforms/dotnet/guides/entityframework/index.mdx @@ -5,7 +5,7 @@ description: Learn about Sentry's .NET integration with Entity Framework. og_image: /og-images/platforms-dotnet-guides-entityframework.png --- -Sentry provides an integration with `EntityFramework` through the of the [Sentry.EntityFramework NuGet package](https://www.nuget.org/packages/Sentry.EntityFramework). +Sentry provides an integration with Entity Framework 6 through the [Sentry.EntityFramework NuGet package](https://www.nuget.org/packages/Sentry.EntityFramework). > Looking for `EntityFramework Core`? If you're targeting .NET Core 3.1 or newer, that's already built in to the main Sentry .NET SDK. It's also enabled by default for our ASP.NET or ASP.NET Core integrations, even for older targets. For other scenarios, you may need to add the `Sentry.DiagnosticSource` package and call `AddDiagnosticSourceIntegration`, [as described here](/platforms/dotnet/tracing/instrumentation/automatic-instrumentation/#diagnosticsource-integration). (The rest of this page describes our EF6 integration, not EFCore.) @@ -40,7 +40,15 @@ Add the Entity Framework 6 support to your project in one step: ### Example configuration -For example, configuring an ASP.NET app with _global.asax_: +The following example configures an ASP.NET application in `Global.asax.cs`. In addition to `Sentry.EntityFramework`, install [Sentry.AspNet](/platforms/dotnet/guides/aspnet/), which provides request context, request-scoped data, and the HTTP transaction helpers used here: + +```powershell {tabTitle:Package Manager} +Install-Package Sentry.AspNet -Version {{@inject packages.version('sentry.dotnet.aspnet') }} +``` + +```shell {tabTitle:.NET Core CLI} +dotnet add package Sentry.AspNet -v {{@inject packages.version('sentry.dotnet.aspnet') }} +``` The snippet also turns on: @@ -48,14 +56,15 @@ The snippet also turns on: Don't need a feature? Remove its options from the snippet. -```csharp {filename:global.asax} +```csharp {filename:Global.asax.cs} using System; using System.Configuration; +using Sentry; using Sentry.AspNet; public class MvcApplication : System.Web.HttpApplication { - private IDisposable _sentrySdk; + private static IDisposable _sentrySdk; protected void Application_Start() { @@ -69,7 +78,7 @@ public class MvcApplication : System.Web.HttpApplication // Set to 1.0 to capture 100% of spans for tracing. // We recommend reducing this value in production. options.TracesSampleRate = 1.0; - // Add the EntityFramework integration + options.AddAspNet(); options.AddEntityFramework(); }); } @@ -85,10 +94,9 @@ public class MvcApplication : System.Web.HttpApplication { Context.FinishSentryTransaction(); } - public override void Dispose() + protected void Application_End() { - _sentrySdk.Dispose(); - base.Dispose(); + _sentrySdk?.Dispose(); } } ``` @@ -127,11 +135,11 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Sample -Check out a complete working [sample](https://github.com/getsentry/sentry-dotnet-ef/tree/master/samples/Sentry.Samples.AspNet.Mvc) to see it in action. +See the [Entity Framework sample](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.EntityFramework) for a standalone application using this integration. ![Sample breadcrumbs in Sentry](./img/dotnet-entityframework.png) diff --git a/docs/platforms/dotnet/guides/extensions-logging/index.mdx b/docs/platforms/dotnet/guides/extensions-logging/index.mdx index 058be82f62cc9..7a9816b209243 100644 --- a/docs/platforms/dotnet/guides/extensions-logging/index.mdx +++ b/docs/platforms/dotnet/guides/extensions-logging/index.mdx @@ -38,54 +38,43 @@ This package extends `Sentry` main SDK. That means that besides the logging rela -Messages logged from assemblies with the name starting with `Sentry` will not generate events. +The integration excludes the Sentry SDK's own logger categories to avoid capturing its diagnostic messages as events. Application categories that happen to start with `Sentry` aren't excluded solely because of that prefix. ## Configure -There are two ways to add this integration into your project. In both cases it means calling an extension method. The places where it's available are: +Call `AddSentry` on an `ILoggingBuilder`, either through a generic host or `LoggerFactory.Create`. This registers the providers for error events, breadcrumbs, and structured logs. -- `ILoggingBuilder` -- `ILoggerFactory` +The legacy `ILoggerFactory.AddSentry` extension registers only the error-event and breadcrumb provider. Use `LoggerFactory.Create` with `builder.AddSentry` to capture structured logs too. ASP.NET Core's `UseSentry` already registers the providers, so it doesn't need a separate `AddSentry` call. -The `ILoggingBuilder` extension is useful when using a `WebHostBuilder` or a `HostBuilder`, also known as _Generic host_. This extension method is used by the ASP.NET Core integration under the hood to automatically. - -The extension to `ILoggerFactory` is a convenient way when only the `LoggerFactory` is being used, without any framework integration. +### Example configuration -In both cases the method call is: +#### Through `ILoggingBuilder` -**AddSentry()** +This example uses a generic host from the `Microsoft.Extensions.Hosting` package: -### Example configuration +```csharp {filename:Program.cs} +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; -#### Through `ILoggingBuilder` +var builder = Host.CreateApplicationBuilder(args); +// Lets Sentry read the top-level "Sentry" section of appsettings.json +builder.Logging.AddConfiguration(builder.Configuration); +builder.Logging.AddSentry(); -```csharp -public static Task Main() - => new HostBuilder() - .ConfigureHostConfiguration(c => - { - c.SetBasePath(Directory.GetCurrentDirectory()); - c.AddJsonFile("appsettings.json", optional: false); - }) - .ConfigureLogging((c, l) => - { - l.AddConfiguration(c.Configuration); - // Adding Sentry integration to Microsoft.Extensions.Logging - l.AddSentry(); - }) - .Build(); +using var host = builder.Build(); +await host.RunAsync(); ``` -In this example, a _generic host_ is being built and the MEL integration with Sentry added through `ConfigureLogging`. The example also demonstrates how to bind the `appsettings.json` configuration to make the values available to the Sentry integration. +The host loads `appsettings.json` and environment variables. Sentry reads its options from the `Sentry` configuration section. With this approach, options like `Dsn`, `SendDefaultPii`, `MinimumBreadcrumbLevel`, to name a few, can be set in `appsettings.json`. Example using `appsettings.json`: -```json +```json {filename:appsettings.json} { "Logging": { "LogLevel": { @@ -95,6 +84,7 @@ Example using `appsettings.json`: }, "Sentry": { "Dsn": "___PUBLIC_DSN___", + "EnableLogs": true, "SendDefaultPii": true, "MinimumBreadcrumbLevel": "Debug", "MinimumEventLevel": "Warning", @@ -109,11 +99,20 @@ Above we set the application wide minimum log level to `Debug` and we configure ```csharp -using (var loggerFactory = new LoggerFactory() - .AddConsole(LogLevel.Trace) - .AddSentry(o => o.Dsn = "___PUBLIC_DSN___")) +using Microsoft.Extensions.Logging; + +using (var loggerFactory = LoggerFactory.Create(builder => +{ + builder.SetMinimumLevel(LogLevel.Information); + builder.AddSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + options.EnableLogs = true; + }); +})) { - var logger = loggerFactory.CreateLogger(); + var logger = loggerFactory.CreateLogger("Example"); + logger.LogInformation("Order processed {OrderId}", "order-123"); } ``` @@ -127,15 +126,19 @@ In cases where `AddSentry` is called without arguments, it's worth noting that a -The SDK needs to be initialized only once. If the `DSN` is made available to this integration, by default it **will** initialize the SDK. If you do not wish to initialize the SDK via this configuration, set the `InitializeSdk` flag to **false**. Not providing a DSN or leaving it as an _empty string_ will disable the SDK. +Initialize the SDK once. `ILoggingBuilder.AddSentry` initializes it by default and can resolve a DSN from configuration or `SENTRY_DSN`. If another integration or `SentrySdk.Init` owns initialization, set `InitializeSdk = false`. Omitting the DSN isn't a substitute for this flag: if no DSN is found, initialization throws. An explicitly empty DSN disables the SDK. For example: ```csharp -using (var loggerFactory = new LoggerFactory() - .AddSentry(o => o.InitializeSdk = false)) +using (var loggerFactory = LoggerFactory.Create(builder => + builder.AddSentry(options => + { + options.InitializeSdk = false; + options.EnableLogs = true; + }))) { } ``` @@ -175,9 +178,14 @@ options.TagFilters.Add("PROC_"); ## Verify -This snippet includes an intentional error, so you can test that everything is working as soon as you set it up. +After creating a logger with one of the configurations above, send an informational log and an error to verify both providers: + +```csharp +logger.LogInformation("Sentry logging verification"); +logger.LogError("Sentry error-event verification"); +``` - +Check **Logs** for the informational log and **Issues** for the error event. Run this code before disposing the host or logger factory. ## Samples diff --git a/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx b/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx index 9b0f8af3ffd38..98cec74c19281 100644 --- a/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx +++ b/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx @@ -30,7 +30,7 @@ This package extends `Sentry.AspNetCore`, which in turn extends `Sentry`'s main -Messages logged from assemblies with the name starting with `Sentry` will not generate events. +The logging integration excludes the Sentry SDK's own logger categories to avoid capturing its diagnostic messages as events. @@ -104,10 +104,12 @@ using Microsoft.AspNetCore.Http; public class Function : IHttpFunction { + public Task HandleAsync(HttpContext context) => + context.Response.WriteAsync("Hello from Google Cloud Functions"); } ``` -Some of the settings require actual code. For those, like the `BeforeSend` callback, you will need to create a new class implementing the abstract class `FunctionsStartup` to set it up: +Some settings, such as the `BeforeSend` callback, require code. Keep the `SentryStartup` assembly registration above and add another `FunctionsStartup` registration for your custom configuration: ```csharp using Google.Cloud.Functions.Hosting; @@ -144,13 +146,13 @@ Much of the behavior of the Google cloud functions integration with Sentry can b When opting in to `SendDefaultPii`, the SDK will automatically read the user from the request by inspecting `HttpContext.User`. Default claim values like `NameIdentifier` for the _Id_ will be used. -If you wish to change the behavior of how to read the user from the request, you can register a new `IUserFactory` into the container: +To customize how Sentry reads the user from the request, implement `ISentryUserFactory` and register it in the container. Keep the `SentryStartup` registration when adding this startup class: ```csharp using Google.Cloud.Functions.Hosting; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.DependencyInjection; -using Sentry.AspNetCore; +using Sentry; [assembly: FunctionsStartup(typeof(UserFactoryStartup))] @@ -159,7 +161,7 @@ public class UserFactoryStartup : FunctionsStartup public override void ConfigureServices(WebHostBuilderContext context, IServiceCollection services) { base.ConfigureServices(context, services); - services.AddSingleton(); + services.AddSingleton(); } } ``` @@ -191,7 +193,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/docs/platforms/dotnet/guides/log4net/index.mdx b/docs/platforms/dotnet/guides/log4net/index.mdx index 99c61499a86b4..4205ab6278133 100644 --- a/docs/platforms/dotnet/guides/log4net/index.mdx +++ b/docs/platforms/dotnet/guides/log4net/index.mdx @@ -52,16 +52,60 @@ In the example above, the `SendIdentity` flag was switched on. The SDK then will ### DSN -Also in the example above, you can find the DSN being set. That will instruct the `SentryAppender` to initialize the SDK. +The appender initializes the SDK lazily when it processes its first log entry and no SDK is already enabled. Setting `Dsn` in the configuration doesn't initialize the SDK immediately. This is only one of the ways to initialize the SDK. If you wish to configure the SDK programmatically, you could **leave the DSN out** from the appender configuration section. The SDK needs to be initialized only **once** and since other integrations (like ASP.NET) are also able to initialize the SDK, you only need to pass the DSN to one of these integrations. One common case to not add the DSN to the XML configuration file (which would initialize it via the log4net integration) is to have full access to the [SDK option](/platforms/dotnet/guides/log4net/configuration/options/). +### Structured Logs + +To send structured logs, initialize Sentry in code before logging and omit `Dsn` from the appender configuration: + +```csharp +SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.EnableLogs = true; +}); +``` + +If another integration already initializes Sentry, set `EnableLogs = true` there instead. The appender uses the existing SDK. + ## Verify -This snippet includes an intentional error, so you can test that everything is working as soon as you set it up. +Ensure log4net loads your configuration and the appender is referenced by a logger. For example, add this inside your `` element alongside the appender: + +```xml {filename:app.config} + + + + +``` + +Run this code during application startup to initialize through the appender and verify error capture: + +```csharp +using System; +using log4net; +using log4net.Config; +using Sentry; + +XmlConfigurator.Configure(); +var logger = LogManager.GetLogger("SentryVerification"); + +try +{ + throw new InvalidOperationException("Sentry log4net verification"); +} +catch (Exception exception) +{ + logger.Error("Sentry error-event verification", exception); +} + +SentrySdk.FlushAsync().GetAwaiter().GetResult(); +``` - +Check **Issues** for the error event. If you enabled structured logs, also check **Logs**. A direct `SentrySdk.CaptureException` call won't initialize the appender, so it can't verify this setup before the first log entry. ## Sample diff --git a/docs/platforms/dotnet/guides/maui/index.mdx b/docs/platforms/dotnet/guides/maui/index.mdx index 1688daecfafc0..4ad7dc8cf6fb3 100644 --- a/docs/platforms/dotnet/guides/maui/index.mdx +++ b/docs/platforms/dotnet/guides/maui/index.mdx @@ -6,6 +6,8 @@ description: "Learn about Sentry's .NET integration with .NET Multi-platform App Sentry has an integration for the [.NET Multi-platform App UI (MAUI)](https://dotnet.microsoft.com/apps/maui) through the [Sentry.Maui NuGet package](https://www.nuget.org/packages/Sentry.Maui). +`Sentry.Maui` 6.x requires .NET MAUI 9 or later. For .NET MAUI 8, use a compatible 5.x SDK version. + **Overview of the features** - Easy MAUI integration by calling `UseSentry` on your `MauiAppBuilder` @@ -79,7 +81,7 @@ public static MauiApp CreateMauiApp() options.AttachScreenshot = true; // Other Sentry options can be set here. - }) + }); // ... the remainder of your MAUI app setup @@ -176,7 +178,7 @@ Let's test your setup and confirm that data reaches your Sentry project. ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/docs/platforms/dotnet/guides/nlog/index.mdx b/docs/platforms/dotnet/guides/nlog/index.mdx index c597b48a3b510..b50cab82b089c 100644 --- a/docs/platforms/dotnet/guides/nlog/index.mdx +++ b/docs/platforms/dotnet/guides/nlog/index.mdx @@ -18,7 +18,7 @@ By default, Sentry will keep any message with log level `Info` or higher as a `B The default value to report a log entry as an event to Sentry is `Error`. -This means that out of the box, any `Error` call will create an `Event` which will include all log messages of level `Info`, `Warn` and also `Error` and `Critical`. +This means that out of the box, any `Error` call will create an `Event` which will include all log messages of level `Info`, `Warn`, `Error`, and `Fatal` stored as breadcrumbs. Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). @@ -36,12 +36,6 @@ dotnet add package Sentry.NLog -v {{@inject packages.version('sentry.dotnet.nlog This package extends `Sentry` main SDK. That means that besides the logging related features, through this package you'll also get access to all API and features available in the main `Sentry` SDK. - - -Messages logged from assemblies with the name starting with `Sentry` will not generate events. - - - ## Configure @@ -50,13 +44,16 @@ For more information on how to dynamically set event data via `NLog.config`, see -You can configure the Sentry NLog target via code as follows: +If another integration already initializes Sentry, add the NLog target without reinitializing the SDK. Set `EnableLogs = true` on the options used by that integration to send structured logs. ```csharp -LogManager.Configuration = new LoggingConfiguration(); -LogManager.Configuration - .AddSentry(options => +using NLog; +using NLog.Config; + +var configuration = new LoggingConfiguration(); +configuration.AddSentry(options => { + options.InitializeSdk = false; // Optionally specify a separate format for message options.Layout = "${message}"; // Optionally specify a separate format for breadcrumbs @@ -72,6 +69,7 @@ LogManager.Configuration // All Sentry Options are accessible here. }); +LogManager.Configuration = configuration; ``` It's also possible to initialize the SDK through the NLog integration (as opposed to using `SentrySdk.Init`). @@ -79,18 +77,19 @@ This is useful when NLog is the only integration being used in your application. ```csharp -LogManager.Configuration = new LoggingConfiguration(); -LogManager.Configuration - .AddSentry(o => +var configuration = new LoggingConfiguration(); +configuration.AddSentry(o => { // The NLog integration will initialize the SDK if DSN is set: o.Dsn = "___PUBLIC_DSN___"; + o.EnableLogs = true; }); +LogManager.Configuration = configuration; ``` -The SDK needs to be initialized only once. If a `DSN` is made available to this integration, by default it **will** initialize the SDK. If you do not wish to initialize the SDK via this integration, set the `InitializeSdk` flag to **false**. Not providing a DSN or leaving it as `null` instructs the integration not to initialize the SDK and unless another integration initializes it or you call `SentrySdk.Init`, the SDK will stay disabled. +Initialize the SDK once. `InitializeSdk` defaults to `true`, and initialization can resolve a DSN from `SENTRY_DSN` even when you omit `Dsn`. If another integration or `SentrySdk.Init` owns initialization, set `InitializeSdk = false`. Omitting the DSN doesn't prevent reinitialization: the target either uses `SENTRY_DSN` and replaces the existing SDK configuration, or fails to initialize because no DSN was found. @@ -121,6 +120,7 @@ The SDK can also be configured via `NLog.config` XML file: +With `EnableLogs = true`, the informational message appears in **Logs**. The error message also creates an event in **Issues**. Call `LogManager.Shutdown()` when your application exits to dispose the target and flush pending data. ## Samples diff --git a/docs/platforms/dotnet/guides/serilog/index.mdx b/docs/platforms/dotnet/guides/serilog/index.mdx index be1d4e29a9ed2..595e94954d19f 100644 --- a/docs/platforms/dotnet/guides/serilog/index.mdx +++ b/docs/platforms/dotnet/guides/serilog/index.mdx @@ -18,7 +18,7 @@ By default, any message with log level `Information` or higher will be kept as a The default value to report a log entry as an event to Sentry is `Error`. -This means that out of the box, any `LogError` call will create an `Event` which will include breadcrumbs for all prior log messages of level `Information`, `Warning`, `Error` and `Critical`. +This means that out of the box, any `Log.Error` call will create an `Event` which will include breadcrumbs for prior log messages of level `Information`, `Warning`, `Error`, and `Fatal`. Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). You can control which logs are captured using the [Serilog MinimumLogLevel](https://github.com/serilog/serilog/wiki/Configuration-Basics#minimum-level). @@ -38,18 +38,23 @@ This package extends `Sentry` main SDK. That means that besides the logging rela -Messages logged from assemblies with the name starting with `Sentry` will not generate events. +The integration excludes the Sentry SDK's own logger categories to avoid capturing its diagnostic messages as events. Application categories that happen to start with `Sentry` aren't excluded solely because of that prefix. ## Configure -You can configure the Sentry Serilog sink as follows: +If another integration already initializes Sentry, configure the Serilog sink without reinitializing the SDK. Enable `EnableLogs` on the options used by that integration to send structured logs. ```csharp +using Serilog; +using Serilog.Events; + Log.Logger = new LoggerConfiguration() + .MinimumLevel.Debug() .WriteTo.Sentry(o => { + o.InitializeSdk = false; // Debug and higher are stored as breadcrumbs (default is Information) o.MinimumBreadcrumbLevel = LogEventLevel.Debug; // Warning and higher is sent as event (default is Error) @@ -78,12 +83,16 @@ Log.Logger = new LoggerConfiguration() } ``` -It's also possible to initialize the SDK through the Serilog integration. This is useful when the Serilog is the only integration being used in your application. To initialize the Sentry SDK through the Serilog integration, provide it with the DSN: +When Serilog owns initialization, provide the DSN and enable structured logs in the sink configuration: ```csharp Log.Logger = new LoggerConfiguration() - .WriteTo.Sentry(o => o.Dsn = "___PUBLIC_DSN___") + .WriteTo.Sentry(o => + { + o.Dsn = "___PUBLIC_DSN___"; + o.EnableLogs = true; + }) .CreateLogger(); ``` @@ -95,7 +104,8 @@ Log.Logger = new LoggerConfiguration() { "Name": "Sentry", "Args": { - "dsn": "___PUBLIC_DSN___" + "dsn": "___PUBLIC_DSN___", + "enableLogs": true } } ] @@ -105,7 +115,9 @@ Log.Logger = new LoggerConfiguration() -The SDK only needs to be initialized once. If a `DSN` is made available to this integration, by default it **will** initialize the SDK. If you do not wish to initialize the SDK via this integration, set the `InitializeSdk` flag to **false**. Not providing a DSN or leaving it as `null` instructs the integration not to initialize the SDK and unless another integration initializes it or you call `SentrySdk.Init`, the SDK will stay disabled. +Initialize the SDK once. The C# callback overload defaults `InitializeSdk` to `true` and can resolve a DSN from `SENTRY_DSN`. Set `InitializeSdk = false` when another integration or `SentrySdk.Init` owns initialization. Omitting the DSN from that callback doesn't prevent reinitialization: it uses `SENTRY_DSN` if set and replaces the existing SDK configuration, and otherwise throws because no DSN was found. + +The configuration-file overload infers initialization from its `dsn` argument. In the first JSON example, Sentry must already be initialized elsewhere; supplying `dsn`, as in the second example, enables initialization through the sink. @@ -141,9 +153,14 @@ An optional `LoggingLevelSwitch` that allows the sink's minimum level to be chan ## Verify -This snippet includes an intentional error, so you can test that everything is working as soon as you set it up. +After configuring Serilog, send an informational log and an error: + +```csharp +Log.Information("Sentry logging verification"); +Log.Error("Sentry error-event verification"); +``` - +With `EnableLogs = true`, the informational message appears in **Logs**. The error message also creates an event in **Issues**. Call `Log.CloseAndFlush()` when your application exits to dispose the sink and flush pending data. ## Samples diff --git a/docs/platforms/dotnet/guides/winforms/index.mdx b/docs/platforms/dotnet/guides/winforms/index.mdx index 0c2e5915b5bd2..2113a6d6dd3cc 100644 --- a/docs/platforms/dotnet/guides/winforms/index.mdx +++ b/docs/platforms/dotnet/guides/winforms/index.mdx @@ -36,6 +36,7 @@ Don't need a feature? Remove its options from the snippet. ```csharp using System; using System.Windows.Forms; +using Sentry; namespace WindowsFormsApp1 { @@ -123,18 +124,21 @@ Module Program Application.SetUnhandledExceptionMode(UnhandledExceptionMode.ThrowException) ' Configure the options for Sentry - Dim sentryOptions = New SentryOptions With - { - .Dsn = "___PUBLIC_DSN___", + Dim sentryOptions As New SentryOptions() + With sentryOptions + .Dsn = "___PUBLIC_DSN___" ' Adds request URL and headers, IP and name for users, etc. - .SendDefaultPii = True, + .SendDefaultPii = True + + ' Enable tracing; reduce this value in production. + .TracesSampleRate = 1.0 ' Enable Global Mode since this is a client app - .IsGlobalModeEnabled = True, + .IsGlobalModeEnabled = True ' any other options you need go here - } + End With ' Initialize Sentry and run the main form of the application Using SentrySdk.Init(sentryOptions) @@ -184,18 +188,21 @@ Namespace My Private Sub MyApplication_Startup(sender As Object, e As StartupEventArgs) Handles Me.Startup ' Configure the options for Sentry - Dim sentryOptions = New SentryOptions With - { - .Dsn = "___PUBLIC_DSN___", + Dim sentryOptions As New SentryOptions() + With sentryOptions + .Dsn = "___PUBLIC_DSN___" ' Adds request URL and headers, IP and name for users, etc. - .SendDefaultPii = True, + .SendDefaultPii = True + + ' Enable tracing; reduce this value in production. + .TracesSampleRate = 1.0 ' Enable Global Mode since this is a client app - .IsGlobalModeEnabled = True, + .IsGlobalModeEnabled = True ' any other options you need go here - } + End With ' Initialize Sentry _sentry = SentrySdk.Init(sentryOptions) @@ -257,9 +264,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Resources diff --git a/docs/platforms/dotnet/guides/winui/index.mdx b/docs/platforms/dotnet/guides/winui/index.mdx index 16f84ae9841b2..86f90536fa229 100644 --- a/docs/platforms/dotnet/guides/winui/index.mdx +++ b/docs/platforms/dotnet/guides/winui/index.mdx @@ -83,6 +83,8 @@ Do not initialize the SDK in the `OnLaunched` event of the application or the `H ```csharp // Add these to your existing using statements. +using System.Security; +using Sentry; using Sentry.Protocol; using UnhandledExceptionEventArgs = Microsoft.UI.Xaml.UnhandledExceptionEventArgs; @@ -181,9 +183,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/docs/platforms/dotnet/guides/wpf/index.mdx b/docs/platforms/dotnet/guides/wpf/index.mdx index f9a1444911649..2edb664cae488 100644 --- a/docs/platforms/dotnet/guides/wpf/index.mdx +++ b/docs/platforms/dotnet/guides/wpf/index.mdx @@ -28,6 +28,8 @@ Don't need a feature? Remove its options from the snippet. ```csharp using System.Windows; +using System.Windows.Threading; +using Sentry; public partial class App : Application { @@ -97,9 +99,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/docs/platforms/dotnet/guides/xamarin/index.mdx b/docs/platforms/dotnet/guides/xamarin/index.mdx index 2e7800b29932c..03e78239148a7 100644 --- a/docs/platforms/dotnet/guides/xamarin/index.mdx +++ b/docs/platforms/dotnet/guides/xamarin/index.mdx @@ -8,7 +8,7 @@ Sentry's .NET SDK works with Xamarin applications through the [Sentry Xamarin Nu The SDK is compatible with the following versions or higher: -- Xamarin.Android 9.0 +- Xamarin.Android 11.0 - Xamarin.iOS 10.14 - Universal Windows Platform 10.0.16299 - Tizen 4.0 @@ -37,7 +37,8 @@ Don't need a feature? Remove its options from the snippet. ```csharp SentryXamarin.Init(options => { - options.AddXamarinFormsIntegration(); + // Add this only if you installed Sentry.Xamarin.Forms: + // options.AddXamarinFormsIntegration(); // Tells which project in Sentry to send events to: options.Dsn = "___PUBLIC_DSN___"; // When configuring for the first time, to see what the SDK is doing: diff --git a/docs/platforms/dotnet/index.mdx b/docs/platforms/dotnet/index.mdx index d6803feaf506d..5973764f5dd46 100644 --- a/docs/platforms/dotnet/index.mdx +++ b/docs/platforms/dotnet/index.mdx @@ -69,7 +69,7 @@ SentrySdk.Init(options => -Profiling for .NET is in Alpha and needs .NET 8 or later. On .NET Framework, `Sentry.Profiling` installs without a warning, but `AddProfilingIntegration()` doesn't compile. +Profiling for .NET is in Alpha. The `Sentry.Profiling` package requires .NET 8 or later and doesn't support .NET Framework. For iOS and Mac Catalyst, use the built-in profiler described in the [Apple guide](/platforms/dotnet/guides/apple/#configure). @@ -125,9 +125,11 @@ Let's test your setup and confirm that data reaches your Sentry project. + + ### View Captured Data in Sentry -Open your Sentry project to view the captured event. + ## Next Steps diff --git a/platform-includes/getting-started-verify-data/dotnet.mdx b/platform-includes/getting-started-verify-data/dotnet.mdx new file mode 100644 index 0000000000000..9580025e958ee --- /dev/null +++ b/platform-includes/getting-started-verify-data/dotnet.mdx @@ -0,0 +1,9 @@ +Run any log and metric examples you've added after SDK initialization. To verify automatic tracing, exercise an instrumented operation, such as an incoming HTTP request or a supported UI interaction. + +Logs and metrics are batched. In an async test method, flush pending data before a short-lived test exits: + +```csharp +await SentrySdk.FlushAsync(); +``` + +Check **Issues** for the captured error, **Logs** for log messages, **Metrics** for application metrics, and **Traces** for sampled transactions. Error capture alone doesn't verify the other features. diff --git a/platform-includes/getting-started-verify-tracing/dotnet.mdx b/platform-includes/getting-started-verify-tracing/dotnet.mdx new file mode 100644 index 0000000000000..eca84a6033c5f --- /dev/null +++ b/platform-includes/getting-started-verify-tracing/dotnet.mdx @@ -0,0 +1,10 @@ +To verify tracing for code without automatic instrumentation, create and finish a test transaction after initializing Sentry: + +```csharp +var transaction = SentrySdk.StartTransaction("quickstart-test", "test"); +transaction.Finish(); +``` + +`TracesSampleRate` controls sampling; it doesn't create transactions by itself. See Custom Instrumentation to trace work in your application. + +If you enabled profiling, run a longer sampled transaction after the profiler has initialized. A short verification transaction might finish before the profiler collects any samples. From bce2484781ee4e9e6d28e54fd12808285eec8fc1 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, 10 Nov 2026 21:25:16 +0000 Subject: [PATCH 027/141] Bump API schema to 821639eb (#20707) 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 2c3360222b672..1573ae052ea3b 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 = '1ef9bb60244c915f000f53251e9c858e0c303c21'; +const SENTRY_API_SCHEMA_SHA = '821639ebcc9405f6015476d01e9fbd1aa71fba49'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From f8af3f01369fe6c880344c05ddb42dbd7852ee36 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, 10 Nov 2026 21:34:34 +0000 Subject: [PATCH 028/141] Bump API schema to 5906b2a7 (#20708) 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 1573ae052ea3b..415c9834ddeb6 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 = '821639ebcc9405f6015476d01e9fbd1aa71fba49'; +const SENTRY_API_SCHEMA_SHA = '5906b2a78aa9d4de342a7fd8ba723a65c7883e70'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 1731df14e0aa69d139ff4ea6140547cf3dc901bd 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, 10 Nov 2026 22:22:26 +0000 Subject: [PATCH 029/141] Bump API schema to 71714be6 (#20710) 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 415c9834ddeb6..f3237064ec5db 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 = '5906b2a78aa9d4de342a7fd8ba723a65c7883e70'; +const SENTRY_API_SCHEMA_SHA = '71714be6d6a5a24de63ebfba1183473a0afd0695'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 286c970cf6c34fdc713880a8eaf73b6e2791c715 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, 10 Nov 2026 22:30:09 +0000 Subject: [PATCH 030/141] Bump API schema to f76ffa03 (#20712) 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 f3237064ec5db..33b71ded1bdb0 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 = '71714be6d6a5a24de63ebfba1183473a0afd0695'; +const SENTRY_API_SCHEMA_SHA = 'f76ffa037e193529a7552d095cf3a00e896f98f0'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 762377153ef3066560f5e1a79deb199a77f10503 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, 11 Nov 2026 00:59:09 +0000 Subject: [PATCH 031/141] Bump API schema to b6988bd7 (#20713) 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 33b71ded1bdb0..86e1d512f030a 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 = 'f76ffa037e193529a7552d095cf3a00e896f98f0'; +const SENTRY_API_SCHEMA_SHA = 'b6988bd7e592a8ffe3e512530f7766d47383a250'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From e36c6f0117ebb1bae128ff53f9091a4714c34a9b 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, 11 Nov 2026 01:07:58 +0000 Subject: [PATCH 032/141] Bump API schema to 59ba269d (#20714) 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 86e1d512f030a..c48187353e214 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 = 'b6988bd7e592a8ffe3e512530f7766d47383a250'; +const SENTRY_API_SCHEMA_SHA = '59ba269df044430f0c849447571faef3fd18830e'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From bf758ea45e5fdf698af0307f4eb18b99f0a6d8b8 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, 11 Nov 2026 03:00:27 +0000 Subject: [PATCH 033/141] Bump API schema to 4431bbf1 (#20716) 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 c48187353e214..7c5320359916a 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 = '59ba269df044430f0c849447571faef3fd18830e'; +const SENTRY_API_SCHEMA_SHA = '4431bbf11e84f2f75a0f6b26f7a67c99672220e4'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b2e1a29532a71afd66ba5cc69102686cc019ee63 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, 11 Nov 2026 03:08:52 +0000 Subject: [PATCH 034/141] Bump API schema to f13098b1 (#20717) 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 7c5320359916a..fbb467d606ca6 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 = '4431bbf11e84f2f75a0f6b26f7a67c99672220e4'; +const SENTRY_API_SCHEMA_SHA = 'f13098b1512093f92f3a1c432967f3a9b2fdc501'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 176be5866ec45986508c9c5513f93e6bdecbd3ae Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:06:20 +0000 Subject: [PATCH 035/141] docs(react-native): Explain EAS env var setup for Expo source maps (#20698) ## DESCRIBE YOUR PR Users have asked for clearer docs on setting up `SENTRY_AUTH_TOKEN` for EAS builds. The shared Expo plugin snippet only said to add it "as an EAS secret" and linked to Expo's general env var overview. - **Expo plugin snippet** (shown on the Expo setup page and the Expo source maps page): adds the `eas env:set` command for `SENTRY_AUTH_TOKEN`. It also explains that each build uses the environment set by its `eas.json` build profile, so the token must be set for every environment the profiles use. Otherwise source maps don't upload for those builds. Last, it explains which visibility to pick: `sensitive` if you also upload source maps locally after `eas update`, because `secret` values never leave Expo servers. `secret` is enough for EAS Build alone. - **Expo setup page, Build Notes:** the link now goes to Expo's page on managing env vars, not the overview. - **EAS Build Hooks page:** replaces `eas env:create` with `eas env:set`. `env:create` was deprecated and hidden from help in eas-cli v21.0.0 ([changelog](https://github.com/expo/eas-cli/blob/main/CHANGELOG.md)). It still runs, but Expo no longer documents it. Why `sensitive` is the default: Expo's [Using Sentry guide](https://docs.expo.dev/guides/using-sentry/) says to set `SENTRY_AUTH_TOKEN` "with sensitive visibility" for Expo Build. Expo's [visibility docs](https://docs.expo.dev/eas/environment-variables/#visibility-settings-for-environment-variables) say `secret` values aren't readable outside Expo servers, including in EAS CLI. That breaks `eas env:pull` for the local `eas update` source map upload. Prettier already fails on `master` for `eas-build-hooks.mdx`. I left that file's formatting alone to keep the diff small. ## 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 **paul.jaffre**. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BH83RNUTU%3A1794331778.426779) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BH83RNUTU%3A1794331778.426779/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Paul Jaffre Co-authored-by: Antonis Lilis Co-authored-by: Claude Opus 5.5 --- docs/platforms/react-native/guides/expo/index.mdx | 2 +- .../expo/manual-setup/expo/eas-build-hooks.mdx | 2 +- includes/react-native-expo-plugin-code-snippet.mdx | 12 +++++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/platforms/react-native/guides/expo/index.mdx b/docs/platforms/react-native/guides/expo/index.mdx index 559425fa0c623..b53534bfc0901 100644 --- a/docs/platforms/react-native/guides/expo/index.mdx +++ b/docs/platforms/react-native/guides/expo/index.mdx @@ -194,7 +194,7 @@ To see Sentry issues and replays in the Expo dashboard, create an [EAS Update ch ### Build Notes -- Don't commit your auth token. Store it in `.env.local` as `SENTRY_AUTH_TOKEN` for local builds, and as an [EAS secret](https://docs.expo.dev/eas/environment-variables/) for EAS builds. +- Don't commit your auth token. Store it in `.env.local` as `SENTRY_AUTH_TOKEN` for local builds, and as an [EAS environment variable](https://docs.expo.dev/eas/environment-variables/manage/) for EAS builds. - Source maps for the `Release` version of your application are uploaded automatically during the native application build. - During development, the source code is resolved using the Metro Server and source maps aren't used. This currently doesn't work on web. diff --git a/docs/platforms/react-native/guides/expo/manual-setup/expo/eas-build-hooks.mdx b/docs/platforms/react-native/guides/expo/manual-setup/expo/eas-build-hooks.mdx index caf67a1121cb8..5ad34de23c70b 100644 --- a/docs/platforms/react-native/guides/expo/manual-setup/expo/eas-build-hooks.mdx +++ b/docs/platforms/react-native/guides/expo/manual-setup/expo/eas-build-hooks.mdx @@ -25,7 +25,7 @@ EAS Build automatically runs `package.json` scripts with these names at the corr Set your DSN as an EAS secret or environment variable so it's available during builds: ```bash -eas env:create --name SENTRY_DSN --value --visibility secret --scope project +eas env:set --name SENTRY_DSN --value --environment production --visibility secret --scope project ``` ## What Gets Captured diff --git a/includes/react-native-expo-plugin-code-snippet.mdx b/includes/react-native-expo-plugin-code-snippet.mdx index 9bbaf7da75fef..86e8f2428f0e9 100644 --- a/includes/react-native-expo-plugin-code-snippet.mdx +++ b/includes/react-native-expo-plugin-code-snippet.mdx @@ -64,6 +64,16 @@ SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ -Do not commit your auth token. Add `.env.local` to your `.gitignore`. For EAS builds, add `SENTRY_AUTH_TOKEN` as an [EAS secret](https://docs.expo.dev/eas/environment-variables/) instead of using a `.env.local` file. +Do not commit your auth token. Add `.env.local` to your `.gitignore`. + +For EAS Build, store the token as an [EAS environment variable](https://docs.expo.dev/eas/environment-variables/manage/) instead of a `.env.local` file. Set it for each environment you build. You can pass `--environment` more than once: + +```bash +eas env:set --name SENTRY_AUTH_TOKEN --value ___ORG_AUTH_TOKEN___ --environment production --environment preview --visibility sensitive +``` + +Each EAS build uses the environment set by the [`environment`](https://docs.expo.dev/eas/environment-variables/usage/#using-environment-variables-with-expo-build) field of its build profile in `eas.json`. If a profile doesn't set `environment`, EAS uses `production` for store builds (`distribution: "store"`), `development` for development builds (`developmentClient: true`), and `preview` for everything else. Set the token for every environment your profiles use, or source maps won't upload for those builds. + +Use `sensitive` visibility if you also upload source maps from your machine, for example after `eas update`. The upload command reads the token from your local environment or `.env` files, not from EAS. Pull it with `eas env:pull --environment production`, or run the upload through `eas env:exec production 'npx @sentry/expo-upload-sourcemaps dist'`. Values with `secret` visibility never leave Expo servers, so they work for EAS Build but can't be pulled for local uploads. From 2374e0a63c224d089d64f5371dae8c07749c7c51 Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Wed, 11 Nov 2026 10:46:58 +0100 Subject: [PATCH 036/141] Update migration notes for `sendDefaultPii` in SDK (#19340) Added migration details for `sendDefaultPii` behavior in data collection options, clarifying backfill conditions and implications for SDKs. ## DESCRIBE YOUR PR _Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically._ ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. Select exactly one option. For deadlines, replace `YYYY-MM-DD` with the due date. You can update this information later by editing the PR description. - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [ ] No deadline: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've supplied a deadline. Thanks in advance for your help! ## PRE-MERGE CHECKLIST _Make sure you've checked the following before merging your changes:_ - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](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/) --------- Co-authored-by: Sigrid <32902192+s1gr1d@users.noreply.github.com> Co-authored-by: Alex Krawiec --- .../client/data-collection/index.mdx | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/develop-docs/sdk/foundations/client/data-collection/index.mdx b/develop-docs/sdk/foundations/client/data-collection/index.mdx index 4c16fa0c5e696..64b771931d822 100644 --- a/develop-docs/sdk/foundations/client/data-collection/index.mdx +++ b/develop-docs/sdk/foundations/client/data-collection/index.mdx @@ -2,12 +2,15 @@ title: Data Collection description: Configuration for what data SDKs collect by default, including technical context, PII, and sensitive data. spec_id: sdk/foundations/client/data-collection -spec_version: 0.15.0 +spec_version: 0.16.0 spec_status: candidate spec_depends_on: - id: sdk/foundations/client version: ">=1.0.0" spec_changelog: + - version: 0.16.0 + date: 2026-09-10 + summary: Explain migration from `sendDefaultPii` for SDKs that can't cleanly map previous behavior to data collection. - version: 0.15.0 date: 2026-09-29 summary: "Attach cookie headers as one string-array span attribute (`name=value` elements) instead of one attribute per cookie name. Filter nameless cookie segments and unparseable cookie strings." @@ -745,8 +748,9 @@ init({ ### Migration from `sendDefaultPii` -- **`sendDefaultPii: true`** (legacy) → omit `dataCollection` entirely; the new defaults already populate `user.*` and collect HTTP bodies. Add overrides only to restrict collection. -- **`sendDefaultPii: false`** (legacy) → opt out of the categories the new defaults collect. +#### Migration guidance for users +- Previous **`sendDefaultPii: true`** → users can omit `dataCollection` entirely; the new defaults already populate `user.*` and collect HTTP bodies. Add overrides only to restrict collection. +- Previous **`sendDefaultPii: false`** → users should opt out of the categories the new defaults collect. The new defaults collect **more data** than either legacy setting did. User identity, generative AI content, HTTP request/response bodies, and file paths are now on by default, and more HTTP headers and cookies are collected. This config restricts collection to roughly match the previous behavior of `sendDefaultPii: false`: @@ -778,6 +782,21 @@ init({ }); ``` +#### Migration in SDKs + +If the SDK can cleanly map what `sendDefaultPii` did to data collection options, it **MAY** backfill data collection options from the configured `sendDefaultPii` value. + +If the SDK cannot cleanly map the `sendDefaultPii` behavior to data collection options, it **MUST NOT** derive data collection options from the configured `sendDefaultPii` value. Instead, the following rules apply: +- If the user sets at least one data collection option, the SDK **MUST** ignore `sendDefaultPii`. The SDK **MUST** apply the options the user set, and the spec defaults for all `dataCollection` options. This also means that the SDK might send more data when `sendDefaultPii` was set to `false` before, so users should be made aware of that. + +- If the user sets no data collection options, the SDK **MUST** keep the legacy `sendDefaultPii` behavior unchanged. +This prevents breaking changes in PII filtering and allows customers to migrate to data collection at their own pace. Customers may keep using `sendDefaultPii` without changes to SDK behavior as long as they don't opt into data collection. + +Examples of the SDK not cleanly mapping: +- mixed behavior between integrations (e.g. one integration sent cookies even with `sendDefaultPii` = `false` while another did not) +- hard coded filter terms that don't match the ones defined in data collection spec (e.g. sensitive http header names) +- sensitive values were omitted and are now attached as `[Filtered]` + --- ## Changelog From 27f9cd96d663f66b47b15d043c572f07d41b615b Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 10:58:05 +0000 Subject: [PATCH 037/141] docs(apple): Warn that debug logging can slow down apps (#20725) ## DESCRIBE YOUR PR Clarifies the `debug` option on the Apple SDK [options page](https://docs.sentry.io/platforms/apple/configuration/options/#debug): debug logging isn't only "not recommended" in production, it can noticeably slow down an app. - Removes "this will not cause any safety concerns". Heavy logging can cause app hangs, so that sentence understates the risk. - Explains why: by default, the SDK prints each diagnostic message to the console synchronously with `print`, on the calling thread ([`SentrySDKLog.swift`](https://github.com/getsentry/sentry-cocoa/blob/main/Sources/Swift/Core/Tools/SentrySDKLog.swift)). - Points to `diagnosticLevel` for logging fewer messages while debugging. Context: getsentry/sentry-cocoa#9591 benchmarks SDK diagnostic logging. 5,000 log calls took about 275 ms with console output, versus under 1 ms with debug disabled. It came up while investigating the UIViewController tracing hang in getsentry/sentry-cocoa#9536. ## 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 @philprime. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC040TTUKQT1%3A1793666950.833129) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC040TTUKQT1%3A1793666950.833129/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Phil Niedertscheider <30923007+philprime@users.noreply.github.com> --- docs/platforms/apple/common/configuration/options.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/platforms/apple/common/configuration/options.mdx b/docs/platforms/apple/common/configuration/options.mdx index e6f2993048545..a844ec942d5ff 100644 --- a/docs/platforms/apple/common/configuration/options.mdx +++ b/docs/platforms/apple/common/configuration/options.mdx @@ -30,7 +30,9 @@ Note that setting this to `false` doesn't prevent all overhead from Sentry instr -Turns debug mode on or off. If debug is enabled, SDK will attempt to print out useful debugging information if something goes wrong with sending the event. It's generally not recommended to turn it on in production, though this will not cause any safety concerns. +Turns debug mode on or off. If debug is enabled, SDK will attempt to print out useful debugging information if something goes wrong with sending the event. + +We don't recommend enabling debug mode in production. The SDK writes debug logs to the console synchronously, on the thread that logs them. When the SDK logs a lot, for example while tracing many view controllers, this can noticeably slow down your app and even cause app hangs. To log fewer messages while debugging, set to a less verbose level, such as `warning`. From f15e2411f8e0d2265ce655025c14845f5ee04303 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 11 Nov 2026 14:38:08 +0100 Subject: [PATCH 038/141] docs(react-native): Document SPM setup (#20727) ## DESCRIBE YOUR PR React Native 0.87 added an opt-in preview that links iOS dependencies with Swift Package Manager (SwiftPM). The React Native SDK supports it from 8.29.0, but the docs did not mention it. This PR adds a Swift Package Manager page under Manual Setup. The page lists the requirements and shows how to switch a project to SwiftPM and how to add Sentry to a project that already uses SwiftPM. It also covers the Expo config plugin version and common errors. The iOS section of the manual configuration now links to the page. Related to getsentry/sentry-react-native#6174. ## 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) --- .../common/manual-setup/manual-setup.mdx | 2 + .../manual-setup/swift-package-manager.mdx | 60 +++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 docs/platforms/react-native/common/manual-setup/swift-package-manager.mdx diff --git a/docs/platforms/react-native/common/manual-setup/manual-setup.mdx b/docs/platforms/react-native/common/manual-setup/manual-setup.mdx index b3ea6b06f2774..07af131d64604 100644 --- a/docs/platforms/react-native/common/manual-setup/manual-setup.mdx +++ b/docs/platforms/react-native/common/manual-setup/manual-setup.mdx @@ -26,6 +26,8 @@ pnpm add @sentry/react-native For iOS, the Sentry SDK wraps the React Native bundle process to upload source maps automatically. The SDK also adds a new Xcode Build Phase to upload debug symbols to ensure you get readable stack traces for your native crashes. +These steps are the same for CocoaPods and [Swift Package Manager](/platforms/react-native/manual-setup/swift-package-manager/) projects. + ### Add Privacy Manifest The SDK needs access to certain information about the device and the application for its essential functionality. Some of the APIs required for this are considered privacy-relevant. Add the privacy manifest to your Xcode project to ensure your app is compliant with Apple's guidelines. Read the [Apple Privacy Manifest](/platforms/react-native/data-management/apple-privacy-manifest/) guide for more info on how to add records required for the Sentry SDKs. diff --git a/docs/platforms/react-native/common/manual-setup/swift-package-manager.mdx b/docs/platforms/react-native/common/manual-setup/swift-package-manager.mdx new file mode 100644 index 0000000000000..b8fbcae73180c --- /dev/null +++ b/docs/platforms/react-native/common/manual-setup/swift-package-manager.mdx @@ -0,0 +1,60 @@ +--- +title: Swift Package Manager +description: "Learn how to use the Sentry React Native SDK in an iOS project that links native dependencies with Swift Package Manager instead of CocoaPods." +sidebar_order: 5 +--- + +React Native 0.87 added an opt-in preview that links iOS native dependencies with Swift Package Manager (SwiftPM) instead of CocoaPods. The Sentry React Native SDK ships a `Package.swift`, so React Native links it like any other SwiftPM dependency. + +CocoaPods is still the default. If your project uses CocoaPods, you don't need to change anything. + +## Requirements + +- React Native 0.87 or newer +- `@sentry/react-native` 8.29.0 or newer +- An iOS app. macOS, tvOS, and visionOS apps keep building with CocoaPods. + +## Switch an Existing Project to SwiftPM + +We recommend that you set up Sentry first and switch to SwiftPM after that. The Sentry build phases that upload source maps and debug symbols stay in your Xcode project when React Native removes CocoaPods. + +1. Set up the SDK with the [wizard](/platforms/react-native/) or the [manual configuration](/platforms/react-native/manual-setup/manual-setup/). + +2. Switch the iOS project to SwiftPM: + + ```bash + cd ios + npx react-native spm add --deintegrate + ``` + + The `--deintegrate` flag runs `pod deintegrate` and removes the React Native lines from your `Podfile`. If your project never used CocoaPods, leave out the flag. + +3. Build the app with `npx react-native run-ios`, or open the `.xcodeproj` file in Xcode. SwiftPM projects don't have an `.xcworkspace` file. + +## Add Sentry to a SwiftPM Project + +If your project already uses SwiftPM, run the [wizard](/platforms/react-native/) as usual. If the wizard asks whether to run `pod install`, select **No, I'll do it later**. SwiftPM projects don't use CocoaPods. + +You can also follow the iOS steps in the [manual configuration](/platforms/react-native/manual-setup/manual-setup/#ios). The build phases are the same for CocoaPods and SwiftPM projects. + +## Expo + +If you use the Sentry Expo config plugin in a SwiftPM project, use `@sentry/react-native` 8.32.0 or newer. In older versions, the _Upload Debug Symbols to Sentry_ build phase can't find `ios/.xcode.env` in SwiftPM projects, so it can fail to find Node. + +## Troubleshooting + +### `Package.swift is missing for library "@sentry/react-native"` + +Your SDK version doesn't support SwiftPM. Upgrade `@sentry/react-native` to 8.29.0 or newer. + +### `Package.swift is missing` for Another Library + +Every autolinked library needs a `Package.swift`, and many community libraries don't ship one yet. This is a React Native requirement, not a Sentry one. React Native prints the steps to fix it. For example, `npx react-native spm scaffold` can generate a `Package.swift` for a library that has a podspec. + +### `Sentry.xcframework` Fails to Download + +When Xcode resolves the packages, SwiftPM downloads `Sentry.xcframework` from the [sentry-cocoa GitHub releases](https://github.com/getsentry/sentry-cocoa/releases). If your network blocks GitHub, allow access to it on the machine that builds the app. + +### Go Back to CocoaPods + +Run `npx react-native spm deinit` in the `ios` directory to remove what `spm add` added to your Xcode project. Then restore your `Podfile` from version control and run `pod install`. From 1a20327db1bdfee8f033aa6e6fb1611c90a24514 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, 11 Nov 2026 14:16:02 +0000 Subject: [PATCH 039/141] Bump API schema to 4c9379a2 (#20729) 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 fbb467d606ca6..1572cd56b42d8 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 = 'f13098b1512093f92f3a1c432967f3a9b2fdc501'; +const SENTRY_API_SCHEMA_SHA = '4c9379a29259510debf73d4df341b85455039bbf'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 0c2d0f8b4bb44a41786c8dfab2107f7a611572e9 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, 11 Nov 2026 14:24:35 +0000 Subject: [PATCH 040/141] Bump API schema to 699efd0b (#20730) 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 1572cd56b42d8..56df5c53cb207 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 = '4c9379a29259510debf73d4df341b85455039bbf'; +const SENTRY_API_SCHEMA_SHA = '699efd0b4f5289c4a47fcaa90727938599ac5db4'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From dcc0a19eb9fc5b57775a2ae84a67de91286dde9a Mon Sep 17 00:00:00 2001 From: Andrei <168741329+andreiborza@users.noreply.github.com> Date: Wed, 11 Nov 2026 16:12:48 +0100 Subject: [PATCH 041/141] docs(develop): Document decision and extraction spans (#20107) ## What Adds the Decision Span (`gen_ai.decide`) and Extraction Span (`gen_ai.extract`) to the AI Agents module page, and fixes the extract op in the span relationship examples. `` can now show a specific example from the conventions, so these spans show decide and extract examples instead of chat ones. ## Why SDKs need to know what to send for these spans. The message field details will come from getsentry/sentry-conventions#728 once they land there. --------- Co-authored-by: Claude Opus 5.5 --- .../telemetry/traces/modules/ai-agents.mdx | 52 ++++++++++++++++++- .../conventionAttributes/index.spec.tsx | 18 +++++++ src/components/conventionAttributes/index.tsx | 29 +++++++---- 3 files changed, 88 insertions(+), 11 deletions(-) diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx index 41dfbdd89b7ac..4b200f07353b2 100644 --- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx +++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx @@ -38,7 +38,7 @@ Valid examples: gen_ai.invoke_agent ├── gen_ai.chat ├── gen_ai.memory -├── gen_ai.extraction +├── gen_ai.extract ├── gen_ai.chat ├── gen_ai.execute_tool ├── gen_ai.chat @@ -49,7 +49,7 @@ gen_ai.invoke_agent ``` gen_ai.chat -gen_ai.extraction +gen_ai.extract gen_ai.invoke_agent ├── gen_ai.chat ├── gen_ai.execute_tool @@ -179,6 +179,54 @@ Additional attributes on the span: ]} /> +## Decision Span + +Describes a decision on generated content against a set of questions, such as grading a model's reply for accuracy or classifying a support message, for example from TypeSafe Jev. Sentry shows decisions as their own rows in the conversation transcript and timeline, with dedicated **Input** and **Output** views. + +- Span `op` is `"gen_ai.decide"`. +- Span `name` is `"decide {gen_ai.request.model}"`. (e.g. `"decide typesafe/jev-1.13"`) +- Attribute `gen_ai.operation.name` is `"decide"`. Decisions share the `ai_client` operation type with model calls, so this attribute is what tells them apart. +- Attribute `gen_ai.request.model` is the requested model. (e.g. `"typesafe/jev-1.13"`) Without a model, Relay doesn't classify the span as `ai_client`. +- Attribute `gen_ai.response.model` is the concrete response model, if the provider reports one. (e.g. `"typesafe/jev-1.13-20260917"`) +- If the decision runs under an agent, the `gen_ai.agent.name` attribute is the name of the agent. (e.g. `"Support Agent"`) + +Additional attributes on the span: + + + +`gen_ai.input.messages` holds a one-element array with the content being evaluated (`state`) and the questions asked about it (`questions`). `gen_ai.output.messages` holds a one-element array with the answers (`answers`), keyed by the same question names. + +## Extraction Span + +Describes an extraction of typed fields from an input, such as the total and due date of an invoice, for example from Cloudflare Clairic. The model can extract values that are in the input, compute values from them, and estimate or forecast values that the input doesn't determine. + +- Span `op` is `"gen_ai.extract"`. +- Span `name` is `"extract {gen_ai.request.model}"`. (e.g. `"extract @cf/cloudflare/clairic"`) +- Attribute `gen_ai.operation.name` is `"extract"`. +- Attribute `gen_ai.request.model` is the requested model. (e.g. `"@cf/cloudflare/clairic"`) +- Attribute `gen_ai.response.model` is the concrete response model, if the provider reports one. (e.g. `"clairic"`) +- If the extraction runs under an agent, the `gen_ai.agent.name` attribute is the name of the agent. (e.g. `"Billing Agent"`) + +Additional attributes on the span: + + + +`gen_ai.input.messages` holds a one-element array with the request body as the caller passed it, without `model`. `gen_ai.output.messages` holds a one-element array with the response body as the provider returned it, without `model` and `usage`. Don't send the other usage counts that the provider reports (such as Clairic's `state_tokens`, `image_tokens`, `schema_tokens`, and `passes`). `gen_ai.usage.input_tokens` already includes them. + ## Derived by Relay Relay sets these attributes during ingestion: diff --git a/src/components/conventionAttributes/index.spec.tsx b/src/components/conventionAttributes/index.spec.tsx index 1904e6d1cd95b..8738f8c95b440 100644 --- a/src/components/conventionAttributes/index.spec.tsx +++ b/src/components/conventionAttributes/index.spec.tsx @@ -58,4 +58,22 @@ describe('ConventionAttributes', () => { `"${ATTRIBUTE_METADATA['gen_ai.tool.name'].example}"` ); }); + + it('renders the example at the given index', () => { + const html = renderToStaticMarkup( + + ); + const examples = ATTRIBUTE_METADATA['gen_ai.input.messages'].examples!; + + expect(html).toContain(`'${examples[1]}'`.replaceAll('"', '"')); + expect(html).not.toContain(`'${examples[0]}'`.replaceAll('"', '"')); + }); + + it('throws on an example index that does not exist', () => { + expect(() => + renderToStaticMarkup( + + ) + ).toThrow('attribute "gen_ai.tool.name" has no example at index 99'); + }); }); diff --git a/src/components/conventionAttributes/index.tsx b/src/components/conventionAttributes/index.tsx index 77b4fa4a1d7f4..507132c28bcf5 100644 --- a/src/components/conventionAttributes/index.tsx +++ b/src/components/conventionAttributes/index.tsx @@ -6,7 +6,7 @@ import { import {micromark} from 'micromark'; type Props = { - attributes: (string | {key: string; notes?: string})[]; + attributes: (string | {key: string; example?: number; notes?: string})[]; }; const metadata: Record = ATTRIBUTE_METADATA; @@ -17,7 +17,11 @@ const metadata: Record = ATTRIBUTE_METADATA; */ export function ConventionAttributes({attributes}: Props) { const rows = attributes.map(row => { - const {key, notes} = typeof row === 'string' ? {key: row} : row; + const { + key, + notes, + example: exampleIndex, + } = typeof row === 'string' ? {key: row} : row; // `Object.hasOwn` so keys like `constructor` don't pass as known attributes. const attribute = Object.hasOwn(metadata, key) ? metadata[key] : undefined; if (!attribute) { @@ -26,7 +30,18 @@ export function ConventionAttributes({attributes}: Props) { const description = micromark([attribute.brief, notes].filter(Boolean).join(' ')) .replace(/^

/, '') .replace(/<\/p>$/, ''); - return {key, attribute, description}; + // Pick one of `examples` by index when the page asks for it, so a page can + // show the example that fits its context. + let example = attribute.example; + if (exampleIndex !== undefined) { + if (!attribute.examples || !Object.hasOwn(attribute.examples, exampleIndex)) { + throw new Error( + `: attribute "${key}" has no example at index ${exampleIndex}` + ); + } + example = attribute.examples[exampleIndex]; + } + return {key, attribute, description, example}; }); return ( @@ -40,7 +55,7 @@ export function ConventionAttributes({attributes}: Props) { - {rows.map(({key, attribute, description}) => ( + {rows.map(({key, attribute, description, example}) => ( {key} @@ -51,11 +66,7 @@ export function ConventionAttributes({attributes}: Props) { style={{whiteSpace: 'normal', minWidth: '300px'}} dangerouslySetInnerHTML={{__html: description}} /> - - {attribute.example !== undefined && ( - {formatExample(attribute.example)} - )} - + {example !== undefined && {formatExample(example)}} ))} From 3e07aad45c6ca09179d46e5984859b6f8f783136 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 15:32:35 +0000 Subject: [PATCH 042/141] docs(develop): Document Objectstore hostAliases for Envoy sidecar (#20731) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Objectstore page tells services outside Sentry to call `http://objectstore` and route that hostname through their Envoy sidecar. It doesn't say that the pod also needs a `hostAliases` entry that maps `objectstore` to the sidecar's intercept IP. Without that entry, the sidecar doesn't intercept the requests. This adds that step to **Production Setup for Sentry Employees → Another Service**, with a short `hostAliases` snippet. Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan Michael Auer <1433023+jan-auer@users.noreply.github.com> --- develop-docs/services/objectstore.mdx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/develop-docs/services/objectstore.mdx b/develop-docs/services/objectstore.mdx index 385009640fe89..692761bf93234 100644 --- a/develop-docs/services/objectstore.mdx +++ b/develop-docs/services/objectstore.mdx @@ -199,8 +199,22 @@ this configuration automatically. The central Objectstore route already exists. Don't create another route for a new calling service. Instead, configure the client endpoint as `http://objectstore` and route the `objectstore` hostname through the service's -Envoy sidecar. You can find a complete example in -`k8s/services/launchpad/_values.yaml`. +Envoy sidecar. + +For the sidecar to intercept these requests, map `objectstore` to its intercept +IP in every deployment that calls Objectstore: + +```yaml {filename:k8s/services//deployment.yaml} +spec: + template: + spec: + hostAliases: + - ip: "{{ intercept_ip }}" + hostnames: + - objectstore +``` + +You can find a complete example in `k8s/services/launchpad/_values.yaml`. If your service uses direct authentication, additionally provision credentials: From 89d78d2c115059e7af22439dc74b244f5460d7a7 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Wed, 11 Nov 2026 17:56:24 +0100 Subject: [PATCH 043/141] docs(android): Add experimental out-of-process crash handling (#20431) ## DESCRIBE YOUR PR Document the opt-in out-of-process backend of the NDK integration, which captures native crashes in a separate crash service process and sends them right away. Cover enabling it with and without the Sentry Android Gradle Plugin, the API 30+ requirement, and what the separate process means for the app. See: - getsentry/sentry-native#1725 - getsentry/sentry-java#6347 ## 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/) --- .../android/configuration/using-ndk.mdx | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/docs/platforms/android/configuration/using-ndk.mdx b/docs/platforms/android/configuration/using-ndk.mdx index a3b851fc57013..100fb8d7fd658 100644 --- a/docs/platforms/android/configuration/using-ndk.mdx +++ b/docs/platforms/android/configuration/using-ndk.mdx @@ -136,6 +136,99 @@ You can also configure these options in `AndroidManifest.xml`, which is useful w For details about the native watchdog and heartbeat behavior, see the [Native SDK app hang documentation](/platforms/native/app-hangs/). +## Out-of-Process Crash Handling + +By default, the NDK integration handles a native crash inside the crashing process, and the SDK sends it the next time the app starts. With out-of-process crash handling, a crash service in a separate process captures the crash and sends it right away. This way, you see native crashes even from users who don't open the app again. + + + +Out-of-process crash handling is experimental. It requires Android 11 (API level 30) or later. On older Android versions, the SDK doesn't report native crashes in this mode. + + + +To enable it, add `sentry-android-ndk-outproc` and exclude `sentry-native-ndk`, which the `sentry-android` bundle includes: + +```groovy {filename:app/build.gradle} +dependencies { + implementation "io.sentry:sentry-android-ndk-outproc:{{@inject packages.version('sentry.java.android', '8.64.0') }}" +} + +configurations.configureEach { + exclude group: "io.sentry", module: "sentry-native-ndk" +} +``` + +```kotlin {filename:app/build.gradle.kts} +dependencies { + implementation("io.sentry:sentry-android-ndk-outproc:{{@inject packages.version('sentry.java.android', '8.64.0') }}") +} + +configurations.configureEach { + exclude(group = "io.sentry", module = "sentry-native-ndk") +} +``` + +You don't need to exclude `sentry-native-ndk` if you use `sentry-android-core` instead of the `sentry-android` bundle. If the build contains both native packages, Gradle fails with a conflict on the capability `io.sentry:sentry-ndk-backend`. + +If you [link against the NDK libraries](#allowing-the-compiler-to-link-libraries), keep your `CMakeLists.txt`, but depend on `io.sentry:sentry-native-ndk-outproc` instead of `io.sentry:sentry-native-ndk`. + +Keep in mind: + +- The crash service runs in a separate process, `.sentry_ndk_crash`, while your app runs, and uses additional memory. +- Android creates a second instance of your `Application` in that process. See [Second Application Instance](#second-application-instance). +- With the [Tombstone Integration](/platforms/android/configuration/tombstones/) enabled on Android 12 (API level 31) or later, the crash service merges the tombstone into the native crash event before it sends it. +- If the crash service can't finish sending the crash, the SDK sends it on a later app start. This can happen without a network connection, or on Android 14 (API level 34) and later, where Android freezes the service 10 seconds after the app exits. + +### Second Application Instance + +Android creates a second instance of your `Application` class in the crash service process. The SDK skips its own initialization there, so only one SDK runs and sessions aren't tracked twice. + + + +Code in `Application.onCreate` also runs in the crash service process, which can initialize libraries twice, repeat background work, or cause conflicts over shared files. + + + +To run startup code only in the main process, return early from `Application.onCreate` in other processes: + +```kotlin {filename:MyApplication.kt} +class MyApplication : Application() { + override fun onCreate() { + super.onCreate() + if (!isMainProcess()) return + + // your startup work + } + + private fun isMainProcess() = + Build.VERSION.SDK_INT < Build.VERSION_CODES.P || + Application.getProcessName() == applicationInfo.processName + // or, to skip only the crash service process: + // !Application.getProcessName().endsWith(".sentry_ndk_crash") +} +``` + +```java {filename:MyApplication.java} +public class MyApplication extends Application { + @Override + public void onCreate() { + super.onCreate(); + if (!isMainProcess()) { + return; + } + + // your startup work + } + + private boolean isMainProcess() { + return Build.VERSION.SDK_INT < Build.VERSION_CODES.P + || Application.getProcessName().equals(getApplicationInfo().processName); + // or, to skip only the crash service process: + // || !Application.getProcessName().endsWith(".sentry_ndk_crash"); + } +} +``` + ## Disable NDK Integration You can disable the NDK integration by adding the following to your `AndroidManifest.xml`: From 29b1964852b55ea93160687844c8db306d9fffc7 Mon Sep 17 00:00:00 2001 From: Dan Fuller Date: Wed, 11 Nov 2026 12:41:58 -0500 Subject: [PATCH 044/141] docs(crons): Document monitor config from @Scheduled for Spring @SentryCheckIn (#19780) ## DESCRIBE YOUR PR Documents the opt-in `@SentryCheckIn(upsertMonitorConfig = true)` attribute for Spring Boot: it sends a monitor config derived from the method's `@Scheduled`, so Sentry creates the monitor from code. Adds a section on which `@Scheduled` settings convert, and narrows "create the monitor in Sentry first" to methods that don't opt in, older SDKs, and schedules that can't be converted. SDK PR: https://github.com/getsentry/sentry-java/pull/6215 ## 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) --------- Co-authored-by: Claude Opus 5.5 --- platform-includes/crons/requirements/java.mdx | 2 +- .../crons/setup/java.spring-boot.mdx | 24 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/platform-includes/crons/requirements/java.mdx b/platform-includes/crons/requirements/java.mdx index 13baa55a15e56..510d0678eb16c 100644 --- a/platform-includes/crons/requirements/java.mdx +++ b/platform-includes/crons/requirements/java.mdx @@ -6,5 +6,5 @@ - Send a monitor configuration from your code as shown below, and Sentry creates the monitor on the first check-in. You can also [create the monitor in Sentry](https://sentry.io/issues/alerts/new/crons/) instead. -- [Create the monitor in Sentry](https://sentry.io/issues/alerts/new/crons/) first. `@SentryCheckIn` does not send a monitor configuration, so Sentry drops check-ins for a slug that has no monitor. +- From Sentry Java SDK version `8.64.0`, `@SentryCheckIn(upsertMonitorConfig = true)` sends a monitor configuration based on the method's `@Scheduled` annotation, and Sentry creates the monitor on the first check-in. Without it, on older SDK versions, or for schedules that can't be converted, [create the monitor in Sentry](https://sentry.io/issues/alerts/new/crons/) first, because Sentry drops check-ins for a slug that has no monitor. diff --git a/platform-includes/crons/setup/java.spring-boot.mdx b/platform-includes/crons/setup/java.spring-boot.mdx index a711aa8b2bcdb..b48a78d756b9d 100644 --- a/platform-includes/crons/setup/java.spring-boot.mdx +++ b/platform-includes/crons/setup/java.spring-boot.mdx @@ -52,6 +52,30 @@ public class CustomJob { } ``` +### Monitor Configuration From `@Scheduled` + +From Sentry Java SDK version `8.64.0`, set `upsertMonitorConfig = true` and `@SentryCheckIn` reads the method's `@Scheduled` annotation and sends a monitor configuration with the in-progress check-in, so Sentry creates the monitor, or updates its schedule, from your code: + +```java +@Scheduled(cron = "0 0 * * * *") +@SentryCheckIn(value = "", upsertMonitorConfig = true) // 👈 +void execute() { + // your task code +} +``` + +The schedule is converted like this: + +- `cron`: a Spring cron expression with a fixed seconds field (for example `0 0 * * * *`) is sent as a crontab schedule without the seconds. If the seconds field isn't `0`, a check-in margin of 2 minutes is sent too, since the job checks in up to 59 seconds after the minute Sentry expects. This replaces a margin set in Sentry; set a larger `options.cron` default check-in margin to keep it. Spring macros such as `@hourly` and `@daily` are supported. +- `fixedRate` (including `fixedRateString`, such as `"5m"` or `"PT5M"`, and `timeUnit`): sent as an interval schedule when the period is a whole number of minutes. `fixedDelay` jobs send no monitor config. +- `zone`: sent as the monitor's timezone for cron schedules. Without `zone`, the JVM's default time zone is sent, since that's where Spring runs the job. It must be an IANA time zone ID such as `Europe/Vienna`; whole-hour offsets such as `GMT+2` are sent as `Etc/GMT-2`. + +Placeholders such as `${app.cleanup.cron}` are resolved. No configuration is sent for cron expressions with variable seconds (for example `*/30 * * * * *`), cron expressions that set both day-of-month and day-of-week (on Spring 5.3 and later, a day-of-month step such as `0 0 9 */2 * MON` is converted; on older Spring versions, none are), `#5` days of week on Spring 5.3 and later, cron syntax Sentry doesn't support (such as `15W`, `L-3`, or wrap-around ranges like `22-2`), other time zones, periods that aren't whole minutes, methods with more than one `@Scheduled`, or heartbeat check-ins. For those, for methods without `upsertMonitorConfig = true`, and for older SDK versions, [create the monitor in Sentry](https://sentry.io/issues/alerts/new/crons/) first. + +Sentry only updates the fields that were sent. Margins, max runtime, and thresholds configured in Sentry are kept unless you set defaults for them in `options.cron`, which are sent only with check-ins that carry a monitor configuration. + +When you turn on `upsertMonitorConfig` for a monitor that already exists, it gets the schedule and timezone from `@Scheduled` (the JVM's default time zone if `zone` isn't set), overwriting the ones set in Sentry. + ## Heartbeat Heartbeat monitoring notifies Sentry of a job's status through one check-in. This setup will only notify you if your job didn't start when expected (missed). If you need to track a job to see if it exceeded its maximum runtime (failed), use check-ins instead. To start sending heartbeats simply add the `@SentryCheckIn(monitorSlug = "", heartbeat = true)` annotation to the method you want to send heartbeats for. From d98d5ea657efc068f65ab74336ea2a88cdbc1446 Mon Sep 17 00:00:00 2001 From: Dan Fuller Date: Wed, 11 Nov 2026 12:52:35 -0500 Subject: [PATCH 045/141] docs(java): Document Quartz monitor config upsert (#19777) ## DESCRIBE YOUR PR Adds a "Monitor Config" section to the Quartz integration page. With `SentryJobListener.SENTRY_UPSERT_MONITOR_CONFIG_KEY` set to `"true"`, `SentryJobListener` sends a monitor config derived from the job's trigger, so Sentry creates the monitor from code. The section covers how to turn it on, which triggers convert, and what happens to a monitor created in Sentry. SDK PR: https://github.com/getsentry/sentry-java/pull/6216 ## 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) --------- Co-authored-by: Claude Opus 5.5 --- .../java/common/integrations/quartz.mdx | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/docs/platforms/java/common/integrations/quartz.mdx b/docs/platforms/java/common/integrations/quartz.mdx index 306141d22fb6b..288cf74d36409 100644 --- a/docs/platforms/java/common/integrations/quartz.mdx +++ b/docs/platforms/java/common/integrations/quartz.mdx @@ -79,3 +79,40 @@ Setting the monitor slug on the `Trigger` will override what is set on the `JobD Setting a global job listener using a `SchedulerFactoryBeanCustomizer` in Spring Boot, will override the listener set by Sentry. For Sentry to work properly, you need to add a new `SentryJobListener` instance to the global job listeners. + +## Monitor Config + +From Sentry Java SDK version `8.64.0`, `SentryJobListener` can send a monitor config derived from the job's trigger with each check-in, so Sentry creates the monitor (or updates its schedule) from your code. + +To turn it on for a job, set `SentryJobListener.SENTRY_UPSERT_MONITOR_CONFIG_KEY` to the string `"true"` in the job data map, next to the monitor slug. Like the slug, it also works in the trigger's job data map: + +```java +Map jobData = new HashMap<>(); +jobData.put(SentryJobListener.SENTRY_SLUG_KEY, ""); +jobData.put(SentryJobListener.SENTRY_UPSERT_MONITOR_CONFIG_KEY, "true"); + +JobDetailFactoryBean jobDetailFactory = new JobDetailFactoryBean(); +jobDetailFactory.setJobDataAsMap(jobData); +``` + +The config is derived like this: + +- `CronTrigger`: the cron expression and the trigger's time zone. The seconds field must be a fixed number, and the year field, if set, must be `*`. If the seconds field isn't `0`, a check-in margin of 2 minutes is sent too, since the job checks in up to 59 seconds after the minute Sentry expects. This replaces a margin set in Sentry; set a larger `options.cron` default check-in margin to keep it. +- `SimpleTrigger` that repeats forever: the repeat interval, if it's a whole number of minutes. + +No monitor config is sent for: + +- Other trigger types +- Triggers with a `Calendar` +- Jobs with more than one trigger +- Cron expressions with syntax Sentry doesn't support, such as `15W`, `L-3`, or wrap-around ranges like `FRI-MON` +- Cron expressions with a step after a day or month name, such as `MON/2` (which Quartz runs every Monday) +- Time zones that aren't IANA time zone IDs, except whole-hour offsets such as `GMT+2`, which are sent as `Etc/GMT-2` + +For these, create the monitor in Sentry first. + + + +When you turn this on for a monitor you created in Sentry, it takes its schedule and time zone from the trigger. + + From 43466edd08d476412d60fa2ec1432f3ad5a80a3d 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, 11 Nov 2026 18:08:58 +0000 Subject: [PATCH 046/141] Bump API schema to 51beb3e8 (#20733) 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 56df5c53cb207..4bf348fbd961b 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 = '699efd0b4f5289c4a47fcaa90727938599ac5db4'; +const SENTRY_API_SCHEMA_SHA = '51beb3e8a9f7c9eeb6d926dc14695838a30986db'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 1ce7b43e41967abc017c0daf0db32e8015eacd30 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:10:47 -0500 Subject: [PATCH 047/141] docs(issues): Update Issues page for the Feed and Issue Views (#20436) ## DESCRIBE YOUR PR The Issues page still describes tabs and a "Saved Searches" button that no longer exist. It now describes the Feed (defaults to `is:unresolved`, [`overviewWrapper.tsx:19`](https://github.com/getsentry/sentry/blob/299b0360b711c1b4789af9565a86dcd3655f8c46/static/app/views/issueList/overviewWrapper.tsx#L19)), sidebar categories, and Issue Views, and keeps the old tab queries as search filters. Also renames the "First Seen" sort to "Age" ([`issueList/utils.tsx:48`](https://github.com/getsentry/sentry/blob/299b0360b711c1b4789af9565a86dcd3655f8c46/static/app/views/issueList/utils.tsx#L48)). The `issue_page.png` and `issue_sort.png` screenshots weren't updated. ## 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+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Acd76d2b1eb315491cc19f5b82dd807b3) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Acd76d2b1eb315491cc19f5b82dd807b3/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper --- docs/product/issues/index.mdx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/product/issues/index.mdx b/docs/product/issues/index.mdx index 98e617b157469..16099fab95e8d 100644 --- a/docs/product/issues/index.mdx +++ b/docs/product/issues/index.mdx @@ -34,8 +34,7 @@ For error issues, to see the stack trace of the latest event, you can hover over ![Error level icon](./img/error_level.png) -{/* TODO(msun): Update this when issue views are GA'd */} -You can save your issue queries and access them later by clicking the "Saved Searches" button in the header. Learn more in [Saved Searches](/concepts/search/saved-searches/). You can also add issues data to your [custom dashboards](/product/dashboards/custom-dashboards/) as widgets using the [dataset selector](/product/dashboards/widget-builder/#choose-your-dataset). +You can save your issue queries as [Issue Views](/product/issues/issue-views/) and open them later from the **Issues** sidebar. You can also add issues data to your [custom dashboards](/product/dashboards/custom-dashboards/) as widgets using the [dataset selector](/product/dashboards/widget-builder/#choose-your-dataset). When you click on an issue on the main **Issues** page, the **Issue Details** page for that issue is displayed. Learn more in [Issue Details](/product/issues/issue-details/). @@ -51,13 +50,14 @@ Sentry creates issues for more than just errors. The **Issues** page sidebar gro ## Issue Triage -From the **Issues** page, you can begin to triage. The page is organized into tabs, each corresponding to a filtered list of issues, and these different lists help you with triaging: +From the **Issues** page, you can begin to triage. The **Feed** shows all unresolved issues (`is:unresolved`) by default. Use the sidebar categories to narrow it to one kind of problem, or search with one of these filters: -- All Unresolved (`is:unresolved`): All unresolved issues, including issues that need review. -- For Review (`is:unresolved is:for_review`). Also called **Review List**, for-review issues are a subset of all unresolved issues and can include new issues or regressions that haven't been reviewed yet. -- Regressed (`is:regressed`): All regressed issues; resolved issues that have come up again. -- Archived (`is:archived`): All archived issues. -- Escalating (`is:escalating`): All escalating issues; previously archived issues that have exceeded their forecasted event volume. +- `is:for_review`: Also called **Review List**, for-review issues are a subset of all unresolved issues and can include new issues or regressions that haven't been reviewed yet. +- `is:regressed`: All regressed issues; resolved issues that have come up again. +- `is:archived`: All archived issues. +- `is:escalating`: All escalating issues; previously archived issues that have exceeded their forecasted event volume. + +To keep a list you use often, save it as an [Issue View](/product/issues/issue-views/). Learn more about triaging issues and their different states in [Issue States and Triage](/product/issues/states-triage/). @@ -71,7 +71,7 @@ Change how issues are sorted in the issues stream by selecting from the sort dro - **Recommended**: The issues most relevant to you are shown first. Sentry combines a variety of signals to determine which issues are most likely to need your attention. - **Last Seen**: The most recent events are shown first. -- **First Seen**: The newest issues are shown first. +- **Age**: The newest issues are shown first. - **Trends**: New issues and escalating issues (with event volumes trending upward) are shown first. Older issues and issues with fewer recent events are sorted lower. The ranking currently relies on three primary factors: - Relative volume: Escalating issues that have a higher recent volume (relative to their baseline) are ranked higher. - Absolute volume: Issues with more event volume are weighted more highly. Recent events are weighted more than old events. From 55a8557d82c86088f4af3ca99a58150cc4826c06 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:10:55 -0500 Subject: [PATCH 048/141] docs(issues): List all supported repo providers for Web Vitals issues (#20507) ## DESCRIBE YOUR PR The Web Vitals issue page says a GitHub code mapping is required. Detection accepts any code mapping whose repo uses a Seer-supported provider: GitHub, GitHub Enterprise, GitLab, or Cursor Origin. - [web_vitals_issue_detection.py#L338-L354](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/tasks/web_vitals_issue_detection.py#L338-L354) - [seer_setup.py#L12-L18](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/seer/seer_setup.py#L12-L18), [seer/constants.py#L17-L35](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/seer/constants.py#L17-L35) - Cursor Origin is behind `organizations:seer-cursor-origin-support`, which is at 100% GA in options-automator flagpole. Prettier also changed `*` bullets to `-`. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] No deadline: Not urgent, can wait up to 1 week+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper --- .../performance-issues/web-vitals/index.mdx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/product/issues/issue-details/performance-issues/web-vitals/index.mdx b/docs/product/issues/issue-details/performance-issues/web-vitals/index.mdx index d2b22541df28c..47a55dddbaa27 100644 --- a/docs/product/issues/issue-details/performance-issues/web-vitals/index.mdx +++ b/docs/product/issues/issue-details/performance-issues/web-vitals/index.mdx @@ -24,7 +24,7 @@ The detector for this performance issue runs on a schedule and checks the 7 day The following additional criteria must hold true: - You must have [Seer](/product/ai-in-sentry/seer/) enabled on your Sentry account. -- You must have a [GitHub code mapping](/integrations/source-code-mgmt/code-mappings/) configured for your project. +- You must have a [code mapping](/integrations/source-code-mgmt/code-mappings/) configured for your project that points to a GitHub, GitHub Enterprise, GitLab, or [Cursor Origin](/integrations/source-code-mgmt/cursor-origin/) repository. - There must be at least `10` sample spans for the given vital (_this value is [configurable](/product/issues/issue-details/performance-issues/#configuration)_). - There must be no issues currently open for the same Web Vitals metrics on the page being evaluated. @@ -33,9 +33,9 @@ The following additional criteria must hold true: You can view the [Web Vitals](/product/dashboards/sentry-dashboards/frontend/web-vitals/) dashboard to get an understanding of what pages will trigger the Web Vitals performance issue: -* A _loading / render performance issue_ will be opened, if [Time to First Byte](https://web.dev/articles/ttfb#what_is_ttfb) (TTFB), [Largest Contentful Paint](https://web.dev/articles/lcp#what-is-lcp) (LCP), or [First Contentful Paint](https://web.dev/articles/fcp#what-is-fcp) (FCP) falls into or below the `Meh` threshold. -* A _page stability issue_ will be opened, if [Cumulative Layout Shift](https://web.dev/articles/cls#what-is-cls) (CLS) falls below the `Meh` threshold. -* An _interaction performance issue_ will be opened, if [Interaction to Next Paint](https://web.dev/articles/inp#what-is-inp) (INP) falls below the `Meh` threshold. +- A _loading / render performance issue_ will be opened, if [Time to First Byte](https://web.dev/articles/ttfb#what_is_ttfb) (TTFB), [Largest Contentful Paint](https://web.dev/articles/lcp#what-is-lcp) (LCP), or [First Contentful Paint](https://web.dev/articles/fcp#what-is-fcp) (FCP) falls into or below the `Meh` threshold. +- A _page stability issue_ will be opened, if [Cumulative Layout Shift](https://web.dev/articles/cls#what-is-cls) (CLS) falls below the `Meh` threshold. +- An _interaction performance issue_ will be opened, if [Interaction to Next Paint](https://web.dev/articles/inp#what-is-inp) (INP) falls below the `Meh` threshold. ![Web Vitals evidence](./img/web-vitals-evidence.png) @@ -43,6 +43,6 @@ to get an understanding of what pages will trigger the Web Vitals performance is We highly recommend using [Seer's Autofix](/product/ai-in-sentry/seer/#autofix) functionality to diagnose and fix the Web Vitals Issues we've opened. Alternatively, there is lots of great documentation online about how to improve specific web vitals metrics, see: -* [Optimize Largest Contentful Paint](https://web.dev/articles/optimize-lcp). -* [Optimize Cumulative Layout Shift](https://web.dev/articles/optimize-cls). -* [Optimize Interaction to Next Paint](https://web.dev/articles/optimize-inp). +- [Optimize Largest Contentful Paint](https://web.dev/articles/optimize-lcp). +- [Optimize Cumulative Layout Shift](https://web.dev/articles/optimize-cls). +- [Optimize Interaction to Next Paint](https://web.dev/articles/optimize-inp). From 892787134d8c91dbbbbbe2f1a478b7220e6ad0a9 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:11:07 -0500 Subject: [PATCH 049/141] docs(issues): Fix replay issue search, rage click alert steps, and hydration diff tab names (#20509) ## DESCRIBE YOUR PR - **Search:** `issue.category:replay` matches nothing. Rage click and hydration error types are in the `FRONTEND` category ([grouptype.py#L734-L754](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L734-L754)), and category search only expands to types in that category ([issue_search.py#L186-L199](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/issue_search.py#L186-L199)). Use `issue.type:[replay_click_rage,replay_hydration_error]` instead. - **Rage click alerts:** the old steps used the legacy issue alert form with category "Replay". Rewrote them for **Monitors > Alerts** with the **Issue type** filter, "Issue type is equal to Rage Click Detected" ([issueType.tsx](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/static/app/views/automations/components/actionFilters/issueType.tsx), [group.tsx#L312](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/static/app/types/group.tsx#L312)). - **Hydration error diff tabs:** headings now match the tab labels: Slider Diff, Side By Side Diff, Mutations (was "Tree Compare"), HTML Diff ([replayDiffChooser.tsx#L31-L34](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/static/app/components/replays/diff/replayDiffChooser.tsx#L31-L34)). ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] No deadline: Not urgent, can wait up to 1 week+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper --- .../replay-issues/hydration-error.mdx | 8 ++++---- .../issue-details/replay-issues/index.mdx | 6 ++---- .../replay-issues/rage-clicks.mdx | 18 ++++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/product/issues/issue-details/replay-issues/hydration-error.mdx b/docs/product/issues/issue-details/replay-issues/hydration-error.mdx index 2bfa537a93e31..3ffcec4c0a502 100644 --- a/docs/product/issues/issue-details/replay-issues/hydration-error.mdx +++ b/docs/product/issues/issue-details/replay-issues/hydration-error.mdx @@ -26,21 +26,21 @@ In the example below we'll look at a hydration error and see how each tool helps The problem is that the left and right sidebars have some dynamic content that is inserted on the client, but not rendered on the server. -### Image Slider +### Slider Diff The image slider tool allows for comparing the two page states by overlaying the images on top of each other. Click and drag the purple line to reveal one image or the other. ![image slider tool](./img/hydration-error-image-slider-tool.gif) -### Side-by-Side Image +### Side By Side Diff View images side-by-side to see large chunks of the page that may differ. ![side by side image tool](./img/hydration-error-side-by-side-image-tool.png) -### Tree Compare +### Mutations -Use the tree compare tool to list specifically which DOM nodes were added, removed, or had attributes changed. +Use the **Mutations** tab to list specifically which DOM nodes were added, removed, or had attributes changed. You can see each change to the page, and when it happened within the context of the hydration error. In this case one mutation happened at the timestamp `1732089574790` which was at time offset `1790`, or 1.7 seconds since the start of the captured replay. Within this mutation 39 nodes were added, 2 nodes had some attributes changed, and 4 nodes were removed. diff --git a/docs/product/issues/issue-details/replay-issues/index.mdx b/docs/product/issues/issue-details/replay-issues/index.mdx index 3daf1f2d48e29..4b0fa5019446b 100644 --- a/docs/product/issues/issue-details/replay-issues/index.mdx +++ b/docs/product/issues/issue-details/replay-issues/index.mdx @@ -8,9 +8,7 @@ If you've enabled [Session Replay](/product/session-replay/), you'll be able to ## Quota Consumption - -Replay issues do not consume error quota. - +Replay issues do not consume error quota. When a replay is created it consumes [replay quota](/pricing/quotas/manage-replay-quota/) (not to be confused with [error quota](/pricing/quotas/manage-event-stream-guide/)). As the replay is being processed by the server Sentry detects the replay issue types listed below and groups those into issues. These errors are created on the backend after ingest and do not consume error quota. They will not appear on your [stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) page under the "Total Errors" or "Accepted Errors" graphs. You are not billed for their volume. @@ -22,4 +20,4 @@ When a replay is created it consumes [replay quota](/pricing/quotas/manage-repla ## Searching for Replay Issues -If you use the term `issue.category:replay` in Issue Details search, you'll be able to filter for rage click and hydration error issues. +To filter for rage click and hydration error issues, search the **Issues** page for `issue.type:[replay_click_rage,replay_hydration_error]`. diff --git a/docs/product/issues/issue-details/replay-issues/rage-clicks.mdx b/docs/product/issues/issue-details/replay-issues/rage-clicks.mdx index b6b6efbc6e583..078526505344b 100644 --- a/docs/product/issues/issue-details/replay-issues/rage-clicks.mdx +++ b/docs/product/issues/issue-details/replay-issues/rage-clicks.mdx @@ -15,8 +15,9 @@ In order to see rage clicks in your issue stream on the **Issues** page, your or - Enable the JavaScript SDK (or framework-specific bundle), version 7.60.1 or higher - While you can enable **Session Replay** with JavaScript SDK version 7.27.0, or higher, you'll need - to have version 7.60.1 or higher in order to be able to see **rage click issues**. + While you can enable **Session Replay** with JavaScript SDK version 7.27.0, or + higher, you'll need to have version 7.60.1 or higher in order to be able to + see **rage click issues**. ## Detection Criteria @@ -29,12 +30,13 @@ You can configure Replay to ignore specific selectors if you are seeing [too man To set up alerts and get notified when a rage click occurs, follow these steps: -1. Create a new [Alert](https://sentry.io/orgredirect/organizations/:orgslug/alerts/new/issue/) in Sentry. -2. In the "Set conditions" section, set the "IF" filter to "The issue's category is equal to", then choose "Replay" from the dropdown. -3. Add an optional filter if you like. -4. Choose the action to be performed in the "THEN" dropdown. -5. Decide how often you'd like Sentry to look for rage click issues. -6. Lastly, name your alert and add an owner. +1. Go to **Monitors > [Alerts](https://sentry.io/monitors/alerts)** and click **Create Alert**. +2. Select the projects you want to alert on. +3. Under **If**, add the **Issue type** filter and set it to "Issue type is equal to Rage Click Detected". +4. Under **Then**, choose the action to perform. +5. Name your alert and click **Create Alert**. + +See [Create Alerts](/product/monitors-and-alerts/alerts/create-alerts/) for all options. ## Turn Off Rage Click Issues From aef7c12e70ae8f869deac5dadb6caa34485f07f9 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:11:23 -0500 Subject: [PATCH 050/141] docs(develop): Update issue type example category and grouptype links (#20511) ## DESCRIBE YOUR PR - The `ProfileFileIOGroupType` example used `GroupCategory.PROFILE`, which is deprecated. The real class now uses `GroupCategory.MOBILE` ([grouptype.py#L575-L581](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L575-L581)). - The `GroupType`, `GroupCategory`, and `NoiseConfig` links pointed at old line ranges. They now point to the current code ([L227-L264](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L227-L264), [L35-L87](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L35-L87), [L192-L199](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/issues/grouptype.py#L192-L199)). - Added a note not to use the deprecated categories (`PERFORMANCE`, `PROFILE`, `CRON`, `REPLAY`, `UPTIME`, `METRIC_ALERT`), per the enum docstrings. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] No deadline: Not urgent, can wait up to 1 week+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper --- .../backend/issue-platform/issue-types/index.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/develop-docs/backend/issue-platform/issue-types/index.mdx b/develop-docs/backend/issue-platform/issue-types/index.mdx index 316bd2e4cb50d..901f8dfbb39ba 100644 --- a/develop-docs/backend/issue-platform/issue-types/index.mdx +++ b/develop-docs/backend/issue-platform/issue-types/index.mdx @@ -7,7 +7,7 @@ An issue type is a way to group related issues together. Examples include `metri ## Register an Issue Type -To register a new issue type you need to subclass `GroupType` +To register a new issue type you need to subclass `GroupType` When registering the class, set the following required attributes on the class: @@ -18,13 +18,13 @@ When registering the class, set the following required attributes on the class: - `description`: str - A human-readable description of your issue type. - `category`: int - - Categories are used to group related issue types together. Use one of the existing categories defined in this enum or add a new one. + - Categories are used to group related issue types together. Use one of the existing categories defined in this enum or add a new one. Don't use the categories marked as deprecated (`PERFORMANCE`, `PROFILE`, `CRON`, `REPLAY`, `UPTIME`, `METRIC_ALERT`). You may also set these optional attributes: - `released`: bool - Whether this issue type has been released to all customers. See Releasing your issue type. -- `noise_config`: NoiseConfig | None +- `noise_config`: NoiseConfig | None - A `NoiseConfig` that allows you to set policy on how many times a fingerprint must occur in a period of time before an issue is created. NoiseConfig has two attributes: - `ignore_limit`: int - How many occurrences need to occur before we create a new issue. @@ -43,7 +43,7 @@ class ProfileFileIOGroupType(GroupType): type_id = 2001 slug = "profile_file_io_main_thread" description = "File I/O on Main Thread" - category = GroupCategory.PROFILE.value + category = GroupCategory.MOBILE.value ``` and here's one with `noise_config` configured @@ -54,7 +54,7 @@ class ProfileFileIOGroupType(GroupType): type_id = 2001 slug = "profile_file_io_main_thread" description = "File I/O on Main Thread" - category = GroupCategory.PROFILE.value + category = GroupCategory.MOBILE.value noise_config = NoiseConfig(5, timedelta(days=2)) ``` From 8962907f6fa9b472cb39b41aaf8f9cb35e06e5d1 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:11:34 -0500 Subject: [PATCH 051/141] docs(issues): Note that Endpoint Regression issues are no longer created (#20508) ## DESCRIBE YOUR PR Adds a warning to the Endpoint Regression page that Sentry no longer creates these issues. - getsentry/sentry#122048 removed `EndpointRegressionDetector` and the performance dispatcher, since generic metrics storage is gone. `run_detection` now only dispatches profiling projects ([statistical_detectors.py#L110-L121](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/tasks/statistical_detectors.py#L110-L121)). - `send_regression_to_platform` ([issue_platform_adapter.py#L20](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/statistical_detectors/issue_platform_adapter.py#L20)) has no remaining callers. Owners: please confirm there's no replacement planned before this merges. If the page should go away instead, say so. The project setting toggle still exists, and the Issues index page (`docs/product/issues/index.mdx`, being edited in #20436) still links here as an example. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] No deadline: Not urgent, can wait up to 1 week+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper Co-authored-by: Richard Roggenkemper <46740234+roggenkemper@users.noreply.github.com> --- .../performance-issues/endpoint-regressions/index.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/product/issues/issue-details/performance-issues/endpoint-regressions/index.mdx b/docs/product/issues/issue-details/performance-issues/endpoint-regressions/index.mdx index 31877e5531f79..b6bd14be2339f 100644 --- a/docs/product/issues/issue-details/performance-issues/endpoint-regressions/index.mdx +++ b/docs/product/issues/issue-details/performance-issues/endpoint-regressions/index.mdx @@ -6,6 +6,12 @@ og_image: >- /og-images/product-issues-issue-details-performance-issues-endpoint-regressions.png --- + + +Sentry no longer creates new Endpoint Regression issues. This page describes issues that were created before detection stopped. + + + Endpoint Regression issues are a generic class of problems where the duration of a transaction increases over time and degrades application performance. Sentry proactively monitors common endpoints out of the box and reports any possible regressions, grouping them as Endpoint Regression issue types. Filter performance regressions with `issue.category:metric` in **Issues** and **Dashboards**. From c04e8adee89ff2c801abb0b0545464c16124d3df Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 13:13:59 -0500 Subject: [PATCH 052/141] docs(issues): Clarify uptime issue grouping and thresholds (#20510) ## DESCRIBE YOUR PR The Uptime Issues page says issues are grouped by URL and created on the first detected downtime. - Grouping is per uptime monitor. The fingerprint is `uptime-detector:` ([uptime/utils.py#L17-L22](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/uptime/utils.py#L17-L22)). - An issue is created at the failure tolerance and resolved at the recovery tolerance ([uptime/grouptype.py#L112-L121](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/uptime/grouptype.py#L112-L121)). Defaults are 3 and 1 ([uptime/types.py#L25-L30](https://github.com/getsentry/sentry/blob/9b76a0ffbcbde9a2d2a58bc5b5910fe33f1ea3ad/src/sentry/uptime/types.py#L25-L30)). Links to the existing Thresholds section. - Says "uptime monitors" instead of "uptime alerts". ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): - [ ] Other deadline: - [x] No deadline: Not urgent, can wait up to 1 week+ via **richard**. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa852beabb8863b47a43de24d6ba90b98/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Richard Roggenkemper --- docs/product/issues/issue-details/uptime-issues/index.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/product/issues/issue-details/uptime-issues/index.mdx b/docs/product/issues/issue-details/uptime-issues/index.mdx index 3d8c9da68f4c7..edcc294a9e911 100644 --- a/docs/product/issues/issue-details/uptime-issues/index.mdx +++ b/docs/product/issues/issue-details/uptime-issues/index.mdx @@ -7,8 +7,8 @@ description: >- og_image: /og-images/product-issues-issue-details-uptime-issues.png --- -An uptime issue is a grouping of detected downtime events for a specific URL. A downtime event is generated by -active uptime alerts when HTTP requests fail to meet our +An uptime issue is a grouping of detected downtime events for a specific uptime monitor. A downtime event is generated by +active uptime monitors when HTTP requests fail to meet our [uptime check criteria](/product/monitors-and-alerts/monitors/uptime-monitoring/#uptime-check-criteria). ![Uptime issue details](./img/uptime-issue-details.png) @@ -20,4 +20,4 @@ Uptime checks made against web services configured with one of Sentry's supporte ## Issue Lifecycle -Uptime issues are grouped by the monitored URL and created upon the first detected downtime. Sentry automatically resolves an ongoing uptime issue when the monitored URL returns to a healthy status and meets our [uptime check criteria](/product/monitors-and-alerts/monitors/uptime-monitoring/#uptime-check-criteria). If the URL experiences subsequent downtime, the issue's status will change to regressed. +Each uptime monitor has one uptime issue. Sentry creates it once the number of consecutive failed checks reaches the monitor's failure tolerance (3 by default), and resolves it once the number of consecutive successful checks reaches the recovery tolerance (1 by default). See [Thresholds](/product/monitors-and-alerts/monitors/uptime-monitoring/#thresholds). If the monitor detects downtime again, the issue's status changes to regressed. From 0e5f8162b1f2bcd86a702f5edf4bb31b18850fc7 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, 11 Nov 2026 18:18:50 +0000 Subject: [PATCH 053/141] Bump API schema to 4e986cf7 (#20734) 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 4bf348fbd961b..17093a59fc6fc 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 = '51beb3e8a9f7c9eeb6d926dc14695838a30986db'; +const SENTRY_API_SCHEMA_SHA = '4e986cf79bfa14836ba51592dbdc5a3609b66a0a'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From bd54d17679d89683b0cd6dae8c7aedd4cc8761f9 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, 11 Nov 2026 18:21:34 +0000 Subject: [PATCH 054/141] Bump API schema to 52de466e (#20735) 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 17093a59fc6fc..7f4b8293f8163 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 = '4e986cf79bfa14836ba51592dbdc5a3609b66a0a'; +const SENTRY_API_SCHEMA_SHA = '52de466ec9c5ec625baf6a4f9ecafa9176071d8f'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b5ae0b3e881958fd54ac2f798394c5c88a95a280 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, 11 Nov 2026 18:30:21 +0000 Subject: [PATCH 055/141] Bump API schema to 1e6b86c6 (#20736) 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 7f4b8293f8163..43ae91d1dfa9b 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 = '52de466ec9c5ec625baf6a4f9ecafa9176071d8f'; +const SENTRY_API_SCHEMA_SHA = '1e6b86c69dfd7d104fc3a83d4d65c793defa99c0'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 9cf174afa696321654e21f2b71812f7ff3c02065 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, 11 Nov 2026 19:48:24 +0000 Subject: [PATCH 056/141] Bump API schema to cf430bfd (#20739) 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 43ae91d1dfa9b..0ab2cf855d6bc 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 = '1e6b86c69dfd7d104fc3a83d4d65c793defa99c0'; +const SENTRY_API_SCHEMA_SHA = 'cf430bfdb0604804f85785eb827de7e02f1ff70f'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From c70fd7442fbf9f06f15b2b15aaaeb8a980001645 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, 11 Nov 2026 19:57:13 +0000 Subject: [PATCH 057/141] Bump API schema to 129e7904 (#20740) 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 0ab2cf855d6bc..6d04258a97ddd 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 = 'cf430bfdb0604804f85785eb827de7e02f1ff70f'; +const SENTRY_API_SCHEMA_SHA = '129e790450dfb5c8cdd65c0fa578c0df362d39d5'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 0cb2e23405dc0880a3180d2c61bff9bf322ddc25 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 12:00:54 -0800 Subject: [PATCH 058/141] docs(develop): Point fork craft example at an active fork (#20738) ## DESCRIBE YOUR PR The "Depending on forks" section of the Python dependencies page used `getsentry/sentry-forked-djangorestframework-stubs#1` as its craft config example. Sentry stopped using that fork when it switched to upstream `djangorestframework-stubs` in getsentry/sentry#107710. This changes the example to `getsentry/sentry-forked-email-reply-parser#1`, which adds the same craft setup and points at a fork Sentry still uses. ## 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 **Kedar Vaidya**. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0C28C7TZRR%3A1794422921.605919) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0C28C7TZRR%3A1794422921.605919/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Kedar Vaidya --- develop-docs/development-infrastructure/python-dependencies.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develop-docs/development-infrastructure/python-dependencies.mdx b/develop-docs/development-infrastructure/python-dependencies.mdx index b3bb69875ae4c..36f3cbeacc241 100644 --- a/develop-docs/development-infrastructure/python-dependencies.mdx +++ b/develop-docs/development-infrastructure/python-dependencies.mdx @@ -45,7 +45,7 @@ If you need to make modifications to a dependency and need to deploy the result before it is accepted upstream, you must fork the dependency and publish it to pypi and internal pypi. 1. Fork into the `getsentry` organization and make your changes. -2. Add craft configuration to publish to pypi+internal pypi ([example](https://github.com/getsentry/sentry-forked-djangorestframework-stubs/pull/1)). +2. Add craft configuration to publish to pypi+internal pypi ([example](https://github.com/getsentry/sentry-forked-email-reply-parser/pull/1)). 3. Add the dependency to your repository. From 1d6cfaf45d42cde7045922b42d9d2d9a0cce8150 Mon Sep 17 00:00:00 2001 From: Shannon Anahata Date: Wed, 11 Nov 2026 15:42:33 -0800 Subject: [PATCH 059/141] Update the agent prompts in docs to point to Sentry CLI (#20586) ## DESCRIBE YOUR PR We currently point to skills and the plugin, but we want to suggest the CLI, and move away from "agent prompts" to just saying "set up with the CLI". ## 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: 2026-11-10 - [ ] 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) --------- Co-authored-by: Shannon Anahata --- app/layout.tsx | 2 +- src/components/agentSetupCallout/index.tsx | 130 ++++++------- .../agentSetupCallout/markdown.spec.tsx | 79 ++++++++ src/components/agentSetupCallout/markdown.tsx | 56 ++++++ src/components/agentSetupCallout/shared.ts | 45 ++++- .../agentSetupCallout/style.module.scss | 64 ++----- src/components/cliInstallCommand/index.tsx | 174 ++++++++++++++++++ .../cliInstallCommand/style.module.scss | 173 +++++++++++++++++ src/components/copyPromptButton/index.tsx | 74 +++++--- .../copyPromptButton/style.module.scss | 5 +- src/components/home.module.scss | 98 +--------- src/components/homeAiSetupCard.tsx | 112 +++-------- src/components/linkWithPlatformIcon.tsx | 2 +- src/metrics.ts | 2 +- vitest.config.mjs | 3 + 15 files changed, 671 insertions(+), 348 deletions(-) create mode 100644 src/components/agentSetupCallout/markdown.spec.tsx create mode 100644 src/components/agentSetupCallout/markdown.tsx create mode 100644 src/components/cliInstallCommand/index.tsx create mode 100644 src/components/cliInstallCommand/style.module.scss diff --git a/app/layout.tsx b/app/layout.tsx index 1bab67dbe638b..0f63de21c0b57 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,7 +9,7 @@ import {SkipToContent} from 'sentry-docs/components/skipToContent'; import {ThemeProvider} from 'sentry-docs/components/theme-provider'; const rubik = Rubik({ - weight: ['400', '500', '700'], + weight: ['400', '500', '600', '700'], style: ['normal', 'italic'], subsets: ['latin'], variable: '--font-rubik', diff --git a/src/components/agentSetupCallout/index.tsx b/src/components/agentSetupCallout/index.tsx index 5c8043f2f412f..668e334cd4cf1 100644 --- a/src/components/agentSetupCallout/index.tsx +++ b/src/components/agentSetupCallout/index.tsx @@ -1,15 +1,15 @@ 'use client'; -import {ChevronDownIcon, ChevronRightIcon} from '@radix-ui/react-icons'; import * as Sentry from '@sentry/nextjs'; -import Link from 'next/link'; -import {useCallback, useState} from 'react'; +import {Fragment, useCallback, useState} from 'react'; import {Copy} from 'react-feather'; import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent'; import {DocMetrics} from 'sentry-docs/metrics'; -import {CodeBlock} from '../codeBlock'; -import {buildPrompt} from './shared'; +import {CliInstallCommand} from '../cliInstallCommand'; +import {ExternalLink} from '../externalLink'; +import {CliSetupMarkdown, InstructionMarkdown} from './markdown'; +import {SENTRY_CLI_URL} from './shared'; import styles from './style.module.scss'; type Props = { @@ -17,7 +17,7 @@ type Props = { platformName?: string; /** Skill package name, e.g. "sentry-nextjs-sdk". Omit for generic/all skills. */ skill?: string; - /** Custom instructions for tasks other than SDK setup. */ + /** Custom instructions for tasks other than SDK setup, such as migrations. */ instructions?: { title: string; prompt: string; @@ -26,13 +26,36 @@ type Props = { }; export function AgentSetupCallout({skill, platformName, instructions}: Props) { + if (instructions) { + return ; + } + + return ( + +

+
+ Set up with Sentry CLI + +
+
+ + Learn more about the Sentry CLI + +
+
+ + + ); +} + +function InstructionPrompt({ + instructions, +}: { + instructions: NonNullable; +}) { const [copied, setCopied] = useState(false); - const [isExpanded, setIsExpanded] = useState(false); const {emit} = usePlausibleEvent(); - const prompt = instructions?.prompt ?? buildPrompt(platformName); - const title = instructions?.title ?? 'Agent-Assisted Setup'; - const copyPrompt = useCallback( async (event: React.MouseEvent) => { event.stopPropagation(); @@ -41,87 +64,52 @@ export function AgentSetupCallout({skill, platformName, instructions}: Props) { emit('Copy AI Prompt', { props: { page: window.location.pathname, - title: instructions?.title ?? 'Agent Setup Callout', + title: instructions.title, }, }); try { setCopied(false); - await navigator.clipboard.writeText(prompt); + await navigator.clipboard.writeText(instructions.prompt); setCopied(true); - DocMetrics.copyAIPrompt(window.location.pathname, skill, true); + DocMetrics.copyAIPrompt(window.location.pathname, undefined, true); setTimeout(() => setCopied(false), 1500); } catch (error) { Sentry.logger.warn('clipboard.writeText failed', { error: (error as Error)?.message, errorName: (error as Error)?.name, }); - DocMetrics.copyAIPrompt(window.location.pathname, skill, false); + DocMetrics.copyAIPrompt(window.location.pathname, undefined, false); setCopied(false); } }, - [prompt, emit, skill, instructions?.title] + [emit, instructions.prompt, instructions.title] ); - const description = - instructions?.description ?? - (platformName - ? `Your agent will set up Sentry in your ${platformName} app automatically.` - : 'Your agent will set up Sentry automatically.'); - return ( -
-
-
- {title} + +
+
+
+ {instructions.title} +
+
+ {instructions.prompt} +
+
-
- {prompt} +
+ {instructions.description}
-
- -
- - {description} Works with Cursor, Claude Code, Codex, and more. - - {!instructions && ( - - View docs ↗ - - )} -
- - {!instructions && ( -
setIsExpanded(e.currentTarget.open)} - > - - {isExpanded ? ( - - ) : ( - - )} - Install the full plugin - -
-

- Install the Sentry plugin to give your assistant every skill. See the{' '} - installation docs for more details. -

- -
-                npx @sentry/agent-plugin install
-              
-
-
-
- )} -
+ +
); } diff --git a/src/components/agentSetupCallout/markdown.spec.tsx b/src/components/agentSetupCallout/markdown.spec.tsx new file mode 100644 index 0000000000000..ff93672a88190 --- /dev/null +++ b/src/components/agentSetupCallout/markdown.spec.tsx @@ -0,0 +1,79 @@ +import {Fragment} from 'react'; +import {renderToStaticMarkup} from 'react-dom/server'; +import rehypeParse from 'rehype-parse'; +import rehypeRemark from 'rehype-remark'; +import remarkGfm from 'remark-gfm'; +import remarkStringify from 'remark-stringify'; +import {unified} from 'unified'; +import {describe, expect, it} from 'vitest'; + +import {CliSetupMarkdown, InstructionMarkdown} from './markdown'; + +function htmlToMarkdown(html: string) { + return String( + unified() + .use(rehypeParse, {fragment: true}) + .use(rehypeRemark, { + document: false, + handlers: { + button() {}, + }, + }) + .use(remarkGfm) + .use(remarkStringify) + .processSync(html) + ); +} + +describe('CLI setup markdown export', () => { + it('keeps the install commands and drops the interactive card', () => { + const html = renderToStaticMarkup( + +
interactive card
+ +
+ ); + + const markdown = htmlToMarkdown(html); + + expect(markdown).not.toContain('interactive card'); + expect(markdown).toContain('## Set up with Sentry CLI'); + expect(markdown).toContain('the Sentry Next.js SDK'); + expect(markdown).toContain( + '```bash\ncurl https://cli.sentry.dev/install -fsS | bash' + ); + expect(markdown).toContain( + '```powershell\nirm https://cli.sentry.dev/install.ps1 | iex' + ); + expect(markdown).toContain('```bash\nbrew install getsentry/tools/sentry'); + expect(markdown).toContain('```bash\nnpx sentry@latest'); + expect(markdown).toContain( + '[Learn more about the Sentry CLI](https://cli.sentry.dev/)' + ); + }); + + it('names Sentry when the page has no platform', () => { + const markdown = htmlToMarkdown(renderToStaticMarkup()); + + expect(markdown).toContain('Set up Sentry with the Sentry CLI.'); + expect(markdown).not.toContain('SDK'); + }); + + it('includes custom instruction prompts', () => { + const markdown = htmlToMarkdown( + renderToStaticMarkup( + + ) + ); + + expect(markdown).toContain('## Agent-Assisted Migration'); + expect(markdown).toContain('Read the migration guide before changing the SDK.'); + expect(markdown).toContain( + 'Copy this prompt into your AI agent to migrate your Sentry SDK.' + ); + }); +}); diff --git a/src/components/agentSetupCallout/markdown.tsx b/src/components/agentSetupCallout/markdown.tsx new file mode 100644 index 0000000000000..cd6e77204ff2d --- /dev/null +++ b/src/components/agentSetupCallout/markdown.tsx @@ -0,0 +1,56 @@ +import {CLI_INSTALL_METHODS, SENTRY_CLI_URL, setupTarget} from './shared'; +import styles from './style.module.scss'; + +type SetupProps = { + platformName?: string; +}; + +function commandLanguage(id: string) { + return id === 'powershell' ? 'language-powershell' : 'language-bash'; +} + +/** + * Semantic copy of the CLI setup card. The interactive card is omitted from + * markdown exports, so this block is what those pages include instead. + */ +export function CliSetupMarkdown({platformName}: SetupProps) { + return ( + + ); +} + +type InstructionProps = { + title: string; + prompt: string; + description: string; +}; + +/** Semantic copy of a custom instruction prompt, included in markdown exports. */ +export function InstructionMarkdown({title, prompt, description}: InstructionProps) { + return ( + + ); +} diff --git a/src/components/agentSetupCallout/shared.ts b/src/components/agentSetupCallout/shared.ts index 9fde0fb5383b8..aa539a15fb7b4 100644 --- a/src/components/agentSetupCallout/shared.ts +++ b/src/components/agentSetupCallout/shared.ts @@ -1,14 +1,45 @@ /** - * Shared constants and utilities for agent skills prompt building. - * Used by AgentSetupCallout (full banner) and inline copy-prompt buttons. + * Shared constants for the Sentry CLI setup prompt. + * Used by the setup callout, the homepage card, and inline copy buttons. */ -export const SKILLS_BASE_URL = 'https://skills.sentry.dev'; +export const SENTRY_CLI_URL = 'https://cli.sentry.dev/'; -/** Single entrypoint skill that instruments any SDK; the SDK is named in prose. */ -export const INSTRUMENT_SKILL_URL = `${SKILLS_BASE_URL}/instrument`; +/** + * Install commands from https://cli.sentry.dev/. + * curl, PowerShell, Homebrew, and npx cover the common paths. + * npm, pnpm, and bun are the same global Node install as each other, so npx stands in for them. + */ +export const CLI_INSTALL_METHODS = [ + { + id: 'curl', + label: 'cURL', + command: 'curl https://cli.sentry.dev/install -fsS | bash', + }, + { + id: 'powershell', + label: 'PowerShell', + command: 'irm https://cli.sentry.dev/install.ps1 | iex', + }, + { + id: 'brew', + label: 'Homebrew', + command: 'brew install getsentry/tools/sentry', + }, + { + id: 'npx', + label: 'npx', + command: 'npx sentry@latest', + }, +] as const; + +export type CliInstallMethodId = (typeof CLI_INSTALL_METHODS)[number]['id']; + +export function setupTarget(sdkName?: string): string { + return sdkName ? `the Sentry ${sdkName} SDK` : 'Sentry'; +} export function buildPrompt(sdkName?: string): string { - const target = sdkName ? `the Sentry ${sdkName} SDK` : 'Sentry'; - return `Use curl to download, read and follow ${INSTRUMENT_SKILL_URL} to set up ${target}.`; + const install = CLI_INSTALL_METHODS[0].command; + return `Set up ${setupTarget(sdkName)} with the Sentry CLI. Install the CLI with \`${install}\`, then follow ${SENTRY_CLI_URL} to finish setup.`; } diff --git a/src/components/agentSetupCallout/style.module.scss b/src/components/agentSetupCallout/style.module.scss index 045ff363e84bc..930f133e08422 100644 --- a/src/components/agentSetupCallout/style.module.scss +++ b/src/components/agentSetupCallout/style.module.scss @@ -5,10 +5,6 @@ border: 1px solid color-mix(in srgb, var(--accent-purple), transparent 60%); background: color-mix(in srgb, var(--accent-purple), transparent 92%); color: var(--gray-500); - - @media (max-width: 768px) { - display: none; - } } :global(.dark) .wrapper { @@ -29,10 +25,20 @@ flex-shrink: 0; } +.setup { + display: flex; + flex-direction: column; + gap: 0.45rem; +} + .title { font-weight: 600; font-size: 0.9rem; - white-space: nowrap; +} + +/* Present in the HTML so markdown export can read it. Hidden on the page. */ +.mdOnly { + display: none; } .promptArea { @@ -132,51 +138,3 @@ :global(.dark) .viewDocs { color: var(--accent-purple-light); } - -.expandSection { - margin-top: 0.35rem; - border-top: 1px solid color-mix(in srgb, var(--accent-purple), transparent 70%); - margin-bottom: -0.5rem; -} - -.expandSummary { - display: flex; - align-items: center; - gap: 0.3rem; - cursor: pointer; - font-size: 0.78rem; - font-weight: 500; - opacity: 0.6; - list-style: none; - user-select: none; - padding: 0.4rem 0; - - &::-webkit-details-marker { - display: none; - } - - &::marker { - display: none; - content: ''; - } - - &:hover { - opacity: 1; - } -} - -.expandIcon { - width: 13px; - height: 13px; - flex-shrink: 0; -} - -.expandBody { - padding-left: 0.25rem; - padding-bottom: 0.25rem; - - & p { - font-size: 0.8rem; - margin-bottom: 0.5rem; - } -} diff --git a/src/components/cliInstallCommand/index.tsx b/src/components/cliInstallCommand/index.tsx new file mode 100644 index 0000000000000..d77c3f1bb27ba --- /dev/null +++ b/src/components/cliInstallCommand/index.tsx @@ -0,0 +1,174 @@ +'use client'; + +import {ChevronDownIcon} from '@radix-ui/react-icons'; +import * as Sentry from '@sentry/nextjs'; +import {type KeyboardEvent, useCallback, useEffect, useId, useRef, useState} from 'react'; +import {Check, Copy} from 'react-feather'; +import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent'; +import {DocMetrics} from 'sentry-docs/metrics'; + +import {CLI_INSTALL_METHODS, type CliInstallMethodId} from '../agentSetupCallout/shared'; +import styles from './style.module.scss'; + +type Props = { + platformName?: string; + skill?: string; + source: 'callout' | 'homepage_card'; +}; + +export function CliInstallCommand({platformName, skill, source}: Props) { + const [methodId, setMethodId] = useState('curl'); + const [copied, setCopied] = useState(false); + const [open, setOpen] = useState(false); + const [activeIndex, setActiveIndex] = useState(0); + const {emit} = usePlausibleEvent(); + const rootRef = useRef(null); + const triggerRef = useRef(null); + const listRef = useRef(null); + const listId = useId(); + + const method = + CLI_INSTALL_METHODS.find(item => item.id === methodId) ?? CLI_INSTALL_METHODS[0]; + + const copyCommand = useCallback(async () => { + const title = platformName + ? `Set up ${platformName} with the CLI` + : 'Set up with the CLI'; + + emit('Copy AI Prompt', { + props: {page: window.location.pathname, title}, + }); + + try { + setCopied(false); + await navigator.clipboard.writeText(method.command); + setCopied(true); + DocMetrics.copyAIPrompt(window.location.pathname, skill, true, source); + setTimeout(() => setCopied(false), 1500); + } catch (error) { + Sentry.logger.warn('clipboard.writeText failed', { + error: (error as Error)?.message, + errorName: (error as Error)?.name, + }); + DocMetrics.copyAIPrompt(window.location.pathname, skill, false, source); + setCopied(false); + } + }, [emit, method.command, platformName, skill, source]); + + const closeMenu = useCallback((restoreFocus = false) => { + setOpen(false); + if (restoreFocus) triggerRef.current?.focus(); + }, []); + + const selectMethod = useCallback( + (id: CliInstallMethodId) => { + setMethodId(id); + closeMenu(true); + }, + [closeMenu] + ); + + useEffect(() => { + if (!open) return undefined; + + const selectedIndex = CLI_INSTALL_METHODS.findIndex(item => item.id === methodId); + setActiveIndex(selectedIndex === -1 ? 0 : selectedIndex); + listRef.current?.focus(); + + const onPointerDown = (event: PointerEvent) => { + if (!rootRef.current?.contains(event.target as Node)) closeMenu(); + }; + + document.addEventListener('pointerdown', onPointerDown); + return () => document.removeEventListener('pointerdown', onPointerDown); + }, [closeMenu, methodId, open]); + + const onListKeyDown = (event: KeyboardEvent) => { + const lastIndex = CLI_INSTALL_METHODS.length - 1; + + if (event.key === 'ArrowDown') { + event.preventDefault(); + setActiveIndex(index => (index >= lastIndex ? 0 : index + 1)); + } else if (event.key === 'ArrowUp') { + event.preventDefault(); + setActiveIndex(index => (index <= 0 ? lastIndex : index - 1)); + } else if (event.key === 'Home') { + event.preventDefault(); + setActiveIndex(0); + } else if (event.key === 'End') { + event.preventDefault(); + setActiveIndex(lastIndex); + } else if (event.key === 'Enter' || event.key === ' ') { + event.preventDefault(); + const next = CLI_INSTALL_METHODS[activeIndex]; + if (next) selectMethod(next.id); + } else if (event.key === 'Escape') { + event.preventDefault(); + closeMenu(true); + } else if (event.key === 'Tab') { + closeMenu(); + } + }; + + return ( +
+
+ + {open ? ( +
+ {CLI_INSTALL_METHODS.map((item, index) => ( +
setActiveIndex(index)} + onClick={() => selectMethod(item.id)} + > + {item.label} +
+ ))} +
+ ) : null} +
+ {method.command} + +
+ ); +} diff --git a/src/components/cliInstallCommand/style.module.scss b/src/components/cliInstallCommand/style.module.scss new file mode 100644 index 0000000000000..68dfc36d53545 --- /dev/null +++ b/src/components/cliInstallCommand/style.module.scss @@ -0,0 +1,173 @@ +.bar { + display: flex; + align-items: stretch; + min-width: 0; + flex: 1; + border: 1px solid var(--gray-6); + border-radius: 6px; + background: var(--gray-1); + color: var(--gray-12); +} + +.barOpen { + border-bottom-left-radius: 0; +} + +.method { + position: relative; + display: flex; + flex-shrink: 0; +} + +.methodTrigger { + display: inline-flex; + align-items: center; + justify-content: space-between; + gap: 0.4rem; + flex-shrink: 0; + min-width: 8.25rem; + margin: 0; + padding: 0.4rem 0.7rem; + border: none; + border-right: 1px solid var(--gray-6); + border-radius: 5px 0 0 5px; + background: var(--gray-3); + color: inherit; + font-family: var(--font-rubik), sans-serif; + font-size: 0.8125rem; + font-weight: 600; + line-height: 1.3; + white-space: nowrap; + cursor: pointer; + + &:hover { + background: var(--gray-4); + } + + &:focus-visible { + outline: none; + box-shadow: inset 0 0 0 2px var(--accent-purple); + } + + &[aria-expanded='true'] { + border-bottom-left-radius: 0; + } + + &[aria-expanded='true'] .chevron { + transform: rotate(180deg); + } +} + +@media (max-width: 640px) { + .methodTrigger { + min-width: 6.25rem; + padding-right: 0.5rem; + padding-left: 0.55rem; + } +} + +.chevron { + width: 14px; + height: 14px; + flex-shrink: 0; + transition: transform 150ms ease; +} + +.command { + flex: 1; + min-width: 0; + margin: 0; + padding: 0.45rem 0.75rem; + overflow-x: auto; + background: none; + border: none; + color: inherit; + font-family: var(--font-family-monospace); + font-size: 0.8125rem; + line-height: 1.45; + white-space: nowrap; + scrollbar-width: thin; +} + +.copyButton { + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + width: 2.25rem; + margin: 0; + padding: 0; + border: none; + border-left: 1px solid var(--gray-6); + border-radius: 0 5px 5px 0; + background: transparent; + color: var(--gray-12); + cursor: pointer; + + &:hover { + background: var(--gray-3); + color: var(--gray-12); + } + + &:focus-visible { + outline: none; + box-shadow: inset 0 0 0 2px var(--accent-purple); + } +} + +.menu { + position: absolute; + z-index: 40; + top: calc(100% + 1px); + left: -1px; + width: calc(100% + 1px); + padding: 0.25rem; + border: 1px solid var(--gray-6); + border-top: none; + border-radius: 0 0 6px 6px; + background: var(--gray-1); + color: var(--gray-12); + font-family: var(--font-rubik), sans-serif; + font-weight: 600; + box-shadow: 0 10px 16px -12px var(--gray-12); + outline: none; +} + +.option { + display: flex; + align-items: center; + width: 100%; + padding: 0.4rem 0.65rem; + border: none; + border-radius: 4px; + background: transparent; + color: inherit; + font-family: inherit; + font-size: 0.8125rem; + font-weight: 600; + line-height: 1.3; + text-align: left; + cursor: pointer; + user-select: none; + + &[data-active='true'] { + outline: none; + background: var(--gray-3); + } + + &[aria-selected='true'] { + background: var(--gray-4); + } +} + +.srOnly { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} diff --git a/src/components/copyPromptButton/index.tsx b/src/components/copyPromptButton/index.tsx index 21455df35cc22..af109c853fdac 100644 --- a/src/components/copyPromptButton/index.tsx +++ b/src/components/copyPromptButton/index.tsx @@ -4,12 +4,17 @@ import * as Tooltip from '@radix-ui/react-tooltip'; import {Theme} from '@radix-ui/themes'; import * as Sentry from '@sentry/nextjs'; import {useTheme} from 'next-themes'; -import {useCallback, useMemo, useState} from 'react'; +import {Fragment, useCallback, useMemo, useState} from 'react'; import {Copy} from 'react-feather'; import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent'; import {DocMetrics} from 'sentry-docs/metrics'; -import {buildPrompt} from '../agentSetupCallout/shared'; +import { + buildPrompt, + CLI_INSTALL_METHODS, + SENTRY_CLI_URL, + setupTarget, +} from '../agentSetupCallout/shared'; import styles from './style.module.scss'; type Props = { @@ -88,33 +93,42 @@ export function CopyPromptButton({skill, platformName}: Props) { ); return ( - - | - - - - - - {!copied && ( - - - - Copy setup prompt for AI agents - - - - - )} - - - + + + | + + + + + + {!copied && ( + + + + Set up with the CLI + + + + + )} + + + + + ); } diff --git a/src/components/copyPromptButton/style.module.scss b/src/components/copyPromptButton/style.module.scss index 4bc6f92171583..1fb572ec3a6e8 100644 --- a/src/components/copyPromptButton/style.module.scss +++ b/src/components/copyPromptButton/style.module.scss @@ -67,4 +67,7 @@ letter-spacing: 0.01em; } - +/* Present in the HTML so markdown export can read it. Hidden on the page. */ +.mdOnly { + display: none; +} diff --git a/src/components/home.module.scss b/src/components/home.module.scss index 44841f711466b..e8ccea1322b0d 100644 --- a/src/components/home.module.scss +++ b/src/components/home.module.scss @@ -83,7 +83,7 @@ .agentHeader { display: grid; - grid-template-columns: auto 1fr auto; + grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; row-gap: 16px; @@ -100,13 +100,7 @@ margin-bottom: 0; } - .commandPill { - grid-column: 3; - grid-row: 1; - margin-top: 0; - margin-left: 0; - } - + .cliInstall, .setupRowCopy { grid-column: 1 / -1; } @@ -114,25 +108,6 @@ .setupDesc { margin-bottom: 0; flex: unset; - - & + .setupDesc { - margin-top: 6px; - } - } -} - -@media (max-width: 767px) { - .agentHeader { - grid-template-columns: auto 1fr; - - .commandPill { - grid-column: 1 / -1; - grid-row: 2; - } - - .setupRowCopy { - grid-row: 3; - } } } @@ -193,75 +168,6 @@ text-decoration: underline; } -// Shared command/action pill. -%pill { - display: flex; - align-items: center; - gap: 10px; - align-self: flex-start; - max-width: 100%; - margin-top: auto; - padding: 8px 14px; - border: 1px solid var(--gray-5); - border-radius: 999px; - background: var(--gray-1); - transition: - border-color 0.15s ease, - background 0.15s ease; - - &:hover { - border-color: var(--accent-purple); - } - - &:focus-visible { - outline: 2px solid var(--accent-purple); - outline-offset: 2px; - } -} - -.commandPill { - @extend %pill; - - cursor: pointer; -} - -:global(.dark) .commandPill { - background: var(--gray-3); -} - -.agentIcons { - display: inline-flex; - align-items: center; - gap: 6px; - flex-shrink: 0; - color: var(--gray-12); - padding-right: 10px; - border-right: 1px solid var(--gray-5); -} - -.commandText { - font-family: var(--font-family-monospace, monospace); - font-size: 12.5px; - white-space: nowrap; - color: var(--gray-12); - background: none; - border: none; - padding: 0; - overflow: hidden; - text-overflow: ellipsis; -} - -.commandAction { - display: inline-flex; - align-items: center; - flex-shrink: 0; - color: var(--accent-purple); -} - -:global(.dark) .commandAction { - color: var(--accent-purple-light); -} - .quickLink { display: block; padding: 18px 20px; diff --git a/src/components/homeAiSetupCard.tsx b/src/components/homeAiSetupCard.tsx index 3e3eab8ddb674..1265685a1bd41 100644 --- a/src/components/homeAiSetupCard.tsx +++ b/src/components/homeAiSetupCard.tsx @@ -1,96 +1,34 @@ -'use client'; - -import * as Sentry from '@sentry/nextjs'; -import Link from 'next/link'; -import {useCallback, useState} from 'react'; -import {Check, Copy} from 'react-feather'; -import {usePlausibleEvent} from 'sentry-docs/hooks/usePlausibleEvent'; -import Claude from 'sentry-docs/icons/claude'; -import Codex from 'sentry-docs/icons/codex'; -import Cursor from 'sentry-docs/icons/cursor'; -import {DocMetrics} from 'sentry-docs/metrics'; +import {Fragment} from 'react'; +import {CliSetupMarkdown} from './agentSetupCallout/markdown'; +import {SENTRY_CLI_URL} from './agentSetupCallout/shared'; +import {CliInstallCommand} from './cliInstallCommand'; import {ExternalLink} from './externalLink'; import styles from './home.module.scss'; -/** Keep in sync with /ai/agent-plugin/. */ -const INSTALL_COMMAND = 'npx @sentry/agent-plugin install'; - export function HomeAiSetupCard() { - const [copied, setCopied] = useState(false); - const {emit} = usePlausibleEvent(); - - const copyCommand = useCallback(async () => { - emit('Copy AI Prompt', { - props: {page: window.location.pathname, title: 'Homepage Setup Card'}, - }); - - try { - await navigator.clipboard.writeText(INSTALL_COMMAND); - setCopied(true); - DocMetrics.copyAIPrompt(window.location.pathname, undefined, true, 'homepage_card'); - setTimeout(() => setCopied(false), 1500); - } catch (error) { - Sentry.logger.warn('clipboard.writeText failed', { - error: (error as Error)?.message, - errorName: (error as Error)?.name, - }); - DocMetrics.copyAIPrompt( - window.location.pathname, - undefined, - false, - 'homepage_card' - ); - setCopied(false); - } - }, [emit]); - return ( -
-
- - - - -
-

Set up with a coding agent

- -
-

- One command teaches Claude Code, Cursor, Codex, and Grok how to install and - configure Sentry for you.{' '} - - Read about the agent plugin - - . -

-

- Use Sentry without leaving your agent conversations by setting up the{' '} - - Sentry MCP server - {' '} - and{' '} - - Sentry CLI - - . -

+ +
+
+ + + + +
+

Set up with Sentry CLI

+
+ +
+
+

+ + Learn more about the Sentry CLI + +

+
-
+ + ); } diff --git a/src/components/linkWithPlatformIcon.tsx b/src/components/linkWithPlatformIcon.tsx index b44627ba812f1..0413c14e81187 100644 --- a/src/components/linkWithPlatformIcon.tsx +++ b/src/components/linkWithPlatformIcon.tsx @@ -5,7 +5,7 @@ import {SmartLink} from './smartLink'; type Props = { label?: string; platform?: string; - /** Agent skill name, e.g. "sentry-react-sdk". When provided, renders an inline "Agent Setup" copy-prompt button. */ + /** Agent skill name, e.g. "sentry-react-sdk". When provided, renders an inline Sentry CLI setup button. */ skill?: string; url?: string; }; diff --git a/src/metrics.ts b/src/metrics.ts index 85adb812369aa..f319dc49442fb 100644 --- a/src/metrics.ts +++ b/src/metrics.ts @@ -171,7 +171,7 @@ export const DocMetrics = { }, /** - * Track "Copy Prompt" button clicks in the Agent Setup Callout + * Track Sentry CLI setup copies from the callout, homepage card, and inline buttons * @param pathname - Page where the prompt was copied * @param skill - Skill name if present (e.g., "sentry-nextjs-sdk") * @param success - Whether the clipboard copy succeeded diff --git a/vitest.config.mjs b/vitest.config.mjs index 836de9fb7e92f..9677c5df2ca28 100644 --- a/vitest.config.mjs +++ b/vitest.config.mjs @@ -4,4 +4,7 @@ import {defineConfig} from 'vitest/config'; export default defineConfig({ plugins: [tsconfigPaths()], + esbuild: { + jsx: 'automatic', + }, }); From b1c24c73b589dd2120e4581f443ec84cc22b4aca Mon Sep 17 00:00:00 2001 From: Dan Fuller Date: Wed, 11 Nov 2026 20:44:04 -0500 Subject: [PATCH 060/141] docs(nestjs): Document SentryCron monitor config from @Cron (#19782) ## DESCRIBE YOUR PR Documents that `@SentryCron` now sends the schedule and time zone of `@Cron` on the same method, so check-ins create the monitor. Covers the server time zone default, which schedules send no config, and the `fromCronDecorator: false` opt-out. SDK change: https://github.com/getsentry/sentry-javascript/pull/25013. Merge after it ships; the page marks it as available since 11.5.0, which assumes it lands in the next minor. ## 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) --------- Co-authored-by: Claude Opus 5.5 --- includes/nestjs-sentry-cron-decorator.mdx | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/includes/nestjs-sentry-cron-decorator.mdx b/includes/nestjs-sentry-cron-decorator.mdx index d76734fbd7c86..fe6080f036d5a 100644 --- a/includes/nestjs-sentry-cron-decorator.mdx +++ b/includes/nestjs-sentry-cron-decorator.mdx @@ -29,3 +29,30 @@ export class MyCronService { } ``` + +### Monitor Config From `@Cron` + + + +If you don't pass a monitor config with a `schedule`, `@SentryCron` sends the schedule and time zone of the `@Cron` decorator on the same method with each check-in, so Sentry creates the monitor on the first run. You can still pass other monitor options, such as `checkinMargin` and `maxRuntime`: + +```typescript +import { Cron } from '@nestjs/schedule'; +import { SentryCron } from '@sentry/nestjs'; + +export class MyCronService { + @Cron('0 * * * *', { timeZone: 'America/Los_Angeles' }) + @SentryCron('my-monitor-slug', { checkinMargin: 2 }) + handleCron() { + // Your cron job logic here + } +} +``` + +If `@Cron` has neither `timeZone` nor `utcOffset`, the job runs in your server's local time zone, so that time zone is sent. If your servers run in different time zones, set `timeZone` on `@Cron`, so every server sends the same one. + +The monitor is created, and billed, on the first run. Each check-in overwrites the monitor's schedule and time zone with the ones from `@Cron`, so change them in your code rather than in Sentry. + +A six-field expression is sent without its seconds field if that field is a single number, such as `0 30 9 * * *`. Presets such as `@daily` and `@weekly` are sent too. Sub-minute schedules, `Date` values, `utcOffset`, month numbers with `@nestjs/schedule` 3 and earlier (use names such as `MAY`; steps such as `*/3` work), a `*/n` or full-range day field (such as `1-31` or `sun-sat`) combined with the other day field, and time zones that aren't IANA names send no monitor config, including any other options you pass. In those cases, pass a full monitor config to `@SentryCron` or create the monitor in Sentry first. + +To send check-ins without a monitor config, pass `{ fromCronDecorator: false }`. From 3e33d6b98b151e42077bd206eebc0044f61f4d7c 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, 12 Nov 2026 11:03:41 +0000 Subject: [PATCH 061/141] Bump API schema to d0a2e344 (#20753) 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 6d04258a97ddd..7a45eeba0daca 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 = '129e790450dfb5c8cdd65c0fa578c0df362d39d5'; +const SENTRY_API_SCHEMA_SHA = 'd0a2e344495068fe5ea70a1b0d686e42c6631aac'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From d67c8ac84157e11aa4dc8d34b8bcd0e15d736f34 Mon Sep 17 00:00:00 2001 From: Abdelrahman Awad Date: Thu, 12 Nov 2026 06:08:22 -0500 Subject: [PATCH 062/141] docs(develop): Fix the trace metric size limit (#20750) The envelope size limits listed 2 KiB per metric, a leftover from statsd metrics, fixed by documenting Relay's 1 MiB limit per trace metric (`max_trace_metric_size`). Relay checks each trace metric in [`trace_metrics/validate.rs`](https://github.com/getsentry/relay/blob/73ac2fadc88d01abb2aefa8f3ad7a85ce3b9c138/relay-server/src/processing/trace_metrics/validate.rs#L37-L38) and the 1 MiB default lives in [`relay-config/src/config.rs`](https://github.com/getsentry/relay/blob/73ac2fadc88d01abb2aefa8f3ad7a85ce3b9c138/relay-config/src/config.rs#L748). --- develop-docs/sdk/foundations/envelopes/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develop-docs/sdk/foundations/envelopes/index.mdx b/develop-docs/sdk/foundations/envelopes/index.mdx index 4dfbbb16d251e..8c7cdd507d7bb 100644 --- a/develop-docs/sdk/foundations/envelopes/index.mdx +++ b/develop-docs/sdk/foundations/envelopes/index.mdx @@ -343,7 +343,7 @@ These limits are subject to future change and defined currently as (see [Relay c - *200 MiB* for an envelope after decompression including all envelope items. - *1 MiB* for event (errors and transactions), span, log, and metric (statsd, buckets, meta) envelope items. -- *2 KiB* for each metric within an envelope. Relay discards the entire envelope if the one of the metrics exceeds 2 KiB. +- *1 MiB* for each trace metric within a `trace_metric` item. Relay discards only the metrics that exceed the limit. - *100 KiB* for monitor check-in items - *4 KiB* for client report items - *50 MiB* for profile items From d52e3b7fd36510652941e7fe2f1913a7a01b70d5 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, 12 Nov 2026 11:12:01 +0000 Subject: [PATCH 063/141] Bump API schema to 0a645b70 (#20754) 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 7a45eeba0daca..8b75c578ae4f5 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 = 'd0a2e344495068fe5ea70a1b0d686e42c6631aac'; +const SENTRY_API_SCHEMA_SHA = '0a645b70ce7853961410e58f9e177e1af7cd8c7e'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 0c63ef592a420448ca052f73d87aca679e8d1c2f Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2026 13:50:03 +0100 Subject: [PATCH 064/141] docs(js): Use Lambda Event Functions naming in AWS Lambda guide (#20722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR AWS renamed Lambda functions to [Lambda Event Functions](https://docs.aws.amazon.com/lambda/latest/dg/lambda-functions-chapter.html) so they're distinct from the new [Lambda Web Functions](https://docs.aws.amazon.com/lambda/latest/dg/web-functions.html). This PR follows up on #20352 and updates the current JS AWS Lambda guide pages to use the new name, which makes it clear that `@sentry/aws-serverless` is for Event Functions. The pages follow the same pattern AWS uses. The first mention says "Lambda Event Functions (formerly called Lambda functions)", and after that they just say "function". The changes cover page descriptions, intros, and prerequisites in the guide index, the install methods (index, layer, npm, container image), and the handler wrapper page. Left unchanged on purpose: - Versioned legacy pages (`__v7`–`__v10`), the v11 migration tables, and span-name docs. They're historical, and "Lambda function name" still matches the AWS API and context. - Console navigation steps ("navigate to your Lambda function"). The AWS API and console resource is still called a function. - `troubleshooting.mdx` and `unhandledrejection.mdx`. I haven't verified whether those issues also apply to Web Functions. Open question: Should Python's AWS Lambda docs get a short note too? Web Functions only support Node.js for now, so the risk of confusion there is low. ## 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 @msonnb. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C5DRTAU2X%3A1794314659.768059) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C5DRTAU2X%3A1794314659.768059/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Martin Sonnberger <26038247+msonnb@users.noreply.github.com> --- .../guides/aws-lambda/configuration/lambda-wrapper.mdx | 4 ++-- docs/platforms/javascript/guides/aws-lambda/index.mdx | 8 ++++---- .../guides/aws-lambda/install/container-image.mdx | 6 +++--- .../javascript/guides/aws-lambda/install/index.mdx | 6 +++--- .../javascript/guides/aws-lambda/install/layer.mdx | 4 ++-- .../javascript/guides/aws-lambda/install/npm.mdx | 8 ++++---- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/platforms/javascript/guides/aws-lambda/configuration/lambda-wrapper.mdx b/docs/platforms/javascript/guides/aws-lambda/configuration/lambda-wrapper.mdx index 37f4d666de321..d45540daefe29 100644 --- a/docs/platforms/javascript/guides/aws-lambda/configuration/lambda-wrapper.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/configuration/lambda-wrapper.mdx @@ -1,10 +1,10 @@ --- title: Lambda Handler Wrapper -description: "Configure Sentry's Lambda function wrapper" +description: "Configure Sentry's Lambda handler wrapper" sidebar_order: 2 --- -On this page you'll learn about the options to configure the `Sentry.wrapHandler` wrapper for your Lambda function. +On this page you'll learn about the options to configure the `Sentry.wrapHandler` wrapper for your Lambda Event Function. If you're using the AWS Lambda layer with environment variables (i.e. no Sentry code in your function), skip this guide or switch to the [initializing the SDK in code](../../install/layer/#alternative-initialize-the-sdk-in-code). diff --git a/docs/platforms/javascript/guides/aws-lambda/index.mdx b/docs/platforms/javascript/guides/aws-lambda/index.mdx index 7532fd6bab979..1fd998ae23dec 100644 --- a/docs/platforms/javascript/guides/aws-lambda/index.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/index.mdx @@ -24,11 +24,11 @@ AWS Lambda offers two function types for Node.js, and each needs a different Sen -On this page you'll get an overview how to install, configure and use Sentry in your AWS Lambda functions. Once set up, our SDK will automatically report error and performance data from your Lambda Functions. Issues in Sentry will automatically include cloudwatch data, function details and execution time measurements. +On this page you'll get an overview how to install, configure and use Sentry in your AWS Lambda Event Functions (formerly called Lambda functions). Once set up, our SDK will automatically report error and performance data from your functions. Issues in Sentry will automatically include cloudwatch data, function details and execution time measurements. ## Installation -Depending on your preferences, you can install Sentry in your Lambda functions using the [Sentry AWS Lambda Layer](./install/layer/) (recommended) or the [Sentry AWS NPM package](./install/npm/). +Depending on your preferences, you can install Sentry in your Event Functions using the [Sentry AWS Lambda Layer](./install/layer/) (recommended) or the [Sentry AWS NPM package](./install/npm/). ### Should I use the Lambda Layer or the NPM package? @@ -36,12 +36,12 @@ We generally recommend using the Lambda layer as it doesn't require you to deplo With the layer, you can achieve the same level of customization as with the NPM package. There are two reasons why you still might want to use the NPM package instead: -1. You want to minimize lambda function size and tree-shake parts of the SDK code that you don't need. A related reason might be because you're transpiling your code and want to transpile your dependencies as well. +1. You want to minimize function size and tree-shake parts of the SDK code that you don't need. A related reason might be because you're transpiling your code and want to transpile your dependencies as well. 2. You already use NPM packages and deploy `node_modules` with your function and you don't want to add a (or another) Lambda layer to your functions. ## Configuration -After installing the SDK, you might want to configure some parameters. Besides the [common SDK configuration](./configuration/), you can also [configure Sentry's Lambda Function handler wrapper](./configuration/lambda-wrapper/) to optimize function runtime overhead and timeout warnings. +After installing the SDK, you might want to configure some parameters. Besides the [common SDK configuration](./configuration/), you can also [configure Sentry's Lambda handler wrapper](./configuration/lambda-wrapper/) to optimize function runtime overhead and timeout warnings. ## Verify diff --git a/docs/platforms/javascript/guides/aws-lambda/install/container-image.mdx b/docs/platforms/javascript/guides/aws-lambda/install/container-image.mdx index 3d901a0c50d11..0f34a9d199008 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/container-image.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/container-image.mdx @@ -2,11 +2,11 @@ title: Container Image description: >- Learn how to install the Sentry Lambda extension to use Sentry in your - container image-based Lambda functions. + container image-based Lambda Event Functions. sidebar_order: 3 --- -When you deploy a Lambda function as a container image (for example, with the [Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) for SvelteKit, Next.js, or Remix), you can't attach a Lambda layer. That means you also lose the Sentry Lambda extension that ships with our [Lambda Layer](/platforms/javascript/guides/aws-lambda/install/layer/). +When you deploy a Lambda Event Function as a container image (for example, with the [Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) for SvelteKit, Next.js, or Remix), you can't attach a Lambda layer. That means you also lose the Sentry Lambda extension that ships with our [Lambda Layer](/platforms/javascript/guides/aws-lambda/install/layer/). Without the extension, events queued at the moment Lambda freezes the runtime can be lost. The extension runs as a sidecar process that receives events on a local port and forwards them to Sentry, so envelopes leave the function before the freeze. @@ -14,7 +14,7 @@ This guide shows how to install the extension into your Docker image and point a ## 1. Prerequisites -- Your Lambda function is deployed as a [container image](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html). +- Your Lambda Event Function is deployed as a [container image](https://docs.aws.amazon.com/lambda/latest/dg/images-create.html). - You have a Sentry SDK in your application (`@sentry/aws-serverless`, `@sentry/sveltekit`, `@sentry/nextjs`, etc.). ## 2. Install `@sentry/aws-serverless` diff --git a/docs/platforms/javascript/guides/aws-lambda/install/index.mdx b/docs/platforms/javascript/guides/aws-lambda/install/index.mdx index 44d2f44538a76..f9e14dc98da3e 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/index.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/index.mdx @@ -1,7 +1,7 @@ --- title: Installation Methods sidebar_order: 1 -description: "Review all installation methods for using Sentry in AWS Lambda functions" +description: "Review all installation methods for using Sentry in AWS Lambda Event Functions" --- @@ -12,9 +12,9 @@ We generally recommend using the Lambda layer as it doesn't require you to deplo With the layer, you can achieve the same level of customization as with the NPM package. There are two reasons why you still might want to use the NPM package instead: -1. You want to minimize lambda function size and tree-shake parts of the SDK code that you don't need. A related reason might be because you're transpiling your code and want to transpile your dependencies as well. +1. You want to minimize function size and tree-shake parts of the SDK code that you don't need. A related reason might be because you're transpiling your code and want to transpile your dependencies as well. 2. You already use NPM packages and deploy `node_modules` with your function and you don't want to add a (or another) Lambda layer to your functions. ### What if I'm deploying a container image? -Container image-based Lambda functions can't attach a layer. Follow the [Container Image guide](/platforms/javascript/guides/aws-lambda/install/container-image/) to install the Sentry Lambda extension into your Docker image so events queued during a Lambda freeze are still delivered. +Container image-based Event Functions can't attach a layer. Follow the [Container Image guide](/platforms/javascript/guides/aws-lambda/install/container-image/) to install the Sentry Lambda extension into your Docker image so events queued during a Lambda freeze are still delivered. diff --git a/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx b/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx index 30d47a8d30130..d060602a23091 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx @@ -2,7 +2,7 @@ title: Lambda Layer description: >- Learn how to add the Sentry Node Lambda Layer to use Sentry in your Lambda - functions + Event Functions sidebar_order: 1 og_image: /og-images/platforms-javascript-guides-aws-lambda-install-layer.png --- @@ -14,7 +14,7 @@ If you follow this guide, you don't have to worry about deploying Sentry depende Before you begin, make sure you have the following: -- You have a Lambda function deployed in AWS. +- You have a Lambda Event Function deployed in AWS. - You know the AWS region that your function is deployed to. ## 1. Add the Sentry Lambda Layer diff --git a/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx b/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx index 11a7c6b114264..a40001a8efce1 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx @@ -2,13 +2,13 @@ title: NPM Package description: >- Learn how to install the Sentry AWS NPM package to use Sentry in your Lambda - functions + Event Functions sidebar_order: 2 og_image: /og-images/platforms-javascript-guides-aws-lambda-install-npm.png --- -In this guide you will learn how to set up the `@sentry/aws-serverless` SDK for AWS Lambda functions using NPM. -We recommend starting the SDK automatically via environment variables so that you only have to make minimal code changes to your lambda function. +In this guide you will learn how to set up the `@sentry/aws-serverless` SDK for AWS Lambda Event Functions using NPM. +We recommend starting the SDK automatically via environment variables so that you only have to make minimal code changes to your function. If you need more control over the SDK setup, you can also [initialize the SDK in code](#option-b-manual-setup). However, you need to modify your code and deploy the Sentry dependencies alongside your function code. If you're looking for the most simple way to set up Sentry, use the [Lambda Layer](/platforms/javascript/guides/aws-lambda/install/layer/) instead. @@ -17,7 +17,7 @@ However, you need to modify your code and deploy the Sentry dependencies alongsi Before you begin, make sure you have the following: -- You have a Lambda function deployed in AWS. +- You have a Lambda Event Function deployed in AWS. - You're able to deploy dependencies (i.e. `node_modules`) alongside your function code to AWS Lambda. ## 2. Install From 2643f9526b944964b07462b01234c616bff94dd8 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2026 07:51:30 -0500 Subject: [PATCH 065/141] feat(js): Add a framework selector to the Browser JavaScript quick start (#20695) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Follow-up to #19974. The Browser JavaScript page (`/platforms/javascript/`) now gets the same "Framework" dropdown as the Node.js, Bun, Deno and Cloudflare quick starts. It replaces the "Using a framework?" warning, which told readers to find their SDK in the sidebar dropdown. Every browser framework has its own SDK, so the dropdown works like the Cloudflare one: there's no "Set up with this guide" group, and selecting a framework opens its guide. It lists the 15 frontend and full-stack frameworks: Angular, Astro, Ember, Gatsby, Next.js, Nuxt, React, React Router, Remix, Solid, SolidStart, Svelte, SvelteKit, TanStack Start and Vue. The Markdown export still gets the guide links from the hidden `GuideLinks` list. Framework selector on the Browser JavaScript page `frameworks.spec.ts` now reads the Browser JavaScript quick start from `docs/platforms/javascript/common/index.mdx`, because the page has no `guides/browser/` folder. Open questions: - Capacitor, Cordova, Electron, Wasm and Effect are left out because they aren't web frameworks. Should any of them be in the list? - The 15 entries are in one alphabetical group. If that's too long, the group could be split into "Frontend frameworks" and "Full-stack frameworks". That needs configurable group labels in `FrameworkSelector`. ## 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+ ## 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) via **Jan Peer Stöcklmair**. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0CA6TD3QRK%3A1794329344.260179) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0CA6TD3QRK%3A1794329344.260179/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Jan Peer Stöcklmair --- docs/platforms/javascript/common/index.mdx | 6 ++--- .../frameworkSelector/frameworks.spec.ts | 8 +++++- .../frameworkSelector/frameworks.ts | 27 ++++++++++++++++++- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/docs/platforms/javascript/common/index.mdx b/docs/platforms/javascript/common/index.mdx index f2e64835007ec..27e4d77056ae0 100644 --- a/docs/platforms/javascript/common/index.mdx +++ b/docs/platforms/javascript/common/index.mdx @@ -4,11 +4,9 @@ - +This guide focuses on plain JavaScript. If you're using a framework, select it to open its setup instructions: -This guide focuses on plain JavaScript. If you're working with React, Next.js, or any other framework, choose the fitting SDK from the left-hand dropdown. - - + diff --git a/src/components/frameworkSelector/frameworks.spec.ts b/src/components/frameworkSelector/frameworks.spec.ts index bc95d6b12c363..678adb983c3fb 100644 --- a/src/components/frameworkSelector/frameworks.spec.ts +++ b/src/components/frameworkSelector/frameworks.spec.ts @@ -34,6 +34,12 @@ const guidePages = (guide: string) => { return {path, frontmatter: frontmatter('index.mdx'), children}; }; +/** The quick start page of a runtime. Browser JavaScript is the platform's own page. */ +const quickStartFile = (runtime: string) => + runtime === 'browser' + ? 'docs/platforms/javascript/common/index.mdx' + : join(GUIDES_DIR, runtime, 'index.mdx'); + const PLATFORM_CONTENT_RE = /]*)\/>/g; /** @@ -56,7 +62,7 @@ const switchableIncludePaths = (runtime: string) => { } } }; - scan(readFileSync(join(GUIDES_DIR, runtime, 'index.mdx'), 'utf8'), true); + scan(readFileSync(quickStartFile(runtime), 'utf8'), true); return [...found].sort(); }; diff --git a/src/components/frameworkSelector/frameworks.ts b/src/components/frameworkSelector/frameworks.ts index 3d4945367259f..6315035c6f2b6 100644 --- a/src/components/frameworkSelector/frameworks.ts +++ b/src/components/frameworkSelector/frameworks.ts @@ -49,8 +49,33 @@ export type Runtime = { title: string; }; -/** Runtime guides (keyed by guide slug) that have a framework selector on their getting started page. */ +/** + * Runtime guides (keyed by guide slug) that have a framework selector on their getting started + * page. `browser` is the Browser JavaScript page at `/platforms/javascript/`. + */ export const RUNTIMES: Record = { + browser: { + title: 'Browser JavaScript', + frameworks: [], + frameworkGuides: [ + guide('Angular', 'angular'), + guide('Astro', 'astro'), + guide('Ember', 'ember'), + guide('Gatsby', 'gatsby'), + guide('Next.js', 'nextjs'), + guide('Nuxt', 'nuxt'), + guide('React', 'react'), + guide('React Router', 'react-router'), + guide('Remix', 'remix'), + guide('Solid', 'solid'), + guide('SolidStart', 'solidstart'), + guide('Svelte', 'svelte'), + guide('SvelteKit', 'sveltekit'), + guide('TanStack Start', 'tanstackstart-react'), + guide('Vue', 'vue'), + ], + includePaths: [], + }, node: { title: 'Node.js', frameworks: [EXPRESS, FASTIFY, KOA, HAPI], From bb5b1b75ceac98d8c639bc5f1905786578d2fc3c Mon Sep 17 00:00:00 2001 From: Alex Alderman Webb Date: Thu, 12 Nov 2026 13:58:21 +0000 Subject: [PATCH 066/141] docs(python): Document Amazon Bedrock tracing (#20744) --- .../python/agent-tracing/bedrock/index.mdx | 101 ++++++++++++++++++ docs/platforms/python/agent-tracing/index.mdx | 1 + docs/platforms/python/integrations/index.mdx | 1 + src/components/platformIcon.tsx | 2 + 4 files changed, 105 insertions(+) create mode 100644 docs/platforms/python/agent-tracing/bedrock/index.mdx diff --git a/docs/platforms/python/agent-tracing/bedrock/index.mdx b/docs/platforms/python/agent-tracing/bedrock/index.mdx new file mode 100644 index 0000000000000..887962bfe969d --- /dev/null +++ b/docs/platforms/python/agent-tracing/bedrock/index.mdx @@ -0,0 +1,101 @@ +--- +title: Amazon Bedrock +description: "Learn about using Sentry for Amazon Bedrock." +sidebar_order: 31 +--- + +This integration connects Sentry with [Amazon Bedrock](https://aws.amazon.com/bedrock/) calls made through the [Boto3](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) `bedrock-runtime` client. + +Once you've installed this SDK, you can use the Sentry Agents Tracing, a Sentry dashboard that helps you understand what's going on with your AI requests. + +Sentry AI Observability will automatically collect information about prompts, tools, tokens, and models. Learn more about the [Agents Dashboard](/product/agents/dashboards/). + + + +## Install + +Install `sentry-sdk` from PyPI: + +```bash {tabTitle:pip} +pip install sentry-sdk +``` + +```bash {tabTitle:uv} +uv add sentry-sdk +``` + +## Configure + +Add `Boto3Integration()` to your `integrations` list: + +```python +import sentry_sdk +from sentry_sdk.integrations.boto3 import Boto3Integration + +sentry_sdk.init( + dsn="___PUBLIC_DSN___", + # Set traces_sample_rate to 1.0 to capture 100% + # of transactions for tracing. + traces_sample_rate=1.0, + # Check https://docs.sentry.io/platforms/python/data-management/data-collected/ to configure what data is collected + data_collection={ + "gen_ai": {"inputs": True, "outputs": True}, + }, + integrations=[ + Boto3Integration(), + ], +) +``` + +## Verify + +Verify that the integration works by making a chat request to Bedrock. + +```python +import boto3 +import sentry_sdk + +sentry_sdk.init(...) # same as above + +client = boto3.client("bedrock-runtime", region_name="us-east-1") + +def my_llm_stuff(): + # or sentry_sdk.traces.start_span(name="The result of the AI inference", parent_span=None) in stream mode + with sentry_sdk.start_transaction(name="The result of the AI inference"): + response = client.converse( + modelId="us.anthropic.claude-haiku-4-5-20251001-v1:0", + messages=[ + { + "role": "user", + "content": [{"text": "Tell me a short story about a robot."}], + } + ], + ) + print(response["output"]["message"]["content"][0]["text"]) +``` + +After running this script, the resulting data should show up in the `AI Spans` tab on the `Explore > Traces > Trace` page on Sentry.io. + +If you manually created an Invoke Agent Span (not done in the example above) the data will also show up in the [Agents Dashboard](/product/agents/dashboards/). + +It may take a couple of moments for the data to appear in [sentry.io](https://sentry.io). + +## Behavior + +- The Boto3 integration will connect Sentry with the supported Bedrock methods automatically. + +- The supported methods are currently `converse` and `converse_stream` on the `bedrock-runtime` client. + +- Sentry considers LLM inputs/outputs as PII (Personally identifiable information) and doesn't include prompts, messages, or responses by default. Tool definitions are still attached by default; setting `inputs` to `False` in the `gen_ai` key described below removes them. To include prompts, messages, and responses, use the `gen_ai` key of the `data_collection` option, which lets you control inputs and outputs separately. When you pass a `data_collection` dictionary, both are collected by default: + + ```python + sentry_sdk.init( + # ... + data_collection={ + # Record LLM inputs, but not outputs + "gen_ai": {"inputs": True, "outputs": False}, + }, + ) + ``` + + Alternatively, set `send_default_pii=True` in the `sentry_sdk.init()` call. `send_default_pii` will be removed in version 3.0 of the SDK. diff --git a/docs/platforms/python/agent-tracing/index.mdx b/docs/platforms/python/agent-tracing/index.mdx index 11dd15f3d3679..09db76e8f117c 100644 --- a/docs/platforms/python/agent-tracing/index.mdx +++ b/docs/platforms/python/agent-tracing/index.mdx @@ -34,6 +34,7 @@ Pick your AI stack. Each page has install and verify details. | ✓ | | | ✓ | | | ✓ | | | ✓ | diff --git a/src/components/platformIcon.tsx b/src/components/platformIcon.tsx index d7ddb88331ced..3e09dc006a42c 100644 --- a/src/components/platformIcon.tsx +++ b/src/components/platformIcon.tsx @@ -993,6 +993,7 @@ export const PLATFORM_TO_ICON = { android: 'android', anthropic: 'anthropic', apple: 'apple', + aws: 'aws', capacitor: 'capacitor', clojure: 'clojure', cocoa: 'apple', @@ -1139,6 +1140,7 @@ export const PLATFORM_TO_ICON = { 'python-gcp-functions': 'gcp-functions', 'python-anthropic': 'anthropic', 'python-beam': 'apache-beam', + 'python-bedrock': 'aws', 'python-boto3': 'aws', 'python-bottle': 'bottle', 'python-celery': 'celery', From f25c8955a20f069f7a77808177b728d87bf411b5 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, 12 Nov 2026 15:27:27 +0000 Subject: [PATCH 067/141] Bump API schema to c23c1fc5 (#20757) 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 8b75c578ae4f5..b952551d56ca9 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 = '0a645b70ce7853961410e58f9e177e1af7cd8c7e'; +const SENTRY_API_SCHEMA_SHA = 'c23c1fc534f6fe779eb5255f26effefc23e442dd'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From f4a964df1a9294253c52e673359250947e8102fe 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, 12 Nov 2026 15:35:17 +0000 Subject: [PATCH 068/141] Bump API schema to 40e0d71b (#20758) 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 b952551d56ca9..446dd9819c229 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 = 'c23c1fc534f6fe779eb5255f26effefc23e442dd'; +const SENTRY_API_SCHEMA_SHA = '40e0d71b6670004bd966cccbd82a695f03573b4f'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b41f5b01ff0b0aae8a7a1835c22d4cb10c607847 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, 12 Nov 2026 15:35:57 +0000 Subject: [PATCH 069/141] Bump API schema to 43ec4ae0 (#20759) 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 446dd9819c229..97cd741155b35 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 = '40e0d71b6670004bd966cccbd82a695f03573b4f'; +const SENTRY_API_SCHEMA_SHA = '43ec4ae060a24e8288774af38b4331bd08368ae0'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 372425fd5970808e768530ef9fd509e18d2ac086 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, 12 Nov 2026 15:44:10 +0000 Subject: [PATCH 070/141] Bump API schema to d3b6fd0f (#20760) 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 97cd741155b35..845113a5e1c61 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 = '43ec4ae060a24e8288774af38b4331bd08368ae0'; +const SENTRY_API_SCHEMA_SHA = 'd3b6fd0f9d9dc83df0926f2013bb053635c55c11'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 867f9d8d30aefdf3530eb2c2dbed251a21d2c327 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, 12 Nov 2026 16:48:06 +0000 Subject: [PATCH 071/141] Bump API schema to 6b734c5b (#20762) 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 845113a5e1c61..1251169ce7979 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 = 'd3b6fd0f9d9dc83df0926f2013bb053635c55c11'; +const SENTRY_API_SCHEMA_SHA = '6b734c5b1506ae0e9f1d329040811895b9f11421'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From bb0dff4e48bbc8facc4fcc4a815483c652e2239f 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, 12 Nov 2026 16:55:48 +0000 Subject: [PATCH 072/141] Bump API schema to 64a372e0 (#20763) 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 1251169ce7979..9f6b04c28570a 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 = '6b734c5b1506ae0e9f1d329040811895b9f11421'; +const SENTRY_API_SCHEMA_SHA = '64a372e01a310bbd3702c7ca3219f85a34e1ab51'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b806e1c3b52b4a709eb13cbfd5bb799be1cdedb6 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, 12 Nov 2026 17:32:08 +0000 Subject: [PATCH 073/141] Bump API schema to e9eff808 (#20764) 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 9f6b04c28570a..f27f36b708615 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 = '64a372e01a310bbd3702c7ca3219f85a34e1ab51'; +const SENTRY_API_SCHEMA_SHA = 'e9eff8081f513db8fe60eeda095d8d7e2c65f1f1'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 23680a0b6761abbecfed99c0b42a8fefc7fe1630 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, 12 Nov 2026 17:40:39 +0000 Subject: [PATCH 074/141] Bump API schema to 6a777657 (#20765) 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 f27f36b708615..32c2ed1f3fbc5 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 = 'e9eff8081f513db8fe60eeda095d8d7e2c65f1f1'; +const SENTRY_API_SCHEMA_SHA = '6a77765796514794233b7ab023c75d0b878aafd6'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 579b6ccf1381deb9e9d2e012a637ec10b7ce07b2 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2026 10:00:19 -0800 Subject: [PATCH 075/141] chore(build): Remove Codecov bundle analysis plugin (#20720) ## DESCRIBE YOUR PR Removes the `@codecov/nextjs-webpack-plugin` bundle analysis setup, which was added in #9204. It was the only Codecov integration in this repo. It only uploaded when `CODECOV_TOKEN` was set, and no GitHub workflow sets that variable. We don't use Codecov anymore, so this just removes a webpack plugin from every build. After removal, the custom `webpack` hook in `next.config.ts` had nothing left in it, so it's deleted too. If `CODECOV_TOKEN` is still set in the Vercel project env, it can be removed after this merges. ## 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 Session](https://junior-prod.sentry.dev/conversations/slack%3AD0BB8KQT6MU%3A1794380310.189499) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0BB8KQT6MU%3A1794380310.189499/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Shannon Anahata --- next.config.ts | 13 -- package.json | 1 - pnpm-lock.yaml | 322 ++++++++++--------------------------------------- 3 files changed, 66 insertions(+), 270 deletions(-) diff --git a/next.config.ts b/next.config.ts index a3250e3ff8fa5..875ffec912d81 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,4 +1,3 @@ -import {codecovNextJSWebpackPlugin} from '@codecov/nextjs-webpack-plugin'; import {withSentryConfig} from '@sentry/nextjs/config'; import {redirects} from './redirects.js'; @@ -125,18 +124,6 @@ const nextConfig = { contentDispositionType: 'inline', // "open image in new tab" instead of downloading remotePatterns: REMOTE_IMAGE_PATTERNS, }, - webpack: (config, options) => { - config.plugins.push( - codecovNextJSWebpackPlugin({ - enableBundleAnalysis: typeof process.env.CODECOV_TOKEN === 'string', - bundleName: 'sentry-docs', - uploadToken: process.env.CODECOV_TOKEN, - webpack: options.webpack, - }) - ); - - return config; - }, env: { // Inline this per-deployment value into the edge middleware at build time. // The edge runtime can't read server env vars at request time. diff --git a/package.json b/package.json index 89e6c56a44837..de28c8217cf06 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,6 @@ }, "devDependencies": { "@babel/preset-typescript": "^7.15.0", - "@codecov/nextjs-webpack-plugin": "^1.9.0", "@eslint/js": "^9.26.0", "@next/eslint-plugin-next": "^15.3.3", "@tailwindcss/forms": "^0.5.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 87d0e30b39657..25864a5e6f0b8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -301,9 +301,6 @@ importers: '@babel/preset-typescript': specifier: ^7.15.0 version: 7.28.5(@babel/core@7.29.7) - '@codecov/nextjs-webpack-plugin': - specifier: ^1.9.0 - version: 1.9.1(next@15.5.24(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@22.19.11)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.98.0))(webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23)) '@eslint/js': specifier: ^9.26.0 version: 9.39.4 @@ -415,21 +412,6 @@ importers: packages: - '@actions/core@1.11.1': - resolution: {integrity: sha512-hXJCSrkwfA46Vd9Z3q4cpEpHB1rL5NG04+/rbqW9d3+CSvtB1tYe8UTpAlixa1vj0m/ULglfEK2UKxMGxCxv5A==} - - '@actions/exec@1.1.1': - resolution: {integrity: sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==} - - '@actions/github@6.0.1': - resolution: {integrity: sha512-xbZVcaqD4XnQAe35qSQqskb3SqIAfRyLBrHMd/8TuL7hJSz2QtbDwnNM8zWx4zO5l2fnGtseNE3MbEvD7BxVMw==} - - '@actions/http-client@2.2.3': - resolution: {integrity: sha512-mx8hyJi/hjFvbPokCg4uRd4ZX78t+YyRPtnKWwIl+RzNaVuFpQHfmlGVfsKEJN8LwTCvL+DfVgAM04XaHkm6bA==} - - '@actions/io@1.1.3': - resolution: {integrity: sha512-wi9JjgKLYS7U/z8PPbco+PvTb/nRWjeoFlJ1Qer83k/3C5PHQi28hiVdeE2kHXmIL99mQFawx8qt/JPjZilJ8Q==} - '@algolia/cache-browser-local-storage@4.26.0': resolution: {integrity: sha512-z5oJK50poA6TujwqRCMcevZC3CjqhjAv3mOXde6bZVMroe1PqYuKXbN/bSUTZRAMtKkMJLeVt/WXkneTThRQRA==} @@ -928,23 +910,6 @@ packages: '@chevrotain/types@11.1.2': resolution: {integrity: sha512-U+HFai5+zmJCkK86QsaJtoITlboZHBqrVketcO2ROv865xfCMSFpELQoz1GkX5GzME8pTa+3kbKrZHQtI0gdbw==} - '@codecov/bundler-plugin-core@1.9.1': - resolution: {integrity: sha512-dt3ic7gMswz4p/qdkYPVJwXlLiLsz55rBBn2I7mr0HTG8pCoLRqnANJIwo5WrqGBZgPyVSMPBqBra6VxLWfDyA==} - engines: {node: '>=18.0.0'} - - '@codecov/nextjs-webpack-plugin@1.9.1': - resolution: {integrity: sha512-putRt+22vw+CVtigzVMpTl3B96MxZNC1IkTm5OmZujY4HY/tZt9Qn55rOoa0xQsV4ur3nNN1uiIoPGmJn4ZvVQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - next: 14.x || 15.x - webpack: 5.x - - '@codecov/webpack-plugin@1.9.1': - resolution: {integrity: sha512-isyETXPJfhuG+UOteElc1X/IHpBG0dZNAa7loquA9N6lcu4szwNkwHvLdnMJ49kjVwcIpZBjUD2eZPhneBcDYQ==} - engines: {node: '>=18.0.0'} - peerDependencies: - webpack: 5.x - '@cspotcode/source-map-support@0.8.1': resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} @@ -1789,54 +1754,6 @@ packages: resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} - '@octokit/auth-token@4.0.0': - resolution: {integrity: sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==} - engines: {node: '>= 18'} - - '@octokit/core@5.2.2': - resolution: {integrity: sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==} - engines: {node: '>= 18'} - - '@octokit/endpoint@9.0.6': - resolution: {integrity: sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==} - engines: {node: '>= 18'} - - '@octokit/graphql@7.1.1': - resolution: {integrity: sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==} - engines: {node: '>= 18'} - - '@octokit/openapi-types@20.0.0': - resolution: {integrity: sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==} - - '@octokit/openapi-types@24.2.0': - resolution: {integrity: sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==} - - '@octokit/plugin-paginate-rest@9.2.2': - resolution: {integrity: sha512-u3KYkGF7GcZnSD/3UP0S7K5XUFT2FkOQdcfXZGZQPGv3lm4F2Xbf71lvjldr8c1H3nNbF+33cLEkWYbokGWqiQ==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '5' - - '@octokit/plugin-rest-endpoint-methods@10.4.1': - resolution: {integrity: sha512-xV1b+ceKV9KytQe3zCVqjg+8GTGfDYwaT1ATU5isiUyVtlVAO3HNdzpS4sr4GBx4hxQ46s7ITtZrAsxG22+rVg==} - engines: {node: '>= 18'} - peerDependencies: - '@octokit/core': '5' - - '@octokit/request-error@5.1.1': - resolution: {integrity: sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==} - engines: {node: '>= 18'} - - '@octokit/request@8.4.1': - resolution: {integrity: sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==} - engines: {node: '>= 18'} - - '@octokit/types@12.6.0': - resolution: {integrity: sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==} - - '@octokit/types@13.10.0': - resolution: {integrity: sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==} - '@opentelemetry/api@1.9.1': resolution: {integrity: sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==} engines: {node: '>=8.0.0'} @@ -4043,9 +3960,6 @@ packages: bcp-47@2.1.0: resolution: {integrity: sha512-9IIS3UPrvIa1Ej+lVDdDwO7zLehjqsaByECw0bu2RRGP73jALm6FYbzI5gWbgHLvNdkvfXB5YrSbocZdOS0c0w==} - before-after-hook@2.2.3: - resolution: {integrity: sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==} - bignumber.js@9.3.1: resolution: {integrity: sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==} @@ -4513,9 +4427,6 @@ packages: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} - deprecation@2.3.1: - resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} - dequal@2.0.3: resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} engines: {node: '>=6'} @@ -7241,10 +7152,6 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - tunnel@0.0.6: - resolution: {integrity: sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==} - engines: {node: '>=0.6.11 <=0.7.0 || >=0.7.3'} - type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -7294,10 +7201,6 @@ packages: undici-types@6.21.0: resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} - undici@6.27.0: - resolution: {integrity: sha512-YmfV3YnEDzXRC5lZ2jWtWWHKGUm1zIt8AhesR1tens+HTNv+YZlN/dp6G727LOvMJ8xjP9Be7Y2Sdr96LDm+pg==} - engines: {node: '>=18.17'} - unified@10.1.2: resolution: {integrity: sha512-pUSWAi/RAnVy1Pif2kAoeWNBa3JVrx0MId2LASj8G+7AiHWoKZNTomq6LG326T68U7/e263X6fTdcXIy7XnF7Q==} @@ -7352,17 +7255,10 @@ packages: unist-util-visit@5.1.0: resolution: {integrity: sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==} - universal-user-agent@6.0.1: - resolution: {integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==} - universalify@0.2.0: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} - unplugin@1.16.1: - resolution: {integrity: sha512-4/u/j4FrCKdi17jaxuJA0jClGxB1AvU2hw/IuayPc4ay1XGaJs/rbb4v5WKwAjNifjmXK9PIFyuPiaK8azyR9w==} - engines: {node: '>=14.0.0'} - update-browserslist-db@1.2.3: resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==} hasBin: true @@ -7585,9 +7481,6 @@ packages: resolution: {integrity: sha512-jyuiGJdtvY434z5bUZrjz67v76/ePNvFZTp9Mdz29IlH4+GPsgyGjiv0fKI+M7BdkU6ADjulUcKAd3tUK3WlEw==} engines: {node: '>=10.13.0'} - webpack-virtual-modules@0.6.2: - resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} - webpack@5.105.2: resolution: {integrity: sha512-dRXm0a2qcHPUBEzVk8uph0xWSjV/xZxenQQbLwnwP7caQCYpqG1qddwlyEkIDkYn0K8tvmcrZ+bOrzoQ3HxCDw==} engines: {node: '>=10.13.0'} @@ -7717,40 +7610,11 @@ packages: resolution: {integrity: sha512-4LCcse/U2MHZ63HAJVE+v71o7yOdIe4cZ70Wpf8D/IyjDKYQLV5GD46B+hSTjJsvV5PztjvHoU580EftxjDZFQ==} engines: {node: '>=12.20'} - zod@3.25.76: - resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} - zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} snapshots: - '@actions/core@1.11.1': - dependencies: - '@actions/exec': 1.1.1 - '@actions/http-client': 2.2.3 - - '@actions/exec@1.1.1': - dependencies: - '@actions/io': 1.1.3 - - '@actions/github@6.0.1': - dependencies: - '@actions/http-client': 2.2.3 - '@octokit/core': 5.2.2 - '@octokit/plugin-paginate-rest': 9.2.2(@octokit/core@5.2.2) - '@octokit/plugin-rest-endpoint-methods': 10.4.1(@octokit/core@5.2.2) - '@octokit/request': 8.4.1 - '@octokit/request-error': 5.1.1 - undici: 6.27.0 - - '@actions/http-client@2.2.3': - dependencies: - tunnel: 0.0.6 - undici: 6.27.0 - - '@actions/io@1.1.3': {} - '@algolia/cache-browser-local-storage@4.26.0': dependencies: '@algolia/cache-common': 4.26.0 @@ -8628,29 +8492,6 @@ snapshots: '@chevrotain/types@11.1.2': {} - '@codecov/bundler-plugin-core@1.9.1': - dependencies: - '@actions/core': 1.11.1 - '@actions/github': 6.0.1 - chalk: 4.1.2 - semver: 7.8.5 - unplugin: 1.16.1 - zod: 3.25.76 - - '@codecov/nextjs-webpack-plugin@1.9.1(next@15.5.24(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@22.19.11)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.98.0))(webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23))': - dependencies: - '@codecov/bundler-plugin-core': 1.9.1 - '@codecov/webpack-plugin': 1.9.1(webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23)) - next: 15.5.24(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@22.19.11)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.98.0) - unplugin: 1.16.1 - webpack: 5.105.2(esbuild@0.28.1)(postcss@8.5.23) - - '@codecov/webpack-plugin@1.9.1(webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23))': - dependencies: - '@codecov/bundler-plugin-core': 1.9.1 - unplugin: 1.16.1 - webpack: 5.105.2(esbuild@0.28.1)(postcss@8.5.23) - '@cspotcode/source-map-support@0.8.1': dependencies: '@jridgewell/trace-mapping': 0.3.9 @@ -9327,6 +9168,7 @@ snapshots: dependencies: '@jridgewell/gen-mapping': 0.3.13 '@jridgewell/trace-mapping': 0.3.31 + optional: true '@jridgewell/sourcemap-codec@1.6.0': {} @@ -9447,64 +9289,6 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.20.1 - '@octokit/auth-token@4.0.0': {} - - '@octokit/core@5.2.2': - dependencies: - '@octokit/auth-token': 4.0.0 - '@octokit/graphql': 7.1.1 - '@octokit/request': 8.4.1 - '@octokit/request-error': 5.1.1 - '@octokit/types': 13.10.0 - before-after-hook: 2.2.3 - universal-user-agent: 6.0.1 - - '@octokit/endpoint@9.0.6': - dependencies: - '@octokit/types': 13.10.0 - universal-user-agent: 6.0.1 - - '@octokit/graphql@7.1.1': - dependencies: - '@octokit/request': 8.4.1 - '@octokit/types': 13.10.0 - universal-user-agent: 6.0.1 - - '@octokit/openapi-types@20.0.0': {} - - '@octokit/openapi-types@24.2.0': {} - - '@octokit/plugin-paginate-rest@9.2.2(@octokit/core@5.2.2)': - dependencies: - '@octokit/core': 5.2.2 - '@octokit/types': 12.6.0 - - '@octokit/plugin-rest-endpoint-methods@10.4.1(@octokit/core@5.2.2)': - dependencies: - '@octokit/core': 5.2.2 - '@octokit/types': 12.6.0 - - '@octokit/request-error@5.1.1': - dependencies: - '@octokit/types': 13.10.0 - deprecation: 2.3.1 - once: 1.4.0 - - '@octokit/request@8.4.1': - dependencies: - '@octokit/endpoint': 9.0.6 - '@octokit/request-error': 5.1.1 - '@octokit/types': 13.10.0 - universal-user-agent: 6.0.1 - - '@octokit/types@12.6.0': - dependencies: - '@octokit/openapi-types': 20.0.0 - - '@octokit/types@13.10.0': - dependencies: - '@octokit/openapi-types': 24.2.0 - '@opentelemetry/api@1.9.1': {} '@oxc-parser/binding-android-arm-eabi@0.152.0': @@ -11248,11 +11032,13 @@ snapshots: dependencies: '@types/eslint': 9.6.1 '@types/estree': 1.0.9 + optional: true '@types/eslint@9.6.1': dependencies: '@types/estree': 1.0.9 '@types/json-schema': 7.0.15 + optional: true '@types/estree-jsx@1.0.5': dependencies: @@ -11504,20 +11290,26 @@ snapshots: dependencies: '@webassemblyjs/helper-numbers': 1.13.2 '@webassemblyjs/helper-wasm-bytecode': 1.13.2 + optional: true - '@webassemblyjs/floating-point-hex-parser@1.13.2': {} + '@webassemblyjs/floating-point-hex-parser@1.13.2': + optional: true - '@webassemblyjs/helper-api-error@1.13.2': {} + '@webassemblyjs/helper-api-error@1.13.2': + optional: true - '@webassemblyjs/helper-buffer@1.14.1': {} + '@webassemblyjs/helper-buffer@1.14.1': + optional: true '@webassemblyjs/helper-numbers@1.13.2': dependencies: '@webassemblyjs/floating-point-hex-parser': 1.13.2 '@webassemblyjs/helper-api-error': 1.13.2 '@xtuc/long': 4.2.2 + optional: true - '@webassemblyjs/helper-wasm-bytecode@1.13.2': {} + '@webassemblyjs/helper-wasm-bytecode@1.13.2': + optional: true '@webassemblyjs/helper-wasm-section@1.14.1': dependencies: @@ -11525,16 +11317,20 @@ snapshots: '@webassemblyjs/helper-buffer': 1.14.1 '@webassemblyjs/helper-wasm-bytecode': 1.13.2 '@webassemblyjs/wasm-gen': 1.14.1 + optional: true '@webassemblyjs/ieee754@1.13.2': dependencies: '@xtuc/ieee754': 1.2.0 + optional: true '@webassemblyjs/leb128@1.13.2': dependencies: '@xtuc/long': 4.2.2 + optional: true - '@webassemblyjs/utf8@1.13.2': {} + '@webassemblyjs/utf8@1.13.2': + optional: true '@webassemblyjs/wasm-edit@1.14.1': dependencies: @@ -11546,6 +11342,7 @@ snapshots: '@webassemblyjs/wasm-opt': 1.14.1 '@webassemblyjs/wasm-parser': 1.14.1 '@webassemblyjs/wast-printer': 1.14.1 + optional: true '@webassemblyjs/wasm-gen@1.14.1': dependencies: @@ -11554,6 +11351,7 @@ snapshots: '@webassemblyjs/ieee754': 1.13.2 '@webassemblyjs/leb128': 1.13.2 '@webassemblyjs/utf8': 1.13.2 + optional: true '@webassemblyjs/wasm-opt@1.14.1': dependencies: @@ -11561,6 +11359,7 @@ snapshots: '@webassemblyjs/helper-buffer': 1.14.1 '@webassemblyjs/wasm-gen': 1.14.1 '@webassemblyjs/wasm-parser': 1.14.1 + optional: true '@webassemblyjs/wasm-parser@1.14.1': dependencies: @@ -11570,19 +11369,23 @@ snapshots: '@webassemblyjs/ieee754': 1.13.2 '@webassemblyjs/leb128': 1.13.2 '@webassemblyjs/utf8': 1.13.2 + optional: true '@webassemblyjs/wast-printer@1.14.1': dependencies: '@webassemblyjs/ast': 1.14.1 '@xtuc/long': 4.2.2 + optional: true '@xml-tools/parser@1.0.11': dependencies: chevrotain: 7.1.1 - '@xtuc/ieee754@1.2.0': {} + '@xtuc/ieee754@1.2.0': + optional: true - '@xtuc/long@4.2.2': {} + '@xtuc/long@4.2.2': + optional: true abab@2.0.6: {} @@ -11598,6 +11401,7 @@ snapshots: acorn-import-phases@1.0.4(acorn@8.18.0): dependencies: acorn: 8.18.0 + optional: true acorn-jsx@5.3.2(acorn@8.15.0): dependencies: @@ -11615,7 +11419,8 @@ snapshots: acorn@8.16.0: {} - acorn@8.18.0: {} + acorn@8.18.0: + optional: true agent-base@6.0.2: dependencies: @@ -11628,11 +11433,13 @@ snapshots: ajv-formats@3.0.1(ajv@8.20.0): optionalDependencies: ajv: 8.20.0 + optional: true ajv-keywords@5.1.0(ajv@8.20.0): dependencies: ajv: 8.20.0 fast-deep-equal: 3.1.3 + optional: true ajv@6.14.0: dependencies: @@ -11647,6 +11454,7 @@ snapshots: fast-uri: 3.1.8 json-schema-traverse: 1.0.0 require-from-string: 2.0.2 + optional: true algoliasearch@4.26.0: dependencies: @@ -11879,8 +11687,6 @@ snapshots: is-alphanumerical: 2.0.1 is-decimal: 2.0.1 - before-after-hook@2.2.3: {} - bignumber.js@9.3.1: {} binary-extensions@2.3.0: {} @@ -11989,7 +11795,8 @@ snapshots: dependencies: readdirp: 4.1.2 - chrome-trace-event@1.0.4: {} + chrome-trace-event@1.0.4: + optional: true ci-info@3.9.0: {} @@ -12027,7 +11834,8 @@ snapshots: comma-separated-tokens@2.0.3: {} - commander@2.20.3: {} + commander@2.20.3: + optional: true commander@4.1.1: {} @@ -12363,8 +12171,6 @@ snapshots: delayed-stream@1.0.0: {} - deprecation@2.3.1: {} - dequal@2.0.3: {} detect-libc@2.1.2: {} @@ -12472,6 +12278,7 @@ snapshots: dependencies: graceful-fs: 4.2.11 tapable: 2.3.3 + optional: true entities@2.2.0: {} @@ -12755,6 +12562,7 @@ snapshots: dependencies: esrecurse: 4.3.0 estraverse: 4.3.0 + optional: true eslint-scope@8.4.0: dependencies: @@ -12824,7 +12632,8 @@ snapshots: dependencies: estraverse: 5.3.0 - estraverse@4.3.0: {} + estraverse@4.3.0: + optional: true estraverse@5.3.0: {} @@ -12871,7 +12680,8 @@ snapshots: event-target-shim@5.0.1: {} - events@3.3.0: {} + events@3.3.0: + optional: true execa@5.1.1: dependencies: @@ -12925,7 +12735,8 @@ snapshots: fast-levenshtein@2.0.6: {} - fast-uri@3.1.8: {} + fast-uri@3.1.8: + optional: true fast-xml-builder@1.2.0: dependencies: @@ -13096,7 +12907,8 @@ snapshots: dependencies: is-glob: 4.0.3 - glob-to-regexp@0.4.1: {} + glob-to-regexp@0.4.1: + optional: true glob@13.0.6: dependencies: @@ -14025,6 +13837,7 @@ snapshots: '@types/node': 22.20.4 merge-stream: 2.0.0 supports-color: 8.1.1 + optional: true jest-worker@29.7.0: dependencies: @@ -14105,7 +13918,8 @@ snapshots: json-schema-traverse@0.4.1: {} - json-schema-traverse@1.0.0: {} + json-schema-traverse@1.0.0: + optional: true json-stable-stringify-without-jsonify@1.0.1: {} @@ -14162,7 +13976,8 @@ snapshots: lines-and-columns@1.2.4: {} - loader-runner@4.3.2: {} + loader-runner@4.3.2: + optional: true locate-path@5.0.0: dependencies: @@ -14750,7 +14565,8 @@ snapshots: natural-compare@1.4.0: {} - neo-async@2.6.2: {} + neo-async@2.6.2: + optional: true next-plausible@3.12.5(next@15.5.24(@babel/core@7.29.7)(@opentelemetry/api@1.9.1)(@types/node@22.19.11)(babel-plugin-macros@3.1.0)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)(sass@1.98.0))(react-dom@19.2.4(react@19.2.4))(react@19.2.4): dependencies: @@ -15649,7 +15465,8 @@ snapshots: require-directory@2.1.1: {} - require-from-string@2.0.2: {} + require-from-string@2.0.2: + optional: true requires-port@1.0.0: {} @@ -15821,6 +15638,7 @@ snapshots: ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) ajv-keywords: 5.1.0(ajv@8.20.0) + optional: true search-insights@2.17.3: {} @@ -15949,6 +15767,7 @@ snapshots: dependencies: buffer-from: 1.1.2 source-map: 0.6.1 + optional: true source-map@0.5.7: {} @@ -16144,7 +15963,8 @@ snapshots: - tsx - yaml - tapable@2.3.3: {} + tapable@2.3.3: + optional: true teeny-request@9.0.0: dependencies: @@ -16167,6 +15987,7 @@ snapshots: optionalDependencies: esbuild: 0.28.1 postcss: 8.5.23 + optional: true terser@5.51.2: dependencies: @@ -16174,6 +15995,7 @@ snapshots: acorn: 8.18.0 commander: 2.20.3 source-map-support: 0.5.21 + optional: true test-exclude@6.0.0: dependencies: @@ -16284,8 +16106,6 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - tunnel@0.0.6: {} - type-check@0.4.0: dependencies: prelude-ls: 1.2.1 @@ -16342,8 +16162,6 @@ snapshots: undici-types@6.21.0: {} - undici@6.27.0: {} - unified@10.1.2: dependencies: '@types/unist': 2.0.11 @@ -16437,15 +16255,8 @@ snapshots: unist-util-is: 6.0.1 unist-util-visit-parents: 6.0.2 - universal-user-agent@6.0.1: {} - universalify@0.2.0: {} - unplugin@1.16.1: - dependencies: - acorn: 8.15.0 - webpack-virtual-modules: 0.6.2 - update-browserslist-db@1.2.3(browserslist@4.28.1): dependencies: browserslist: 4.28.1 @@ -16621,6 +16432,7 @@ snapshots: watchpack@2.5.2: dependencies: graceful-fs: 4.2.11 + optional: true web-namespaces@2.0.1: {} @@ -16630,9 +16442,8 @@ snapshots: webidl-conversions@7.0.0: {} - webpack-sources@3.5.1: {} - - webpack-virtual-modules@0.6.2: {} + webpack-sources@3.5.1: + optional: true webpack@5.105.2(esbuild@0.28.1)(postcss@8.5.23): dependencies: @@ -16674,6 +16485,7 @@ snapshots: - lightningcss - postcss - uglify-js + optional: true whatwg-encoding@2.0.0: dependencies: @@ -16792,6 +16604,4 @@ snapshots: yocto-queue@1.2.2: {} - zod@3.25.76: {} - zwitch@2.0.4: {} From 7a7ffc5a334eb054d445b8bc9171a348c870b848 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, 12 Nov 2026 18:10:39 +0000 Subject: [PATCH 076/141] Bump API schema to ffef2e1c (#20766) 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 32c2ed1f3fbc5..7b777e19973be 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 = '6a77765796514794233b7ab023c75d0b878aafd6'; +const SENTRY_API_SCHEMA_SHA = 'ffef2e1c0fa38b88f06159659f3bac78c0e8586c'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From f1b98a76769a468fb0bf1868d4c4936af7365e7f 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, 12 Nov 2026 18:19:53 +0000 Subject: [PATCH 077/141] Bump API schema to c94043be (#20767) 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 7b777e19973be..c9d16a608cb73 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 = 'ffef2e1c0fa38b88f06159659f3bac78c0e8586c'; +const SENTRY_API_SCHEMA_SHA = 'c94043bec3273830a9238b269d2e33b3f92a2d0b'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 6af64848ab0fafcb68a20338b9b500fa4fc25ed1 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, 12 Nov 2026 18:51:26 +0000 Subject: [PATCH 078/141] Bump API schema to 9b2c7225 (#20769) 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 c9d16a608cb73..0a2d87a849dc0 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 = 'c94043bec3273830a9238b269d2e33b3f92a2d0b'; +const SENTRY_API_SCHEMA_SHA = '9b2c7225088e026a7ff8489cd40fffa8865af3ff'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 5e4a9690cbcc81b17ca825d9af6ebbb49f54084c 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, 12 Nov 2026 19:01:05 +0000 Subject: [PATCH 079/141] Bump API schema to 3fe91b7a (#20770) 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 0a2d87a849dc0..00b49abba7232 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 = '9b2c7225088e026a7ff8489cd40fffa8865af3ff'; +const SENTRY_API_SCHEMA_SHA = '3fe91b7adf44cf93bad21d5439923e8827a48441'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 22af4d68f01d0fd24814c3a7e73b72ceaed5a767 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, 12 Nov 2026 19:36:34 +0000 Subject: [PATCH 080/141] Bump API schema to 36853aa5 (#20771) 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 00b49abba7232..4a546ed2f3d7a 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 = '3fe91b7adf44cf93bad21d5439923e8827a48441'; +const SENTRY_API_SCHEMA_SHA = '36853aa5797564435e9980030d84689df3bb04f5'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 716f84bfc3fdc7d521c60dc36778e98e416beeea 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, 12 Nov 2026 19:45:01 +0000 Subject: [PATCH 081/141] Bump API schema to 277ad58b (#20772) 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 4a546ed2f3d7a..7e1be6d947a51 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 = '36853aa5797564435e9980030d84689df3bb04f5'; +const SENTRY_API_SCHEMA_SHA = '277ad58b83f5a28e84e9a8fca4cddf26ddc5c037'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From af4718b708a6b3ccaaaf5ca3793dd0bce9ee2ebe 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, 12 Nov 2026 21:16:09 +0000 Subject: [PATCH 082/141] Bump API schema to 95b38cf1 (#20773) 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 7e1be6d947a51..e47f604558973 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 = '277ad58b83f5a28e84e9a8fca4cddf26ddc5c037'; +const SENTRY_API_SCHEMA_SHA = '95b38cf190bfca73c77a09b2156567ac64daf6a9'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b8932f2b0eceffa42624c6a94282a172415622e5 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, 12 Nov 2026 21:25:11 +0000 Subject: [PATCH 083/141] Bump API schema to 9dccc92b (#20774) 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 e47f604558973..344b52dd25057 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 = '95b38cf190bfca73c77a09b2156567ac64daf6a9'; +const SENTRY_API_SCHEMA_SHA = '9dccc92b74f0b5d97d29d63c998ece18dfe886ae'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 36e7968aeeff4cb5cbbe2801759aef28cbaa05fc 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, 12 Nov 2026 22:48:13 +0000 Subject: [PATCH 084/141] Bump API schema to 18c2d5fb (#20777) 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 344b52dd25057..975dba1e8b444 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 = '9dccc92b74f0b5d97d29d63c998ece18dfe886ae'; +const SENTRY_API_SCHEMA_SHA = '18c2d5fb69b4be701941c02da0a7adb578dcaee0'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 5e4ffd91b12eabc39cc1235bef5f650b9a98915a 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, 12 Nov 2026 22:56:13 +0000 Subject: [PATCH 085/141] Bump API schema to e5635105 (#20779) 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 975dba1e8b444..9eb45a1eb6ba4 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 = '18c2d5fb69b4be701941c02da0a7adb578dcaee0'; +const SENTRY_API_SCHEMA_SHA = 'e5635105e1d8ce48f225e0a787955586808d54f3'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From f62b827350b4dbd7100534b32068472a27033bef 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, 13 Nov 2026 13:40:45 +0000 Subject: [PATCH 086/141] Bump API schema to f15d1f5c (#20795) 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 9eb45a1eb6ba4..53409eb979a7b 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 = 'e5635105e1d8ce48f225e0a787955586808d54f3'; +const SENTRY_API_SCHEMA_SHA = 'f15d1f5ca4fb6216a05d761d3cf3ddbd79d57b9f'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From bcd767eade11a29ee5126d3214a8faa11435a02a 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, 13 Nov 2026 13:48:22 +0000 Subject: [PATCH 087/141] Bump API schema to b771503e (#20796) 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 53409eb979a7b..28b44fb8ab598 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 = 'f15d1f5ca4fb6216a05d761d3cf3ddbd79d57b9f'; +const SENTRY_API_SCHEMA_SHA = 'b771503e4d6ef54f1e800a764beb7ee890f57855'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 635a5ec30edc06a5f6768693a6ab6bfbbfc0c3d6 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, 13 Nov 2026 14:33:34 +0000 Subject: [PATCH 088/141] Bump API schema to c08ef494 (#20797) 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 28b44fb8ab598..683f066c2cae0 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 = 'b771503e4d6ef54f1e800a764beb7ee890f57855'; +const SENTRY_API_SCHEMA_SHA = 'c08ef4942a0c885e4e34932da528ea69f2cb133d'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From e99454f31a81f0812209e0ea77e522714a7342d7 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 14:37:26 +0000 Subject: [PATCH 089/141] feat(api): Read the API base path from the spec's server URL (#20787) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > **Merge order:** [getsentry/sentry-api-schema#148](https://github.com/getsentry/sentry-api-schema/pull/148) → [getsentry/sentry-docs#20787](https://github.com/getsentry/sentry-docs/pull/20787) → [getsentry/sentry#131065](https://github.com/getsentry/sentry/pull/131065) → the getsentry/toolkit bump, after `@sentry/api` 2.0.0 is published. Docs has to merge before sentry#131065. When that merges, the spec sync commits the new spec to sentry-api-schema, which auto-releases `@sentry/api` and auto-bumps the schema in sentry-docs. Without this PR merged first, the docs would drop `/api/0` from paths and curl examples. This PR also works with the current spec. ## DESCRIBE YOUR PR Sentry's OpenAPI spec is moving `/api/0` out of every path and into its server URL, so clients read the base path (and the API version in it) from the spec ([getsentry/sentry-api-schema#148](https://github.com/getsentry/sentry-api-schema/pull/148), then the getsentry/sentry change). The API reference ignored the spec-level `servers`, so after that change, pages and curl examples would drop `/api/0`. `apiLocation()` joins the server URL's path to each operation path. The server it shows is only the origin, still `https://sentry.io` by default, or the operation's own server. Before, with the new spec shape: ``` GET /organizations/ curl https://sentry.io/organizations/ ``` After, with either spec shape: ``` GET /api/0/organizations/ curl https://sentry.io/api/0/organizations/ ``` **No visual change, so no screenshots.** I ran `apiCategories()` against a spec built from getsentry/sentry master and against the same spec built with the change. The page data was byte-identical, including the per-operation `https://{region}.sentry.io` server on `/api/0/seer/models/`. Checks: the `resolveOpenAPI.spec.ts` vitest suite passes, with one new table test covering both spec shapes and an operation-level server. ESLint and Prettier pass on the changed files. ## 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+ It does block the getsentry/sentry spec change from merging. ## 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 @BYK. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A640c5343d03e547097aa9b8a711daaf5) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A640c5343d03e547097aa9b8a711daaf5/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@users.noreply.github.com> --- src/build/open-api/types.ts | 1 + src/build/resolveOpenAPI.spec.ts | 22 +++++++++++++++++++++- src/build/resolveOpenAPI.ts | 27 +++++++++++++++++++++------ 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/src/build/open-api/types.ts b/src/build/open-api/types.ts index 20d07a6947d26..ce7bc72425b9b 100644 --- a/src/build/open-api/types.ts +++ b/src/build/open-api/types.ts @@ -78,6 +78,7 @@ export type DeRefedOpenAPI = { }; }; tags: Tag[]; + servers?: ServerMeta[]; }; export type ResponseContent = { diff --git a/src/build/resolveOpenAPI.spec.ts b/src/build/resolveOpenAPI.spec.ts index 62aef56e2acc3..52a9d563287e2 100644 --- a/src/build/resolveOpenAPI.spec.ts +++ b/src/build/resolveOpenAPI.spec.ts @@ -1,6 +1,6 @@ import {describe, expect, test} from 'vitest'; -import {toDocumentedParameter} from './resolveOpenAPI'; +import {apiLocation, toDocumentedParameter} from './resolveOpenAPI'; const EXPERIMENTAL_NOTICE = '**Experimental:** This parameter is under active development and may change.\n\n'; @@ -44,3 +44,23 @@ describe('toDocumentedParameter', () => { ); }); }); + +describe('apiLocation', () => { + const regional = [{url: 'https://{region}.sentry.io/api/0'}]; + + test.each([ + [ + 'paths carry the base path', + [{url: 'https://{region}.sentry.io'}], + undefined, + '/api/0/organizations/', + ], + ['the server URL carries it', regional, undefined, '/organizations/'], + ['an operation server carries it', regional, regional, '/organizations/'], + ])('shows the full path when %s', (_, specServers, operationServers, path) => { + expect(apiLocation(path, specServers, operationServers)).toEqual({ + apiPath: '/api/0/organizations/', + server: operationServers ? 'https://{region}.sentry.io' : 'https://sentry.io', + }); + }); +}); diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts index 683f066c2cae0..08f61c5159e3b 100644 --- a/src/build/resolveOpenAPI.ts +++ b/src/build/resolveOpenAPI.ts @@ -126,6 +126,25 @@ export function toDocumentedParameter( }; } +const DEFAULT_SERVER = 'https://sentry.io'; +const SERVER_URL = /^([a-z][a-z0-9+.-]*:\/\/[^/]*)(\/.*)?$/i; + +// Sentry's spec puts the API base path, such as `/api/0`, in its server URL, and its +// paths are relative to it. Pages show the origin and the full path after it. +export function apiLocation( + path: string, + specServers: {url: string}[] | undefined, + operationServers: {url: string}[] | undefined +): {apiPath: string; server: string} { + const operationServer = operationServers?.[0]?.url; + const [, origin = DEFAULT_SERVER, basePath = ''] = + SERVER_URL.exec(operationServer ?? specServers?.[0]?.url ?? '') ?? []; + return { + apiPath: `${basePath.replace(/\/+$/, '')}${path}`, + server: operationServer ? origin : DEFAULT_SERVER, + }; +} + function isDeprecatedOperationId(operationId: string | undefined): boolean { return operationId ? DEPRECATED_PREFIX_REGEX.test(operationId) : false; } @@ -168,18 +187,14 @@ async function apiCategoriesUncached(): Promise { const titleSource = apiData.summary || apiData.operationId || ''; const cleanName = stripDeprecatedPrefix(titleSource); - let server = 'https://sentry.io'; - if (apiData.servers && apiData.servers[0]) { - server = apiData.servers[0].url; - } + const location = apiLocation(apiPath, data.servers, apiData.servers); apiData.tags.forEach(tag => { categoryMap[tag].apis.push({ - apiPath, + ...location, method, name: cleanName, deprecated: isDeprecated, experimental: isExperimental, - server, slug: slugify(cleanName), summary: apiData.summary ? stripDeprecatedPrefix(apiData.summary) From a3d78d8c031dc1abbab4df6e3f38efd981790014 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, 13 Nov 2026 14:42:57 +0000 Subject: [PATCH 090/141] Bump API schema to f05e956a (#20798) 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 08f61c5159e3b..74fa04f6cefce 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 = 'c08ef4942a0c885e4e34932da528ea69f2cb133d'; +const SENTRY_API_SCHEMA_SHA = 'f05e956a9d0603cde9e3bd1af40a8ba141b4c882'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From db96a79183f3a9008c4cc1323f01765c035bb479 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, 13 Nov 2026 15:06:18 +0000 Subject: [PATCH 091/141] Bump API schema to 36d0d115 (#20799) 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 74fa04f6cefce..f6ff435a1afde 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 = 'f05e956a9d0603cde9e3bd1af40a8ba141b4c882'; +const SENTRY_API_SCHEMA_SHA = '36d0d1159d8b494f5cfbbd56bc18855fd683e9c9'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From bea506af0795d19b5412e69f13ef0b5920c44ec2 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, 13 Nov 2026 15:08:56 +0000 Subject: [PATCH 092/141] Bump API schema to 153706be (#20800) 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 f6ff435a1afde..f66f3e60e385b 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 = '36d0d1159d8b494f5cfbbd56bc18855fd683e9c9'; +const SENTRY_API_SCHEMA_SHA = '153706be2e16174c7e6bfce382b0f20feb3bddcf'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From e1a31cc9a7fccd239c675fc62c890cda25f9c510 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, 13 Nov 2026 15:25:05 +0000 Subject: [PATCH 093/141] Bump API schema to 2c01f623 (#20801) 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 f66f3e60e385b..6a35ee00d40bf 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 = '153706be2e16174c7e6bfce382b0f20feb3bddcf'; +const SENTRY_API_SCHEMA_SHA = '2c01f62369fa57abcd08fb95c9c0959d6ac9f814'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From a2d3512183e8f33e5fa27a9ffc1cb7b8edc95e99 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, 13 Nov 2026 15:26:23 +0000 Subject: [PATCH 094/141] Bump API schema to 78718872 (#20802) 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 6a35ee00d40bf..5b8c62b20b839 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 = '2c01f62369fa57abcd08fb95c9c0959d6ac9f814'; +const SENTRY_API_SCHEMA_SHA = '78718872cd054c9e708fd944c50f2c3bce3e864c'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 48055c18b4f36f7f754a737c0fc00f1d630b0d23 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, 13 Nov 2026 15:44:15 +0000 Subject: [PATCH 095/141] Bump API schema to 19b0d618 (#20803) 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 5b8c62b20b839..9315823ceb32a 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 = '78718872cd054c9e708fd944c50f2c3bce3e864c'; +const SENTRY_API_SCHEMA_SHA = '19b0d618175a4e35e2808fa32b0088d7daf4a69a'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From b2730e0ab8ab7fe3989477272956dff67e7001ef 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, 13 Nov 2026 15:46:53 +0000 Subject: [PATCH 096/141] Bump API schema to a2c2741c (#20804) 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 9315823ceb32a..91ad650412a38 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 = '19b0d618175a4e35e2808fa32b0088d7daf4a69a'; +const SENTRY_API_SCHEMA_SHA = 'a2c2741c1598b513c3757e76f6cbb512aa61025b'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 1b7ba5cea304dfec0e461e5b053b514b4ed13c58 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, 13 Nov 2026 15:49:59 +0000 Subject: [PATCH 097/141] Bump API schema to 5710a54d (#20805) 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 91ad650412a38..a54d47b1bc614 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 = 'a2c2741c1598b513c3757e76f6cbb512aa61025b'; +const SENTRY_API_SCHEMA_SHA = '5710a54d2560cf682f650fd93497ae5300362541'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 6fab73b264af82a034d27825a681cf621f25fbbf 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, 13 Nov 2026 15:52:52 +0000 Subject: [PATCH 098/141] Bump API schema to 461c4966 (#20806) 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 a54d47b1bc614..c32e7cb876733 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 = '5710a54d2560cf682f650fd93497ae5300362541'; +const SENTRY_API_SCHEMA_SHA = '461c49666fed7649f1ba51c19cb618ae4c81e594'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 05480c1d760fb4592fa65e745380d5bc2bc7ce68 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, 13 Nov 2026 16:00:50 +0000 Subject: [PATCH 099/141] Bump API schema to 6c92bebc (#20807) 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 c32e7cb876733..c70cc166d27e8 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 = '461c49666fed7649f1ba51c19cb618ae4c81e594'; +const SENTRY_API_SCHEMA_SHA = '6c92bebc3cbb1a4b6498ca2429626503e9c9bd8e'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From e6fb2b0e22a66f0793aa9c43eb4a4e501c27f815 Mon Sep 17 00:00:00 2001 From: Stefan Jandl Date: Fri, 13 Nov 2026 17:04:55 +0100 Subject: [PATCH 100/141] docs(unity): Fix broken code samples and migration guide (#20412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Fixes Unity code samples that don't compile against SDK 4.x, and brings the migration guide up to date. Every sample was checked against the sentry-unity 4.13.0 source. Changes: - `SentryUnity.Init` in code samples (class removed in 4.0): the Environments, Releases and Event Debouncing samples use `SentrySdk.Init` with `using Sentry.Unity;`. - The 4.0.0 migration guide omits the main breaking change: new "Static API moved to `Sentry.Unity`" section, plus a "Renamed options" section (`AttachBreadcrumbsToEvents` → `AddBreadcrumbsWithStructuredLogs`). - The 4.0.0 migration sample derives from a non-existent `OptionsConfiguration`: it derives from `SentryOptionsConfiguration`. - The troubleshooting APK+OBB manual-init sample doesn't compile on 4.x: usings and DSN placeholder added, and the text explains why this case keeps **Enable Sentry** checked. - Manual initialization is undocumented: new "Manual Initialization" section on the programmatic-configuration page, with a warning that unchecking **Enable Sentry** turns off native support and symbol upload. On WebGL the sample initializes at `AfterSceneLoad`, since the SDK sets itself up at `BeforeSceneLoad` there. - The configure-scope sample uses the removed `User` type: new Unity include, and the .NET include uses `SentryUser`. - Distributed-tracing samples don't compile: namespaces fixed, and the POST sample uses a `UnityWebRequest` form that exists on Unity 2021.3. - Sampling samples (.NET fallback) don't compile: `0.25f`, a missing comma, and `isSampled` as a named argument. - Structured logs: `SentryLog.ParentSpanId` doesn't exist; it's `SpanId`. - Migration guide 3.0 and Lite sections are stale: Unity 2021.3, the 0.11.0 steps match the editor, and a typo is fixed. - The custom-instrumentation sample is missing a `;`. - Hook names render as identifiers that don't exist (`BeforeSend`): the pages use `SetBeforeSend`, `SetBeforeSendTransaction` and `SetBeforeBreadcrumb`. The attachments page's `mimetype` parameter is `contentType`. - The 4.0 `CaptureFeedback` "After" sample uses the removed `UserFeedback`; it uses `SentryFeedback` now. **Shared .NET includes changed** (these render on the .NET docs too, so a .NET docs reviewer may want a look): `configuration/sample-rate/dotnet.mdx`, `performance/custom-sampling-context/dotnet.mdx`, `performance/force-sampling-decision/dotnet.mdx`, `performance/add-spans-example/dotnet.mdx`, `enriching-events/scopes/configure-scope/dotnet.mdx`. Pages to check on the preview: - `/platforms/unity/migration/` - `/platforms/unity/configuration/options/programmatic-configuration/#manual-initialization` - `/platforms/unity/configuration/filtering/` - `/platforms/unity/enriching-events/scopes/` - `/platforms/unity/configuration/sampling/` ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- .../configuration/event-debouncing/index.mdx | 3 +- .../unity/configuration/filtering.mdx | 8 +-- .../programmatic-configuration/index.mdx | 34 +++++++++++ .../enriching-events/attachments/index.mdx | 6 +- .../enriching-events/breadcrumbs/index.mdx | 2 +- docs/platforms/unity/migration/index.mdx | 58 ++++++++++++++----- .../platforms/unity/troubleshooting/index.mdx | 8 +-- .../configuration/sample-rate/dotnet.mdx | 4 +- .../custom-instrumentation/unity.mdx | 14 ++++- .../scopes/configure-scope/dotnet.mdx | 4 +- .../scopes/configure-scope/unity.mdx | 14 +++++ platform-includes/logs/setup/unity.mdx | 2 +- .../performance/add-spans-example/dotnet.mdx | 2 +- .../custom-sampling-context/dotnet.mdx | 2 +- .../force-sampling-decision/dotnet.mdx | 2 +- platform-includes/set-environment/unity.mdx | 2 +- platform-includes/set-release/unity.mdx | 2 +- 17 files changed, 123 insertions(+), 44 deletions(-) create mode 100644 platform-includes/enriching-events/scopes/configure-scope/unity.mdx diff --git a/docs/platforms/unity/configuration/event-debouncing/index.mdx b/docs/platforms/unity/configuration/event-debouncing/index.mdx index beab2938c5514..2d72ce36a85fa 100644 --- a/docs/platforms/unity/configuration/event-debouncing/index.mdx +++ b/docs/platforms/unity/configuration/event-debouncing/index.mdx @@ -16,13 +16,14 @@ The time that needs to pass after an event has been triggered to be captured aga ```csharp +using Sentry.Unity; using UnityEngine; public class DebouncerTestMonoBehaviour : MonoBehaviour { void Start() { - SentryUnity.Init(o => + SentrySdk.Init(o => { o.Dsn = "___PUBLIC_DSN___"; o.EnableLogDebouncing = true; diff --git a/docs/platforms/unity/configuration/filtering.mdx b/docs/platforms/unity/configuration/filtering.mdx index 41c61d553738c..06b922a4b6884 100644 --- a/docs/platforms/unity/configuration/filtering.mdx +++ b/docs/platforms/unity/configuration/filtering.mdx @@ -12,11 +12,11 @@ We also offer [Inbound Filters](/concepts/data-management/filtering/) to filter ## Filtering Error Events -Configure your SDK to filter error events by using the callback method and configuring, enabling, or disabling integrations. +Configure your SDK to filter error events by using the callback method and configuring, enabling, or disabling integrations. -### Using +### Using -All Sentry SDKs support the callback method. Because it's called immediately before the event is sent to the server, this is your last chance to decide not to send data or to edit it. receives the event object as a parameter, which you can use to either modify the event’s data or drop it completely by returning `null`, based on custom logic and the data available on the event. +All Sentry SDKs support the callback method. Because it's called immediately before the event is sent to the server, this is your last chance to decide not to send data or to edit it. receives the event object as a parameter, which you can use to either modify the event’s data or drop it completely by returning `null`, based on custom logic and the data available on the event. @@ -24,7 +24,7 @@ Note also that breadcrumbs can be filtered, as discussed in [our Breadcrumbs doc ## Filtering Transaction Events -To prevent certain transactions from being reported to Sentry, use the or configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want. +To prevent certain transactions from being reported to Sentry, use the or configuration option, which allows you to provide a function to evaluate the current transaction and drop it if it's not one you want. ### Using diff --git a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx index 4c5e2b9bb8420..b3a4e916d47a6 100644 --- a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx +++ b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx @@ -67,3 +67,37 @@ With runtime initialization, the native SDKs are initialized at runtime alongsid ### 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. + +## Manual Initialization + +To initialize the SDK yourself instead of letting it self-initialize, uncheck **Enable Sentry** in the editor window (**Tools > Sentry**) and call `SentrySdk.Init` as early as possible, for example from a `RuntimeInitializeOnLoadMethod`: + +```csharp +using Sentry.Unity; +using UnityEngine; + +public static class SentryInitializer +{ +#if UNITY_WEBGL + // On WebGL, the SDK sets itself up at BeforeSceneLoad, so initialize after it + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)] +#else + [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSceneLoad)] +#endif + private static void Init() + { + SentrySdk.Init(options => + { + options.Dsn = "___PUBLIC_DSN___"; + }); + } +} +``` + +When you initialize manually, the options from the editor window and the option configuration script don't apply. Only the options you set in code are used. + + + +With **Enable Sentry** unchecked, the build doesn't set up native support or upload debug symbols, so the SDK only captures C# errors. To keep native crash support, leave **Enable Sentry** checked and use the option configuration script instead. + + diff --git a/docs/platforms/unity/enriching-events/attachments/index.mdx b/docs/platforms/unity/enriching-events/attachments/index.mdx index 6a982c9303b3d..005d7d0ac990d 100644 --- a/docs/platforms/unity/enriching-events/attachments/index.mdx +++ b/docs/platforms/unity/enriching-events/attachments/index.mdx @@ -25,11 +25,7 @@ The filename is the name of the file to display in Sentry. When using bytes you `contentType` -The type of content stored in this attachment. Any [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml) may be used; the default is `application/octet-stream`. - -`mimetype` - -The specific media content type that determines how the attachment is rendered in the Sentry UI. We currently support and can render the following MIME types: +The type of content stored in this attachment. Any [MIME type](https://www.iana.org/assignments/media-types/media-types.xhtml) may be used; the default is `application/octet-stream`. The content type also determines how the attachment is rendered in the Sentry UI. Sentry can render the following MIME types: - `text/plain` - `text/css` diff --git a/docs/platforms/unity/enriching-events/breadcrumbs/index.mdx b/docs/platforms/unity/enriching-events/breadcrumbs/index.mdx index df05624f6743d..892dd982c9bf2 100644 --- a/docs/platforms/unity/enriching-events/breadcrumbs/index.mdx +++ b/docs/platforms/unity/enriching-events/breadcrumbs/index.mdx @@ -27,7 +27,7 @@ Manually record a breadcrumb: ## Customize Breadcrumbs -SDKs allow you to customize breadcrumbs through the hook. +SDKs allow you to customize breadcrumbs through the hook. This hook is passed an already assembled breadcrumb and, in some SDKs, an optional hint. The function can modify the breadcrumb or decide to discard it entirely by returning `null`: diff --git a/docs/platforms/unity/migration/index.mdx b/docs/platforms/unity/migration/index.mdx index 29a2481ec7fc6..cf2e63531c7bb 100644 --- a/docs/platforms/unity/migration/index.mdx +++ b/docs/platforms/unity/migration/index.mdx @@ -7,9 +7,34 @@ sidebar_section: configuration ## Migrating to 4.0.0 +### Static API moved to `Sentry.Unity` + +The SDK's static API has moved from `Sentry.Unity.SentryUnity` and `Sentry.SentrySdk` to `Sentry.Unity.SentrySdk`. The underlying .NET SDK's `SentrySdk` class is now internal, so code with only `using Sentry;` no longer compiles. + +Update your `using` directives and replace calls to `SentryUnity`: + +**Before:** +```csharp +using Sentry; +using Sentry.Unity; + +SentryUnity.Init(options => options.Dsn = "___PUBLIC_DSN___"); +SentrySdk.CaptureMessage("Test event"); +``` + +**After:** +```csharp +using Sentry.Unity; + +SentrySdk.Init(options => options.Dsn = "___PUBLIC_DSN___"); +SentrySdk.CaptureMessage("Test event"); +``` + +Calls such as `SentrySdk.CaptureException()` stay the same. Keep `using Sentry;` as well if you use types from that namespace, like `SentryId` or `SentryLevel`. + ### Minimum Unity version -Unity 2020 support has been removed as it reached End of Life in 2023. The minimum supported version is now Unity 2021. +Unity 2020 support has been removed as it reached End of Life in 2023. The minimum supported version is now Unity 2021.3. ### Ubuntu version requirement for Linux servers @@ -17,10 +42,12 @@ If you are running your game on a Linux server, note that `sentry-native` is now ### Programmatic configuration changes -The deprecated `RuntimeConfiguration` and `BuildtimeConfiguration` classes have been removed. You must now use the single `OptionsConfiguration` script for all programmatic configuration. Use preprocessor directives to set platform-specific options: +The deprecated `RuntimeConfiguration` and `BuildtimeConfiguration` classes have been removed. You must now use a single options configuration script, deriving from `SentryOptionsConfiguration`, for all programmatic configuration. Use preprocessor directives to set platform-specific options: ```csharp -public class SentryOptionsConfiguration : OptionsConfiguration +using Sentry.Unity; + +public class MyOptionsConfiguration : SentryOptionsConfiguration { public override void Configure(SentryUnityOptions options) { @@ -92,12 +119,8 @@ SentrySdk.CaptureUserFeedback(new UserFeedback(eventId, "user@example.com", "Use **After:** ```csharp -var feedbackResult = SentrySdk.CaptureFeedback(new UserFeedback -{ - Email = "user@example.com", - Message = "User comment", - Name = "User Name" -}, out var captureResult); +var feedback = new SentryFeedback("User comment", "user@example.com", "User Name", associatedEventId: eventId); +var feedbackId = SentrySdk.CaptureFeedback(feedback, out var captureResult); ``` Note that `CaptureFeedback` now returns a `SentryId` and provides a `CaptureFeedbackResult` out parameter to indicate capture success or failure reason. @@ -143,6 +166,10 @@ Backpressure handling is now enabled by default. The SDK will monitor system hea The SDK now always adds a breadcrumb when capturing an exception. The option to opt-out of this behavior has been removed. +### Renamed options + +The option `AttachBreadcrumbsToEvents` has been renamed to `AddBreadcrumbsWithStructuredLogs`. It controls whether logs that are sent as structured logs are also added as breadcrumbs. + ### Tag changes The SDK no longer sets tags automatically. Tag promotion from contexts now happens exclusively in Sentry. The following tags have been removed: @@ -167,7 +194,7 @@ To restore the previous behaviour, you can set the `IosNativeInitializationType` The Runtime- and BuildTime-Configuration have been merged into a single OptionsConfiguration script. This allows for programmatic configuration of the SDK in one place using preprocessor directives instead of having to duplicate setting options in two different files. -You can still use the old configuration classes, but they have been deprecated and will be removed in a future version. Going forward, you should use the new OptionsConfiguration script and make use of the preprocessor directives when setting options for different platforms. +The old configuration classes were deprecated in this version and removed in 4.0.0. Use a single options configuration script and preprocessor directives to set options for different platforms. ## Migrating to 0.28.0 @@ -184,20 +211,19 @@ If you make use of the programmatic configuration, you'll need to update your im ### Programmatic Configuration Changes -You no longer need to to call `SentryUnity.Init`. Instead, you can let the SDK self-initialize and modify the options taken from the Sentry Unity editor configuration window by providing a `ScriptableOptionsConfiguration` object. +You no longer need to call `SentryUnity.Init`. Instead, you can let the SDK self-initialize and modify the options taken from the Sentry Unity editor configuration window by providing a `ScriptableOptionsConfiguration` object. - Open the Sentry Unity editor configuration window. - Go to the `Options Config` tab. -- Click `Create options configuration`. - - This will prompt you to pick a location for your version of the scriptable options configuration script. - - It will also create an instance of the ScriptableOptionsConfiguration and set in it the configuration window. +- Click **New** next to **Option Config Script**. + - This creates a script deriving from `SentryOptionsConfiguration` and an instance of it, and sets it in the configuration window. - Add your code to the newly created script. Learn more in our [options documentation](/platforms/unity/configuration/options/). ## Migrating From 0.7.0 or Earlier -Starting from version 0.7.0, the SDK is [aliasing](https://blog.sentry.io/2022/02/24/alias-an-approach-to-net-assembly-conflict-resolution) its dependencies. We do this to avoid creating conflicts with other packages. This also means that if you were relying on our dependencies for certain types like `System.Text.Json`, then you'll have to import them into your project yourself going forward. +Starting from version 0.7.0, the SDK is [aliasing](https://blog.sentry.io/alias-an-approach-to-net-assembly-conflict-resolution/) its dependencies. We do this to avoid creating conflicts with other packages. This also means that if you were relying on our dependencies for certain types like `System.Text.Json`, then you'll have to import them into your project yourself going forward. ## Migrating From 0.3.0 or Earlier @@ -210,7 +236,7 @@ The Sentry SDK deprecated the use of JSON files to store options and now uses sc The Sentry Unity Lite SDK is deprecated for mobile, desktop, WebGL, and console players. Customers using Unity 5.x can still use the Sentry Unity Lite as it continues to be compatible with sentry.io. -The updated Sentry Unity SDK requires Unity version 2019.4 or higher with .NET Standard 2.0 scripting profile. +The updated Sentry Unity SDK requires Unity 2021.3 or higher. diff --git a/docs/platforms/unity/troubleshooting/index.mdx b/docs/platforms/unity/troubleshooting/index.mdx index 57557090d8f44..0ac4d537926a2 100644 --- a/docs/platforms/unity/troubleshooting/index.mdx +++ b/docs/platforms/unity/troubleshooting/index.mdx @@ -45,7 +45,8 @@ When exporting your Unity project as APK+OBB, the `ScriptableSentryOptions` conf Instead of relying on the ScriptableObject configuration and auto-initialization, you can manually initialize the SDK from your code: ```csharp -using Sentry; +using Sentry.Unity; +using UnityEngine; public class GameInitializer : MonoBehaviour { @@ -53,7 +54,7 @@ public class GameInitializer : MonoBehaviour { SentrySdk.Init(options => { - options.Dsn = "YOUR_DSN_HERE"; + options.Dsn = "___PUBLIC_DSN___"; options.Debug = true; // Add other configuration options as needed }); @@ -61,8 +62,7 @@ public class GameInitializer : MonoBehaviour } ``` -Since this way the options are embedded in code, the reliance on the `/Resources` being available at the time of initialization falls away. -Prior to version `4.0.0`, native support is limited when programmatically initializing the SDK. +Since this way the options are embedded in code, the reliance on the `/Resources` being available at the time of initialization falls away. Unlike regular [manual initialization](/platforms/unity/configuration/options/programmatic-configuration/#manual-initialization), keep **Enable Sentry** checked in the editor window: the SDK can't load its options from the OBB, so your `SentrySdk.Init` call is the only one, and the build still sets up native support. ### Library not loaded: @rpath/Sentry.framework/Sentry diff --git a/platform-includes/configuration/sample-rate/dotnet.mdx b/platform-includes/configuration/sample-rate/dotnet.mdx index 513e0e52c4676..1c37c1b6d8e70 100644 --- a/platform-includes/configuration/sample-rate/dotnet.mdx +++ b/platform-includes/configuration/sample-rate/dotnet.mdx @@ -1,9 +1,9 @@ ```csharp // Add this to the SDK initialization callback -options.SampleRate = 0.25; +options.SampleRate = 0.25f; ``` ```fsharp // Add this to the SDK initialization callback -options.SampleRate <- 0.25 // Capture 25% +options.SampleRate <- Nullable 0.25f // Capture 25% ``` diff --git a/platform-includes/distributed-tracing/custom-instrumentation/unity.mdx b/platform-includes/distributed-tracing/custom-instrumentation/unity.mdx index 424e9fd811f62..e9e3e7ee68c6e 100644 --- a/platform-includes/distributed-tracing/custom-instrumentation/unity.mdx +++ b/platform-includes/distributed-tracing/custom-instrumentation/unity.mdx @@ -21,6 +21,7 @@ If you're using .NET's `HttpClient`, you can extract trace headers from the resp using System.Linq; using System.Net.Http; using System.Threading.Tasks; +using Sentry.Unity; using UnityEngine; public class TraceReceiver : MonoBehaviour @@ -73,6 +74,7 @@ For WebGL builds or if you prefer Unity's coroutine-based approach, use `UnityWe ```csharp using System.Collections; +using Sentry.Unity; using UnityEngine; using UnityEngine.Networking; @@ -128,7 +130,7 @@ The easiest way to propagate traces is to use .NET's `HttpClient` with `SentryHt ```csharp using System.Net.Http; using System.Threading.Tasks; -using Sentry.Http; +using Sentry; using UnityEngine; public class TraceSender : MonoBehaviour @@ -164,6 +166,7 @@ For WebGL builds or if you prefer Unity's coroutine-based approach, you can manu ```csharp using System.Collections; +using Sentry.Unity; using UnityEngine; using UnityEngine.Networking; @@ -171,8 +174,13 @@ public class TraceSender : MonoBehaviour { IEnumerator SendRequest() { - var jsonData = "{}"; - using var www = UnityWebRequest.Post("https://example.com/api/action", jsonData, "application/json"); + var jsonData = System.Text.Encoding.UTF8.GetBytes("{}"); + using var www = new UnityWebRequest("https://example.com/api/action", UnityWebRequest.kHttpVerbPOST) + { + uploadHandler = new UploadHandlerRaw(jsonData), + downloadHandler = new DownloadHandlerBuffer() + }; + www.SetRequestHeader("Content-Type", "application/json"); // Add Sentry trace headers to propagate the trace var traceHeader = SentrySdk.GetTraceHeader(); diff --git a/platform-includes/enriching-events/scopes/configure-scope/dotnet.mdx b/platform-includes/enriching-events/scopes/configure-scope/dotnet.mdx index e4dae22941902..3ed47f913d2bd 100644 --- a/platform-includes/enriching-events/scopes/configure-scope/dotnet.mdx +++ b/platform-includes/enriching-events/scopes/configure-scope/dotnet.mdx @@ -2,7 +2,7 @@ SentrySdk.ConfigureScope(scope => { scope.SetTag("my-tag", "my value"); - scope.User = new User + scope.User = new SentryUser { Id = "42", Email = "john.doe@example.com" @@ -16,7 +16,7 @@ open Sentry SentrySdk.ConfigureScope ( fun scope -> scope.SetTag ("my-tag", "my value") - scope.User <- User ( + scope.User <- SentryUser ( Id = "42", Email = "john.doe@example.com" ) diff --git a/platform-includes/enriching-events/scopes/configure-scope/unity.mdx b/platform-includes/enriching-events/scopes/configure-scope/unity.mdx new file mode 100644 index 0000000000000..ff24947c92843 --- /dev/null +++ b/platform-includes/enriching-events/scopes/configure-scope/unity.mdx @@ -0,0 +1,14 @@ +```csharp +using Sentry; +using Sentry.Unity; + +SentrySdk.ConfigureScope(scope => +{ + scope.SetTag("my-tag", "my value"); + scope.User = new SentryUser + { + Id = "42", + Email = "john.doe@example.com" + }; +}); +``` diff --git a/platform-includes/logs/setup/unity.mdx b/platform-includes/logs/setup/unity.mdx index 7b2dc0a85f608..45aa10d1aa361 100644 --- a/platform-includes/logs/setup/unity.mdx +++ b/platform-includes/logs/setup/unity.mdx @@ -77,6 +77,6 @@ The log object of type `SentryLog` has the following members: - `Message` Property: (`string`) The formatted log message. - `Template` Property: (`string?`) The parameterized template string. - `Parameters` Property: (`ImmutableArray>`) The parameters to the template string. -- `ParentSpanId` Property: (`SpanId?`) The span id of the span that was active when the log was collected. +- `SpanId` Property: (`SpanId?`) The span id of the span that was active when the log was collected. - `TryGetAttribute(string key, out object value)` Method: Gets the attribute value associated with the specified key. Returns `true` if the log contains an attribute with the specified key and it's value is not `null`, otherwise `false`. - `SetAttribute(string key, object value)` Method: Sets a key-value pair of data attached to the log. Supported types are `string`, `bool`, integers up to a size of 64-bit signed, and floating-point numbers up to a size of 64-bit. diff --git a/platform-includes/performance/add-spans-example/dotnet.mdx b/platform-includes/performance/add-spans-example/dotnet.mdx index b348f4e8a06a2..23a8809822544 100644 --- a/platform-includes/performance/add-spans-example/dotnet.mdx +++ b/platform-includes/performance/add-spans-example/dotnet.mdx @@ -28,7 +28,7 @@ public async Task PerformCheckoutAsync() var processSpan = transaction.StartChild( "process", // operation "processing shopping cart" // description - ) + ); await ProcessShoppingCartAsync(); diff --git a/platform-includes/performance/custom-sampling-context/dotnet.mdx b/platform-includes/performance/custom-sampling-context/dotnet.mdx index 262b06668a7aa..8dccdf72802fc 100644 --- a/platform-includes/performance/custom-sampling-context/dotnet.mdx +++ b/platform-includes/performance/custom-sampling-context/dotnet.mdx @@ -7,7 +7,7 @@ var samplingContext = new Dictionary }; var transaction = SentrySdk.StartTransaction( - new TransactionContext("GET /search", "http") + new TransactionContext("GET /search", "http"), samplingContext ); diff --git a/platform-includes/performance/force-sampling-decision/dotnet.mdx b/platform-includes/performance/force-sampling-decision/dotnet.mdx index 9da3c20ea4822..4fb26553f9e05 100644 --- a/platform-includes/performance/force-sampling-decision/dotnet.mdx +++ b/platform-includes/performance/force-sampling-decision/dotnet.mdx @@ -1,6 +1,6 @@ ```csharp // IsSampled -> true -var transactionContext = new TransactionContext("GET /search", "http", true); +var transactionContext = new TransactionContext("GET /search", "http", isSampled: true); var transaction = SentrySdk.StartTransaction(transactionContext); ``` diff --git a/platform-includes/set-environment/unity.mdx b/platform-includes/set-environment/unity.mdx index 3872f0436db8b..5ecab79ecdf92 100644 --- a/platform-includes/set-environment/unity.mdx +++ b/platform-includes/set-environment/unity.mdx @@ -1,7 +1,7 @@ ```csharp using Sentry.Unity; -SentryUnity.Init(o => +SentrySdk.Init(o => { o.Environment = "production"; }); diff --git a/platform-includes/set-release/unity.mdx b/platform-includes/set-release/unity.mdx index 61ece839244ee..c5046233cab66 100644 --- a/platform-includes/set-release/unity.mdx +++ b/platform-includes/set-release/unity.mdx @@ -1,7 +1,7 @@ ```csharp using Sentry.Unity; -SentryUnity.Init(o => +SentrySdk.Init(o => { o.Release = "my-project-name@2.3.12"; }); From e85e93a9e3843b6a221d066927b2edc872ee2f75 Mon Sep 17 00:00:00 2001 From: Stefan Jandl Date: Fri, 13 Nov 2026 17:33:30 +0100 Subject: [PATCH 101/141] docs(unity): Fix options page defaults, types and stale options (#20413) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Corrects the Unity Options page so it matches what the Unity SDK (4.13.0) does. Most users configure the SDK in the editor window, so the defaults shown are the window's values, with a note where a manual `SentrySdk.Init` gets something different. **Stacked on #20412** (broken code samples): this PR's base is that branch, so the diff shows only this PR's changes. - Remove the claim that `SENTRY_DSN`, `SENTRY_ENVIRONMENT` and `SENTRY_RELEASE` are read: Unity never reads environment variables. Without a DSN the SDK is disabled. - Remove `ServerName`: the SDK strips it from every event. - `Debug`, `DiagnosticLevel` and `AttachStacktrace` show the editor window's defaults, with the manual-init default as a note. `Debug` explains **Only In Editor**. - Fix types and defaults: `InitCacheFlushTimeout` (`TimeSpan`, zero), `ShutdownTimeout` (`TimeSpan`, 2 seconds), `Transport` (`ITransport`), `HttpProxy` (`IWebProxy`). `Transport` and `HttpProxy` have no effect on WebGL and Nintendo Switch. - Tracing: a `TracesSampler` alone covers only transactions you create. The automatic startup, scene-load and `Awake` instrumentation needs `TracesSampleRate` greater than 0. - `CaptureFailedRequests`: applies to `HttpClient` requests through `SentryHttpMessageHandler`, not to `UnityWebRequest`, and can only be set in code. - Mark `AnrDetectionEnabled` and `AnrTimeout` deprecated, pointing to the app hang options, and drop the advice to call the obsolete `DisableAnrIntegration()`. - Replace `InAppInclude`/`InAppExclude` (not accessible from Unity code) with the public `AddInAppInclude`/`AddInAppExclude` methods, and list the SDK's default excludes. - Release: the actual default format and how the product name is sanitized; typo fix. - Add a Unity include for the Diagnostic Logger page, in place of the .NET fallback (Visual Studio, ASP.NET). It covers the editor-window settings, where the logs show up, and a file logger that's safe in Unity. - Fix the `IsGlobalModeEnabled` anchor in the shared thread-locality include. This also fixes the link on the .NET and PowerShell Scopes pages. Pages to check on the preview: - `/platforms/unity/configuration/options/` - `/platforms/unity/configuration/diagnostic-logger/` - `/platforms/unity/enriching-events/scopes/` (the `IsGlobalModeEnabled` link) ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com> --- .../unity/configuration/options/index.mdx | 86 +++++++++---------- .../configuration/options/thread-locality.mdx | 2 +- .../configuration/diagnostic-logger/unity.mdx | 58 +++++++++++++ 3 files changed, 101 insertions(+), 45 deletions(-) create mode 100644 platform-includes/configuration/diagnostic-logger/unity.mdx diff --git a/docs/platforms/unity/configuration/options/index.mdx b/docs/platforms/unity/configuration/options/index.mdx index 6febe18215188..a9f5b5f787aa1 100644 --- a/docs/platforms/unity/configuration/options/index.mdx +++ b/docs/platforms/unity/configuration/options/index.mdx @@ -12,19 +12,15 @@ The SDK provides a configuration window that allows you to set most of Sentry's -Options that can be read from an environment variable (`SENTRY_DSN`, `SENTRY_ENVIRONMENT`, `SENTRY_RELEASE`) are read automatically. + - - -The DSN tells the SDK where to send the events. If this value is not provided, the SDK will try to read it from the `SENTRY_DSN` environment variable. If that variable also does not exist, the SDK will just not send any events. - -In runtimes without a process environment (such as the browser) that fallback does not apply. +The DSN tells the SDK where to send the events. Without a DSN, the SDK is disabled and doesn't send any events. The SDK doesn't read the DSN from the environment variable. Learn more about [DSN utilization](/concepts/key-terms/dsn-explainer/#dsn-utilization). - + Sets the environment. This string is freeform and set by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar). @@ -34,47 +30,49 @@ By default, the SDK reports `editor` when running inside the Unity Editor. Other -Sets the release. The SDKk will try to automatically configure a release out of the box. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the sandbox. +Sets the release. The SDK will try to automatically configure a release out of the box. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the sandbox. -By default the SDK will read from `Application.productName` and `Application.version` to create the release in the format `$"{Application.productName}@{Application.version}".` +By default, the SDK creates the release from `Application.productName` and `Application.version`, in the format `{productName}@{version}`. In the product name, line breaks, tabs, `/`, `\`, `..` and `@` are each replaced with `_`. If the product name is empty, only whitespace, or only dots, the release is just `Application.version`. - + + +Turns debug mode on or off. If debug is enabled, the SDK prints useful debugging information if something goes wrong with sending the event. It's generally not recommended to turn it on in production, though turning `debug` mode on will not cause any safety concerns. -Turns debug mode on or off. If debug is enabled SDK will attempt to print out useful debugging information if something goes wrong with sending the event. The default is always `false`. It's generally not recommended to turn it on in production, though turning `debug` mode on will not cause any safety concerns. +In the editor window, **Enable Debug Output** is on and **Only In Editor** is checked, so the SDK prints its diagnostic logs in the Editor but not in builds. Uncheck **Only In Editor** to get them in builds too. - + -Enabling `debug` mode makes the SDK generate as much diagnostic data as possible. However, if you'd prefer to lower the verbosity of the Sentry SDK diagnostics logs, configure this option to set the appropriate level: +Sets the minimum level of the SDK's diagnostic logs when `debug` mode is on. In the editor window, this is **Verbosity Level**. -- `debug`: **default** The most verbose mode -- `info`: Informational messages -- `warning`: Warning that something might not be right -- `error`: Only SDK internal errors are printed -- `fatal`: Only critical errors are printed +- `SentryLevel.Debug`: The most verbose mode +- `SentryLevel.Info`: Informational messages +- `SentryLevel.Warning`: Warning that something might not be right +- `SentryLevel.Error`: Only SDK internal errors are printed +- `SentryLevel.Fatal`: Only critical errors are printed -For app models that don't have a console to print to, you can customize the SDK's diagnostic logger to write to a file or to Visual Studio's debug window. +To write the logs somewhere else, such as a file, customize the SDK's diagnostic logger. ## Data Enrichment & Attachments - + -A list of string prefixes of module names that belong to the app. This option takes precedence over `in-app-exclude`. +Adds a prefix of module names that belong to the app. Call `options.AddInAppInclude("MyCompany.")` with a string prefix, or pass a `Regex`, or use `options.AddInAppIncludeRegex(pattern)`. Includes take precedence over excludes. Sentry differentiates stack frames that are directly related to your game ("in application") from stack frames that come from other packages such as the standard library, third party plugins, or other dependencies. The game's code that is part of the 'Assembly-CSharp' is automatically marked as `inApp`. The difference is visible in [sentry.io](https://sentry.io), where only the "in application" frames are displayed by default. - + -A list of string prefixes of module names that do not belong to the app, but rather to third-party packages. Modules considered not part of the app will be hidden from stack traces by default. +Adds a prefix of module names that don't belong to the app, but to third-party packages. Call `options.AddInAppExclude("ThirdParty.")` with a string prefix, or pass a `Regex`, or use `options.AddInAppExcludeRegex(pattern)`. Modules considered not part of the app will be hidden from stack traces by default. -This option can be overridden using . +The Unity SDK excludes `UnityEngine`, `UnityEditor`, `Cysharp` and `DG.Tweening` by default. Use to override an exclude. @@ -84,7 +82,7 @@ This variable controls the total amount of breadcrumbs that should be captured. - + When enabled, stack traces are automatically attached to all messages logged. Stack traces are always attached to exceptions; however, when this option is set, stack traces are also sent with messages. This option, for instance, means that stack traces appear next to all log messages. @@ -127,6 +125,8 @@ Set this boolean to `false` to disable sending of client reports. Client reports Once enabled, this feature automatically captures HTTP client errors, like bad response codes, as error events and reports them to Sentry. +It applies to requests sent with an `HttpClient` that uses `SentryHttpMessageHandler`, for example `new HttpClient(new SentryHttpMessageHandler())`. Requests sent with `UnityWebRequest` aren't captured. On iOS and macOS, the option is also passed to the native Cocoa SDK, unless the app initializes that SDK itself. The status codes that count as failed are set by `FailedRequestStatusCodes`, which defaults to 500–599. Both options can only be set in code. + @@ -159,12 +159,6 @@ If you enable this option, be sure to manually remove what you don't want to sen - - -This option can be used to supply a server name. When provided, the name of the server is sent along and persisted in the event. For many integrations, the server name actually corresponds to the device hostname, even in situations where the machine is not actually a server. - - - ## Hooks These options can be used to hook the SDK in various ways to customize the reporting of events. @@ -217,9 +211,9 @@ A callback function that controls view hierarchy capture behavior. Return `false Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments. - + -Switches out the transport used to send events. How this works depends on the SDK. It can, for instance, be used to capture events for unit-testing or to send it through some more complex setup that requires proxy authentication. +Switches out the transport used to send events. It can, for instance, be used to capture events for unit-testing or to send it through some more complex setup that requires proxy authentication. On WebGL and Nintendo Switch, this option has no effect: the SDK always sends events with `UnityWebRequest` there. @@ -229,23 +223,23 @@ The maximum number of [envelopes](https://develop.sentry.dev/sdk/data-model/enve - + -When set, a proxy can be configured that should be used for outbound requests. This is also used for HTTPS requests unless a separate `https-proxy` is configured. However, not all SDKs support a separate HTTPS proxy. SDKs will attempt to default to the system-wide configured proxy, if possible. For instance, on Unix systems, the `http_proxy` environment variable will be picked up. +Sets the proxy the SDK uses to send events to Sentry, for both HTTP and HTTPS. On WebGL and Nintendo Switch, this option has no effect. - + When caching is enabled (that is, is set), this option controls the timeout that limits how long the SDK will attempt to flush existing cache during initialization. Note that flushing the cache involves sending the payload to Sentry in a blocking operation. Setting this option to zero means that Sentry will **not** attempt to flush the cache during initialization, but instead will do so when the next payload is queued up. -The default is `1` (one) second. +The default is zero, so the SDK doesn't block during initialization to flush the cache. - + -Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems. +Controls how long to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount of time to drain pending events. The default is two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems. @@ -253,25 +247,25 @@ Controls how many seconds to wait before shutting down. Sentry SDKs send events -A number between `0` and `1`, controlling the percentage chance a given transaction will be sent to Sentry. (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app. Either this or must be defined to enable tracing. +A number between `0` and `1`, controlling the percentage chance a given transaction will be sent to Sentry. (`0` represents 0% while `1` represents 100%.) Applies equally to all transactions created in the app. The automatic startup, scene-load and `Awake` instrumentation only runs when this is greater than `0`. -A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. Either this or must be defined to enable tracing. +A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between `0` (0% chance of being sent) and `1` (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. A `TracesSampler` on its own enables tracing for the transactions you create. The automatic instrumentation also needs to be greater than `0`. -Controls whether the SDK will automatically trace the app's startup. +Controls whether the SDK will automatically trace the app's startup. Requires to be greater than `0`. -Controls whether the SDK will automatically trace when loading scenes. +Controls whether the SDK will automatically trace when loading scenes. Requires to be greater than `0`. @@ -293,12 +287,16 @@ Sets how long the main thread must be unresponsive before the SDK captures an ap -Controls the managed Unity watchdog in the Sentry configuration window. To disable this detector programmatically, call `options.DisableAnrIntegration()`. +**Deprecated:** Use instead. + +Controls the managed C# watchdog. You can only set it in the editor window, under **Advanced > Automatic Behaviour > C# Watchdog (Deprecated)**. Programmatic initialization doesn't add the watchdog. +**Deprecated:** Use instead. + Sets how long the Unity main thread must be unresponsive before the managed watchdog reports an ANR event. diff --git a/includes/platforms/configuration/options/thread-locality.mdx b/includes/platforms/configuration/options/thread-locality.mdx index 0a8a95b053582..7f1b716e004f0 100644 --- a/includes/platforms/configuration/options/thread-locality.mdx +++ b/includes/platforms/configuration/options/thread-locality.mdx @@ -1,7 +1,7 @@ Read on if you're curious to know how thread locality works for scope data. In .NET, there -are two modes for managing ambient data (which is data that's available in different parts of an application and doesn't need to be passed explicitly through method arguments): a disabled global mode and an enabled global mode. Usually, Sentry will automatically choose the most appropriate mode for your application type. However, this can be overridden by setting [`SentryOptions.IsGlobalModeEnabled`](../../configuration/options/#is-global-mode-enabled) manually. +are two modes for managing ambient data (which is data that's available in different parts of an application and doesn't need to be passed explicitly through method arguments): a disabled global mode and an enabled global mode. Usually, Sentry will automatically choose the most appropriate mode for your application type. However, this can be overridden by setting [`SentryOptions.IsGlobalModeEnabled`](../../configuration/options/#IsGlobalModeEnabled) manually. If global mode is disabled (appropriate for most server-based applications), the ambient scope data will be stored as an `AsyncLocal` and will flow with the execution diff --git a/platform-includes/configuration/diagnostic-logger/unity.mdx b/platform-includes/configuration/diagnostic-logger/unity.mdx new file mode 100644 index 0000000000000..d5a85b4e16e50 --- /dev/null +++ b/platform-includes/configuration/diagnostic-logger/unity.mdx @@ -0,0 +1,58 @@ +Sentry's SDK includes its own internal logger to report diagnostics that may be useful when troubleshooting your Sentry configuration. + +In the editor window (**Tools > Sentry**), the diagnostic logs are controlled by **Enable Debug Output**, **Only In Editor** and **Verbosity Level**. By default, debug output is on and limited to the Editor, at the `Warning` level. Uncheck **Only In Editor** to also get the logs in builds. + +To set the same options in code, use an option configuration script or a manual `SentrySdk.Init`: + +```csharp +using Sentry; +using Sentry.Unity; + +public class SentryOptionConfiguration : SentryOptionsConfiguration +{ + public override void Configure(SentryUnityOptions options) + { + // Enable debug mode to write diagnostic messages + options.Debug = true; + + // Log everything, from the most verbose level up + options.DiagnosticLevel = SentryLevel.Debug; + } +} +``` + +The SDK writes its diagnostic logs to Unity's log, tagged `Sentry`. They show up in the Editor's Console window, in the Player log of a build, and in logcat or the Xcode console on mobile. They aren't sent to Sentry. + +## Customize Implementation + +To write the logs somewhere else, set the `DiagnosticLogger` option. The SDK only uses a custom logger while `Debug` is on. + +For example, `FileDiagnosticLogger` writes diagnostic messages to a file at the path you specify: + +```csharp +using Sentry.Infrastructure; +using UnityEngine; + +// ... +options.Debug = true; +#if !UNITY_EDITOR +// The option configuration script also runs in the Editor during builds, +// so only create the file logger in the game itself. +options.DiagnosticLogger = new FileDiagnosticLogger( + System.IO.Path.Combine(Application.persistentDataPath, "sentry-log.txt")); +#endif +``` + + + +The `FileDiagnosticLogger` implementation will overwrite any existing file, and will grow indefinitely. You should avoid using it long-term in a production environment. + +`FileDiagnosticLogger` keeps its file open until the process exits, and creating a second logger for the same file can throw. If several instances of the game can run at once, give each its own file name. Don't use it with `Application.persistentDataPath` on Nintendo Switch or Xbox, where the SDK itself doesn't write to that path. + + + + + +You can also create your own diagnostic logger class, either by implementing the `IDiagnosticLogger` interface, or inheriting from the `DiagnosticLogger` abstract class and overriding the `LogMessage` method. + + From 7be45d0af9a5794160c5256a58bc8fb94e42dda9 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, 13 Nov 2026 16:50:59 +0000 Subject: [PATCH 102/141] Bump API schema to 99650c98 (#20808) 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 c70cc166d27e8..1f703253331bd 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 = '6c92bebc3cbb1a4b6498ca2429626503e9c9bd8e'; +const SENTRY_API_SCHEMA_SHA = '99650c980d8e4ac7a639756a325358257f2ddea2'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 951cffc24591b6e45b94e24dbe14fb02c7354836 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, 13 Nov 2026 17:01:28 +0000 Subject: [PATCH 103/141] Bump API schema to c3c65c9c (#20809) 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 1f703253331bd..9432072bedbd4 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 = '99650c980d8e4ac7a639756a325358257f2ddea2'; +const SENTRY_API_SCHEMA_SHA = 'c3c65c9cd405d0bab44ee3ddb818437c83151a50'; const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; From 9547e273bc923eed81362573133f3f7bf92d6500 Mon Sep 17 00:00:00 2001 From: Colton Allen Date: Fri, 13 Nov 2026 16:03:57 -0600 Subject: [PATCH 104/141] Add Linear integration documentation (#20709) ## DESCRIBE YOUR PR Adds Linear for Seer integration documentation. ## 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 - [ ] 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/) --- docs/integrations/debugging/index.mdx | 2 +- .../debugging/linear-seer/index.mdx | 64 +++++++++++++++++++ docs/integrations/index.mdx | 3 +- docs/product/ai-in-sentry/seer/index.mdx | 4 ++ 4 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 docs/integrations/debugging/linear-seer/index.mdx diff --git a/docs/integrations/debugging/index.mdx b/docs/integrations/debugging/index.mdx index 7cb86699008a9..5aec6a0c5f517 100644 --- a/docs/integrations/debugging/index.mdx +++ b/docs/integrations/debugging/index.mdx @@ -11,8 +11,8 @@ description: "Learn more about Sentry's debugging integrations." - [Foam](/integrations/debugging/foamai/) - [Google Cloud Platform for Seer](/integrations/debugging/gcp-seer/) - [Grafana for Seer](/integrations/debugging/grafana-seer/) +- [Linear for Seer](/integrations/debugging/linear-seer/) - [Logicstar](/integrations/debugging/logicstar/) - [Rookout](/integrations/debugging/rookout/) - [Sourcery](/integrations/debugging/sourcery/) - [Tembo](/integrations/debugging/tembo/) - diff --git a/docs/integrations/debugging/linear-seer/index.mdx b/docs/integrations/debugging/linear-seer/index.mdx new file mode 100644 index 0000000000000..a120182baac9d --- /dev/null +++ b/docs/integrations/debugging/linear-seer/index.mdx @@ -0,0 +1,64 @@ +--- +title: Linear Seer Integration +sidebar_order: 1 + +description: "Learn how adding Linear data to Seer's context helps you debug and fix issues." +--- + + + +The Linear for Seer integration gives [Seer Agent](/product/ai-in-sentry/seer/#seer-agent) read-only access to issues, projects, and comments in your Linear workspace. Seer can then use Linear data to enhance or supplement Sentry telemetry in issue analysis or investigations. + +The connection is shared across your Sentry organization. You can connect one Linear workspace per Sentry organization. + +Sentry installs the integration as an app in your Linear workspace, so Seer reads Linear as the app instead of as the person who connected it. Seer connects through [Linear's read-only MCP server](https://linear.app/docs/mcp), which only exposes read tools, so Seer can't create or change anything in Linear. + +This integration is separate from the [Linear issue tracking integration](/integrations/issue-tracking/linear/), which is built by Linear and lets you create and link Linear issues from Sentry. + +## Install the Linear for Seer Integration + + + +Sentry Owner, Manager, or Admin permissions are required to install this integration. + +You also need to be a Linear workspace admin, because installing an app in a Linear workspace requires admin permissions. A Linear workspace admin can complete these steps for you. + + + +1. Navigate to [Seer Connector Settings](https://sentry.io/orgredirect/organizations/:orgslug/settings/seer/connectors/). +2. Select the Linear for Seer integration and click **Add Workspace**. +3. Click **Authorize Linear**. A Linear authorization window opens. If it doesn't, allow popups from Sentry in your browser and click **Authorize Linear** again. +4. In the Linear window, select the workspace you want to connect, review the requested access, and approve it. + + Linear's authorization screen lists read and write permissions. Seer only uses Linear's read-only MCP server, so it can only read data from your workspace. + + If Linear asks which teams the app can access, select every team whose issues and projects you want Seer to read. Seer can't see data from teams the app can't access. + +5. After you approve, Sentry checks that it can read the workspace before completing installation. The new connection appears as **Linear (_Workspace Name_)**. + + If the check fails, the error appears in the setup modal. Correct the problem and click **Authorize Linear** again. You can retry in the same setup modal. + +## Configure + +The integration has no settings to edit. Sentry refreshes the Linear access token automatically, so you don't need to rotate it. + +To reauthorize the workspace, click the **Configurations** tab on the [Linear for Seer settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/integrations/linear/?tab=configurations), click **Configure** for the workspace, then click **Reconnect Linear** and approve access in Linear again. Choose the same workspace you connected originally. To connect a different workspace, uninstall the current connection first, then install the integration again. + +To change which teams Seer can read, update the app's team access in Linear's [Applications settings](https://linear.app/settings/applications). Only Linear workspace admins can change an app's team access. + +When you uninstall the integration, Sentry revokes the app's access in Linear. If another Sentry organization is connected to the same Linear workspace, Sentry keeps the app's access in Linear so that organization's connection keeps working. + +## Troubleshooting + +If the connection needs attention: + +- **Linear authorization was canceled:** You closed or declined the Linear authorization window. Click **Authorize Linear** to try again. +- **The authorization popup was blocked:** Allow popups from Sentry in your browser, then click **Authorize Linear** again. +- **Could not reach Linear:** Linear could not be reached during setup. Wait a moment, then try again. +- **Linear authorization failed:** Linear rejected the authorization. Confirm that you're a Linear workspace admin and approved the requested access, then authorize the workspace again. If this appears for an existing connection, the app's access was likely revoked in Linear. Click **Reconnect Linear** to restore it. +- **The app can't read your Linear workspace:** The app was installed but can't read workspace data. Check the app's access in Linear's [Applications settings](https://linear.app/settings/applications). If your workspace requires approval for third-party apps, make sure an admin has approved it. See Linear's [third-party app approvals](https://linear.app/docs/third-party-application-approvals). +- **Remove the current Linear connection before connecting a different workspace:** Your Sentry organization is already connected to a different Linear workspace. Uninstall that connection, or select the original workspace when you reconnect. +- **The integration was disabled:** Sentry disables the connection if Linear stops accepting its credentials, for example after someone revokes the app's access in Linear. Click **Reconnect Linear** to authorize the workspace again. +- **Seer can't find issues or projects you expect:** Check that the app has access to the teams that own them in Linear's [Applications settings](https://linear.app/settings/applications). + +After correcting the setup, click **Authorize Linear** during installation or **Reconnect Linear** in the integration settings. diff --git a/docs/integrations/index.mdx b/docs/integrations/index.mdx index c56b7d5a84f5c..825b76241e863 100644 --- a/docs/integrations/index.mdx +++ b/docs/integrations/index.mdx @@ -96,7 +96,7 @@ For more details, see the [full Integration Platform documentation](/integration | Integration | Link Issue to user sessions | | ------------------------------------------------------ | --------------------------- | | [Atlas](/integrations/session-replay/atlas/) | X | -| [BetterBugs](/integrations/session-replay/betterbugs/) | X | +| [BetterBugs](/integrations/session-replay/betterbugs/) | X | | [FullStory](/integrations/session-replay/fullstory/) | X | | [Jam](/integrations/session-replay/jam/) | X | | [OpenReplay](/integrations/session-replay/openreplay/) | X | @@ -119,6 +119,7 @@ For more details, see the [full Integration Platform documentation](/integration | [Foam](/integrations/debugging/foamai/) | | | [Google Cloud Platform for Seer](/integrations/debugging/gcp-seer/) | | | [Grafana for Seer](/integrations/debugging/grafana-seer/) | | +| [Linear for Seer](/integrations/debugging/linear-seer/) | | | [Logicstar](/integrations/debugging/logicstar/) | | | [Rookout](/integrations/debugging/rookout/) | X | | [Sourcery](/integrations/debugging/sourcery/) | | diff --git a/docs/product/ai-in-sentry/seer/index.mdx b/docs/product/ai-in-sentry/seer/index.mdx index 51a585c0afe03..a1def5ffbbad5 100644 --- a/docs/product/ai-in-sentry/seer/index.mdx +++ b/docs/product/ai-in-sentry/seer/index.mdx @@ -132,6 +132,10 @@ The [Google Cloud Platform for Seer](/integrations/debugging/gcp-seer/) integrat The [Grafana for Seer](/integrations/debugging/grafana-seer/) integration gives [Seer Agent](#seer-agent) access to metrics and logs through your Grafana Cloud data sources. Seer can then use Grafana data to enhance or supplement Sentry telemetry in issue analysis or investigations. +### Linear for Seer Integration + +The [Linear for Seer](/integrations/debugging/linear-seer/) integration gives [Seer Agent](#seer-agent) read-only access to issues, projects, and comments in your Linear workspace. Seer can then use Linear data to enhance or supplement Sentry telemetry in issue analysis or investigations. + ## Privacy and security Sentry includes strong guarantees for privacy and security of your data. At a glance: From cf5a659a1b295e01852f4f4c3a44fbf7e5801f2b Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 17:43:06 -0500 Subject: [PATCH 105/141] docs(slack): Remove assistant:write scope and Seer Agent assistant docs (#20810) ## DESCRIBE YOUR PR As of getsentry/sentry#116567 (merged 2026-06-01), Sentry's Slack integration no longer asks for the `assistant:write` OAuth scope, and the assistant feature was taken out of the Slack app. The docs still listed the scope and described the assistant experience. - `docs/integrations/notification-incidents/slack/`: - removed the `assistant:write` row from the required bot scopes table - removed the paragraph about opening Seer Agent as an agent panel in paid Slack workspaces, and its screenshot - removed the "Disabling the AI Assistant Experience" troubleshooting section and its two screenshots - deleted the now-unused images `slack-agent-panel.png`, `slack-agent-notifications.png`, and `slack-agent-dms.png` - `develop-docs/integrations/slack/`: removed the `assistant:write` row from the self-hosted bot scopes table and took it out of the self-hosted note listing scopes used only by Seer Not changed here: the self-hosted setup page still lists the `assistant_thread_started` bot event and has an "Agents & AI Apps" section about the Agent/Assistant toggle. Those may be stale too. ## 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 **alex.sohn**. -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0AN404SG1X%3A1794603606.697669) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0AN404SG1X%3A1794603606.697669/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Alex Sohn --- develop-docs/integrations/slack/index.mdx | 3 +-- .../slack/img/slack-agent-dms.png | Bin 41017 -> 0 bytes .../slack/img/slack-agent-notifications.png | Bin 34161 -> 0 bytes .../slack/img/slack-agent-panel.png | Bin 39294 -> 0 bytes .../notification-incidents/slack/index.mdx | 17 ----------------- 5 files changed, 1 insertion(+), 19 deletions(-) delete mode 100644 docs/integrations/notification-incidents/slack/img/slack-agent-dms.png delete mode 100644 docs/integrations/notification-incidents/slack/img/slack-agent-notifications.png delete mode 100644 docs/integrations/notification-incidents/slack/img/slack-agent-panel.png diff --git a/develop-docs/integrations/slack/index.mdx b/develop-docs/integrations/slack/index.mdx index 6cf9addb47cc3..af0cd177ed9f2 100644 --- a/develop-docs/integrations/slack/index.mdx +++ b/develop-docs/integrations/slack/index.mdx @@ -70,13 +70,12 @@ On the same page under **Scopes** you'll need to add **Bot Scopes** and **User S Add the following scopes to **Bot Scopes**: - `app_mentions:read`, `assistant:write`, `channels:history` and `groups:history` are used for Seer + `app_mentions:read`, `channels:history`, and `groups:history` are used for Seer Features which are not currently available for self-hosted. You can freely omit them. | Scope | Reason | | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `assistant:write` | Enables accessing the app as a personal Slack Agent. | | `app_mentions:read` | Receive `app_mention` events when the bot is mentioned (e.g. @Sentry) in a message. | | `channels:read` | List and validate public channels when configuring alert destinations, and resolve channel names to IDs. | | `channels:history` | (Optional) Allows Sentry to read messages from public channels. Sentry uses this to gather thread context for conversations with Seer Agent. | diff --git a/docs/integrations/notification-incidents/slack/img/slack-agent-dms.png b/docs/integrations/notification-incidents/slack/img/slack-agent-dms.png deleted file mode 100644 index 072d9a837fd1205610196a8a3e5b0fac7c0aba22..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 41017 zcmbTdg;U$j7xoPWN|EAjDNx)C#ih7A#ogUqlHyvVxVyVM6e|>WcMVPrYIn! ze-U_p^bVg3kOB7WE4ev&Y}hkpqn7_@i**b_`3cW-;f& zKqI{VhdHqbf_F(+MeT5s?ZLp#;T@Dmmy{d>9i7!x#e-*L7Oo5=bWyw(9$b|Jg!l;JQau5}IZ!6NVwGE0=~ag9!(B z#UlY7s!ZLB-d&#+Yd5U?n%VApyS{L0`UTg->@y+t0}-|&)(kIxoEaJJCu)tXBf`P? zNeW`+6Y}L4p&*4${`bjVBCC8=Tnc=Vt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8O!KDmjL|=5slKydIkW3zoe$ljE@UEd*%o+X%A>_Ym*WaOC|pC z=koA(TUUiiYfWt}uv^WkH9aryVGjf+9gxZZaH;)WfNH&;zyHqA&`{a8Z-9G+AiOQ$ zdV*%LJuq{VyzBH1fYFGrvq(tLMn=CkmcE5d0Z)NIjP(L~0s0R=t`@1z93342&aeFZ z{0ID|pGXoqu$XoZ4pL@*`XiA@^Pg?jIkbS#gsz?*Tcyh1cPw(=ZQw>hJ)Wb{ic_0F z_oGGwJ-)UzlKGUBh)7LU)u75;&fdNx&xAXzqNz#T(t>zvG)q!kT;&ho+Jvd6%M+EU z0m?j2#d+(JEKHl+9^!rM>FJU1*gAUa;81FS0e{AOe0*%w@RmH5X`K5W_ddgG+p+8s zLH$R|YSV}Jprhfcs;VF+DYr|%!WeRIIJp zd2F6w9w?r0h(GGba_SofYWah#&fV+~d z)BUpT(X91`sw(Y1Yd$E+SCaVP)I}>x%PKta?3R{i>2QDLC=>@ZD@7u2C*xo^?<}?qqafMb5^i<#Y=%VvlQ?QyvQN>%X16hcn|tqqt?^M){^Ouy{-A*1@A1dSl`&EqLGZAc7=SUW4JAGg2h?KUWhNw4 z1)=?7vPIHParg);z}sQOd(_B7cg3S+ICEjpGB#6WI1#n~#s2EiLp(a*{hM>2V-J4C z@^lnC?{0HzDdAgY`9OUyLMhN1BB7gGW7SIxm~;sUVGSw_j-wg96YoWe{@6bYN02hPk6lh6Eun{Yn z)zOwaB0AY7k&G|CAiKMZa*3kZV{eqb_I^reLtL4{7KXpAaJ@pd9;)gf;;s*LH$HO`Nh7F}CCaAB;0424dg zT?&VLGAv|j0a3~BeuqfB(wv#msWoUuMn+pHb2JxXT!Ju?l_n27uRg4ae>kmQ7#1lH zOs)`rfXFEf)#sXu74qg`{{c7r+`9k( diff --git a/docs/integrations/notification-incidents/slack/img/slack-agent-notifications.png b/docs/integrations/notification-incidents/slack/img/slack-agent-notifications.png deleted file mode 100644 index 0c6a48c982c58e243111b4601f5716a26b3bb301..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Q(H6QB#Z0m;;5EJORA5on=(q;YfVeG{-Vs}@M+L$r7ljykjlpnFpv9G>;hNap+vtr=X`fQg2sBXuxkL+yz z>KUoP$BH>0JTc6woz7XW8OG72d2QNKj-t5_nJgC5Wu2`h`Mnxkg}Qo3_hQnL-Y)$n zRU~mYrj5*D+p6FJV-%bB^gf}TDPl5J9cn4*8)?Y~NR!so>R%=$h8y4~y*Fs8r9p@q q`IEa!`c1dV-3wf2@ONAM!;YxOsw1dq+lBBDc&I37J}i@e67*k?UYiU6 diff --git a/docs/integrations/notification-incidents/slack/index.mdx b/docs/integrations/notification-incidents/slack/index.mdx index a811125c7dc9c..96e6d91e02c85 100644 --- a/docs/integrations/notification-incidents/slack/index.mdx +++ b/docs/integrations/notification-incidents/slack/index.mdx @@ -92,10 +92,6 @@ It has all the capabilities of the web version, but also automatically gathers c ![Seer Agent initially mentioned in a Slack channel =600x](./img/slack-agent-mention.png) -For [paid Slack Workspaces with access to AI assistant apps](https://slack.com/pricing), you can also open Seer Agent as an Agent in Slack, using the dropdown in the top-right of your Slack window. This will open a new persistent panel in your Slack window for private conversations with Seer Agent. In these conversations, you don't have to mention it every time, and new chats will open with a few example prompts to get you started. - -![Open Seer Agent conversation panel in Slack with suggested prompts =600x](./img/slack-agent-panel.png) - If you have a single Slack Workspace connected to multiple Sentry organizations, Seer Agent will automatically try to infer the Sentry organization to search based on thread context (e.g. Sentry links). If this behaviour doesn't fit your needs, you can use `/sentry set org [organization_slug]` to manually set your preference when interacting with Seer Agent. Your chats and mentions will fallback to the set organization if no organization can be inferred. ![Example set default organization Slack command =600x](./img/slack-preference-command.png) @@ -106,7 +102,6 @@ In order for Sentry to be able to notify and debug your issues from Slack, we re | Required Bot Scope | Usage | | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | -| `assistant:write` | Allows Seer to act as an [AI Assistant in Slack](https://slack.com/help/articles/33076000248851-Understand-AI-apps-in-Slack). | | `app_mentions:read` | Allows Slack to notify Sentry when a user has @mentioned the bot. | | `channels:read` | Allows Sentry to view info about, list, and validate public channels in your workspace. Used primarily for configuring alerts. | | `chat:write` | Allows Sentry to send/update messages, such as alerts, notifications, and responses. | @@ -140,18 +135,6 @@ More details on the scopes and their technical usage can be found on the [self-h ## Troubleshooting -### Disabling the AI Assistant Experience - -If you've enabled the Sentry Slack app to act as an AI Assistant, you may notice a change in appearance for your personal notifications. Each one appears now as a separate chat you can have with Seer Agent. - -![Example notification feed from Slack Agent =600x](./img/slack-agent-notifications.png) - -This is a Slack feature that more clearly divides conversations, and gives a few benefits like a persistent panel for chats, a quick launcher for new conversations, and few prompts to get you started when interacting with Seer Agent. However, if you'd rather keep the regular direct message experience you can disable the _AI assistant experience_ when managing your Slack Workspace by following this [Slack help article](https://slack.com/help/articles/33077521383059-Manage-app-agents-and-assistants). - -Disabling this feature applies to the whole Slack workspace, and will revert your interactions to a direct message conversation, with 'chats' appearing as regular threads. You'll still be able to chat with Seer Agent without @mentioning every time, but you'll lose a few Slack benefits mentioned above. - -![Example of Seer chats now in Slack App DMs =600x](./img/slack-agent-dms.png) - ### Rate Limiting Error If you're attempting to save a Slack alert and are receiving the following error: "Requests to slack were rate limited. Please try again later.", you may enter in the channel or user ID in addition to the channel name. From 280db0b138e2d6756e57164b818af506efd4e4f7 Mon Sep 17 00:00:00 2001 From: Stefan Jandl Date: Fri, 13 Nov 2026 23:43:25 +0100 Subject: [PATCH 106/141] docs(unity): Document missing options and options configuration (#20414) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Documents the Unity SDK options that the Unity docs don't list yet, and corrects the Programmatic Configuration page. Every type and default is read from the sentry-unity 4.13.0 source. Where the editor window's default differs from the code default, the entry gives both. **Stacked on #20413** (options page corrections): this PR's base is that branch, so the diff shows only this PR's changes. It moves to `master` once #20413 merges. - **Options page**: about 60 short entries in new and existing sections: Core, Filtering, Logging & Breadcrumbs, Data Enrichment, Privacy, Hooks, Transport, Tracing, Native Support and Metrics. Each entry gives the type, the default, a sentence or two and a link to the topic page, and says when the option has no field in the configuration window. It covers: - Unity options such as `Enabled`, `CaptureInEditor`, `Throttler`, `AddBreadcrumbsForLogType`, the per-platform native support switches, the native initialization types, the experimental desktop backends and the experimental metrics. - Inherited .NET options that work in Unity, such as `SampleRate`, `CacheDirectoryPath`, `TracePropagationTargets` and `IgnoreTransactions`. - The extension methods `DisableUnityLoggingIntegration()`, `DisableUnhandledExceptionCapture()` and the exception-filter switches. - `IsEnvironmentUser`, with its window default and its per-platform code default. - `FilterBadGatewayExceptions`, which works from the window, an options configuration script and `SentrySdk.Init`. - **Programmatic Configuration**: the intro uses the window's real labels (**Options Config** tab, **Option Config Script**, **New**), names `SentryOptionsConfiguration`, and says that `Configure` runs after the window values and during player builds. The init-flow image is replaced by a mermaid diagram that shows where the native steps run, including WebGL's `BeforeSceneLoad`. - **Native Support**: names `AndroidNativeInitializationType` and `IosNativeInitializationType`. The configuration window itself isn't documented here; it explains itself, and screenshots go stale quickly. Pages to check on the preview: - `/platforms/unity/configuration/options/` - `/platforms/unity/configuration/options/programmatic-configuration/` (the mermaid diagram) - `/platforms/unity/native-support/` ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- .../unity/configuration/options/index.mdx | 395 ++++++++++++++++++ .../img/initialization-flow.png | Bin 74025 -> 0 bytes .../programmatic-configuration/index.mdx | 22 +- docs/platforms/unity/native-support/index.mdx | 2 + 4 files changed, 414 insertions(+), 5 deletions(-) delete mode 100644 docs/platforms/unity/configuration/options/programmatic-configuration/img/initialization-flow.png diff --git a/docs/platforms/unity/configuration/options/index.mdx b/docs/platforms/unity/configuration/options/index.mdx index a9f5b5f787aa1..a39f10b12e833 100644 --- a/docs/platforms/unity/configuration/options/index.mdx +++ b/docs/platforms/unity/configuration/options/index.mdx @@ -58,6 +58,98 @@ To write the logs somewhere else, such as a file, + +Turns the SDK on or off. When set to `false`, the SDK doesn't initialize. + + + + + +Controls whether the SDK initializes while the game runs in the Unity Editor. When set to `false`, the SDK sends nothing from Play Mode. + + + + + +Sets the logger for the SDK's own diagnostic messages. The SDK uses it only when is on. If you don't set one, the SDK writes to the Unity Console. There's no field for it in the configuration window. Learn more in Diagnostic Logger. + + + +## Filtering Options + + + +The sample rate for error events, greater than `0` and up to `1`. When `null`, the SDK sends every error event. In the configuration window, it's the **Event Sample Rate** field, which accepts `0.01` to `1`, where `1` means `null`. Native crashes on Android, iOS, and macOS with the Cocoa backend follow this rate too. On Windows, Linux, macOS with the Native backend, and game consoles, the native SDK always sends crashes. Learn more in Sampling. + + + + + +Limits repeated errors, breadcrumbs, and structured logs that come from Unity logging. Turning on **Enable Error Event Throttling** in the configuration window sets a throttler that only limits error events, unless your options configuration script already set one. Implement `IThrottler` to also limit breadcrumbs and structured logs. + + + + + +Drops exceptions of type `System.Exception` whose message starts with `Error: HTTP/1.1 502 Bad Gateway`. + +Set it to `false` to keep these exceptions. This works in the window, in `Configure`, and when you initialize the SDK with `SentrySdk.Init`. + +On iOS with `BuildTime` native initialization, this option also makes the iOS SDK drop events for requests to `operate-sdk-telemetry.unity3d.com`. The iOS SDK takes this value from the window and `Configure` at build time, so setting it in `SentrySdk.Init` doesn't change it. + + + + + +Removes the filter that drops Bad Gateway exceptions. It leaves set to `true`, so on iOS with `BuildTime` native initialization, the iOS SDK still drops events for requests to `operate-sdk-telemetry.unity3d.com`. To turn off both, set to `false` in the window or in `Configure` instead. + + + + + +Removes the filter that drops `System.Net.WebException` with the message `Error: ConnectFailure (The requested address is not valid in this context)`. In the configuration window, it's the **WebException** toggle. + + + + + +Removes the filter that drops `System.Net.Sockets.SocketException` with error code 10049 (`The requested address is not valid in this context`). In the configuration window, it's the **SocketException** toggle. + + + + + +Adds an `IExceptionFilter`. The SDK drops exceptions for which the filter returns `true`. To drop an exception type and the types derived from it, call `AddExceptionFilterForType()`. + + + + + +Controls which duplicate events the SDK drops: the same event (`SameEvent`), the same exception instance (`SameExceptionInstance`), an already captured exception that's the inner exception of a new one (`InnerException`), or part of an `AggregateException` (`AggregateException`). By default, the SDK drops all of these except inner exceptions. There's no field for it in the configuration window. + + + +## Logging & Breadcrumbs Options + + + +Controls, for each Unity `LogType`, whether the SDK adds log messages as breadcrumbs. In the configuration window, these are the breadcrumb toggles on the **Logging** tab. Learn more in Breadcrumbs. + + + + + +Stops the SDK from capturing `Debug.Log`, `Debug.LogWarning`, `Debug.LogAssertion`, and `Debug.LogError` calls as events, breadcrumbs, and structured logs. + + + + + +Stops the SDK from capturing unhandled exceptions and `Debug.LogException` calls. + + + ## Data Enrichment & Attachments @@ -129,6 +221,18 @@ It applies to requests sent with an `HttpClient` that uses `SentryHttpMessageHan + + +The response status codes that count as failed requests for . There's no field for it in the configuration window. + + + + + +The request URLs that applies to, as substrings or regular expressions. Adding an item removes the default `.*`. There's no field for it in the configuration window. + + + Defaults to `true`. Specifies whether to use global scope management mode. Should be `true` for client applications and `false` for server applications. @@ -141,6 +245,24 @@ Sets the distribution of the application. Distributions are used to disambiguate + + +Controls whether events list the loaded assemblies, and which version they report: `None`, `Version`, or `InformationalVersion`. If an assembly has no informational version, `InformationalVersion` reports the assembly version. + + + + + +Tags the SDK adds to every event. If an event already has a tag with the same key, it keeps its own value. Add tags to the dictionary, for example `options.DefaultTags["level"] = "forest";`. There's no field for it in the configuration window. Learn more in Tags. + + + + + +Tag keys the SDK ignores, as substrings or regular expressions. Setting a tag whose key matches has no effect. There's no field for it in the configuration window. + + + ## Privacy & PII @@ -159,6 +281,17 @@ If you enable this option, be sure to manually remove what you don't want to sen + + +Reports `Environment.UserName` as the user of each event. It applies only when is on and the event has no user set. + +The default depends on where the options come from: + +- Configuration window (**Auto Set UserName**): `false`. An options configuration script sees the window's value. +- `new SentryUnityOptions()` and `SentrySdk.Init`: `true` in Windows, macOS, and Linux players and dedicated servers, and `false` everywhere else, including the Unity Editor, Android, iOS, and consoles. + + + ## Hooks These options can be used to hook the SDK in various ways to customize the reporting of events. @@ -207,6 +340,24 @@ A callback function that controls view hierarchy capture behavior. Return `false + + +A callback function that receives the captured view hierarchy before the SDK serializes it, along with the event it belongs to. Modify the hierarchy and return it, or return `null` to discard it. Learn more in View Hierarchy. + + + + + +A callback function that receives user feedback before the SDK sends it. Return the feedback event, modified or not, or return `null` to drop it. Learn more in User Feedback. + + + + + +Adds an `ISentryEventProcessor` that runs for every event. A processor can change the event, or return `null` to drop it. + + + ## Transport & Network Options Transports are used to send events to Sentry. Transports can be customized to some degree to better support highly specific deployments. @@ -243,6 +394,36 @@ Controls how long to wait before shutting down. Sentry SDKs send events from a b + + +The directory where the SDK stores events before it sends them, so they survive restarts and network outages. Set it to `null` to turn offline caching off. Turning off **Enable Offline Caching** in the configuration window sets it to `null`. + + + + + +The maximum number of events the SDK keeps in memory while it sends them. Set it to at least `1`. + + + + + +How long `SentrySdk.Flush()` waits for queued events to be sent. There's no field for it in the configuration window. + + + + + +How the SDK compresses the requests it sends to Sentry: `NoCompression`, `Optimal`, `Fastest`, or `Auto`, which uses `NoCompression`. IL2CPP doesn't support `Optimal` and `Fastest`. There's no field for it in the configuration window. + + + + + +Lets the SDK lower the sample rate of events and transactions while the system is under load. There's no field for it in the configuration window. + + + ## Tracing Options @@ -269,6 +450,42 @@ Controls whether the SDK will automatically trace when loading scenes. Requires + + +Adds spans for `Awake` calls during startup and scene loading. In the configuration window, it's the **Spans for Awake Calls** toggle. The SDK reads this option only during the build, when it instruments the game's code, and only if is greater than `0`. Setting it at runtime has no effect. Learn more in Automatic Instrumentation. + + + + + +Transaction names to drop, as substrings or regular expressions. The SDK drops matching transactions before runs. There's no field for it in the configuration window. + + + + + +The outgoing HTTP requests that get the `sentry-trace` and `baggage` headers, matched by URL as substrings or regular expressions. It applies to requests sent through `SentryHttpMessageHandler`. Adding an item removes the default `.*`, and an empty list turns propagation off. There's no field for it in the configuration window. Learn more in Trace Propagation. + + + + + +Also sends the W3C `traceparent` header with requests that match . There's no field for it in the configuration window. + + + + + +When set to `true`, the SDK continues an incoming trace only if it has the same org ID as yours. Otherwise, it starts a new trace. When set to `false`, the SDK also continues incoming traces that have no org ID. A trace with a different org ID always starts a new trace. There's no field for it in the configuration window. + + + + + +The org ID the SDK uses for trace propagation and . By default, the SDK reads it from the DSN. Set it when your DSN doesn't contain it, for example with self-hosted Sentry or a local Relay. There's no field for it in the configuration window. + + + ## App Hang and ANR Options Use these options to configure app hang and ANR detection. For supported platforms, detector behavior, and avoiding duplicate events, see App Hangs and ANRs. @@ -318,3 +535,181 @@ Reports historical Android ANRs recorded by the operating system. This option re Attaches the Android operating system's thread dump to ANR events. This option requires . + +## Native Support Options + +These options control the native SDKs that the Unity SDK includes. Learn more in Native Support. + + + +Turns on native support on iOS through the [iOS SDK](/platforms/apple/guides/ios/). + + + + + +Turns on native support on Android through the [Android SDK](/platforms/android/). Android native support requires the IL2CPP scripting backend: with Mono, this option and the other Android options have no effect. + + + + + +Turns on the Android NDK integration, which captures native crashes in C and C++ code. Requires . + + + + + +Syncs the scope, such as breadcrumbs, tags, and the user, to the Android NDK layer, so native crashes include it. Requires . + + + + + +Turns on native support on Windows. + + + + + +Turns on native support on macOS. + + + + + +Turns on native support on Linux. + + + + + +Turns on native support on Xbox. Learn more in Game Consoles. + + + + + +Turns on native support on PlayStation. Learn more in Game Consoles. + + + + + +Syncs the scope to the native layer on Nintendo Switch and Switch 2. Learn more in Game Consoles. + + + + + +When the iOS SDK initializes: `Runtime`, `BuildTime`, or `External`. `External` is experimental and is for Unity as a Library. The SDK reads it during the build to set up the Xcode project, so set it in an options configuration script, which also runs during the build. + + + + + +When the Android SDK initializes: `Runtime`, `BuildTime`, or `External`. `External` is experimental and is for Unity as a Library. The SDK reads it during the build to set up the Gradle project, so set it in an options configuration script, which also runs during the build. + + + + + +Turns on [watchdog termination tracking](/platforms/apple/guides/ios/configuration/watchdog-terminations/) in the iOS SDK. There's no field for it in the configuration window. + + + + + +Reports native crashes that Android records as tombstones, which the Android SDK reads through `ApplicationExitInfo`. There's no field for it in the configuration window. + + + + + +Also reports tombstones that Android recorded in earlier runs. Requires . There's no field for it in the configuration window. + + + + + +The `callbackOrder` of the build step in which the SDK changes the generated Gradle project. Change it if another `IPostGenerateGradleAndroidProject` step must run before or after the SDK's. There's no field for it in the configuration window. + + + + + +The path to the out-of-process crash handler executable. By default, the SDK looks for it next to the player executable. It applies on Windows, Linux, and on macOS with the `Native` backend. There's no field for it in the configuration window. + + + + + +The native backend on Windows. `Crashpad` uses `crashpad_handler.exe`. `Native` is experimental and uses the out-of-process `sentry-crash.exe` handler, which uploads crashes right away. + + + + + +The native backend on macOS. `Cocoa` uses the [macOS SDK](/platforms/apple/guides/macos/) and requires IL2CPP. `Native` is experimental and uses the [Native SDK](/platforms/native/) with an out-of-process handler, which uploads crashes right away. It works with IL2CPP and Mono. + + + + + +The native backend on Linux. `Breakpad` captures crashes in process and uploads them on the next launch. `Native` is experimental and uses the out-of-process `sentry-crash` handler, which uploads crashes right away. + + + +When any of these backends is set to `Native`, the SDK raises to at least 10 seconds, so the handler has time to upload before the player exits. When you initialize the SDK with `SentrySdk.Init`, set `ShutdownTimeout` yourself. + +## Metrics Options + +These options are experimental. They make the SDK collect game metrics and send them to Sentry. Learn more in Metrics. + + + +Collects frame metrics, such as frame time, FPS, and CPU thread timings. + + + + + +How often the SDK samples frame metrics. The minimum is one second. + + + + + +Collects memory usage. + + + + + +How often the SDK samples memory metrics. The minimum is one second. + + + + + +Collects garbage collection counts for each generation. + + + + + +How often the SDK samples garbage collection metrics. The minimum is one second. + + + + + +Collects multiplayer network metrics: the round-trip time on clients and the number of connected clients on the server. Requires the Netcode for GameObjects package. + + + + + +How often the SDK samples network metrics. The minimum is one second. + + diff --git a/docs/platforms/unity/configuration/options/programmatic-configuration/img/initialization-flow.png b/docs/platforms/unity/configuration/options/programmatic-configuration/img/initialization-flow.png deleted file mode 100644 index 1e00fd707eabfd3e7c7abe997125bd3557f4537c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 74025 zcmeFZ2Ut^EvoIVFc0ol%q$^cHK#+idfJ&1tk`P+pND~4H(mPnG0@8(0G}I&zB=m%G zl->oBP(nbYmr#^m|M-@B&int*t?z%IuiP_vve&G&X3fl=J-f_mhl7V-0q1ozwKV}p zjsO5h7(c+_wuLP8q7}e^qc;HnIKtEYk=Feyre@|>PJI1qi=TCm zZ9Sg;O#c;N@ZF&NulTi}xXoYj zJ3nzB&!?UYnukAechDm>25!f|uRZw#Zu1A+_Nn_%`Zo-kJ8&1TpR#_!PmP)F5ny9R zdXn+y0eAo&0ki=3f1W=h&j42x0C0O90APCidznot08sfF0JuE-dzsLC0N~s!0HC7h z_p;w@^7OI$g1_Y zrtSo2Goj=cd{xtIiwhQOk82I_0Opg3)$#nE2qv828r_L}+|C4a| z8-VpB6NPD;>4*T}7uF+8tVa$T0lYtbjS0Z?(-r>)CyyOJ!F2T0FF&hY&I1^NfBEIu zu~Vm*j~_dE^c>*GFHA=n6s#vNuyI~Z>OXZ^8e)2pL*SlCLSi3@{gTXWBT#Z~nc(&N zj~yJn;`7RTCm*>zfAtzKBz()pUBTGX+b8ZrsjQsGi;_=`KzS{DRCa~>1F-ElL)yhZ zXz@2?ewMQSuG`;BhXKq?M;K?p#0pRa?ELz-;{VZ!ZlIdqec6|4OYt^xTuwgtb1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2Y>u(v;}w+hfBLlEV~~Ry2P+`tMr(jl}m_eZ$I9v-ltSC}&?CrS$@n z=&Qd8rkRUSKGxbrmy>0R9ctj=DzJ?fZj z&9Yj_V2w1kf9*AQETWuVd!7=x>n|k#`9c4=Xzfq?c5u`j&8ZW)mN&j3`O%Q9u#r}a zn{u;p-O2dP<8Lp1yGGZ$zwiiu1^Mt#(?=EKeP3;*s(-Qmt-PB{wo<2mIq*-x|1`z_ zU$3xC+&mU^tRIiWrd)Xtxpq4JsQ4R0@SiMywZM1VqJIHvdR!s^ diff --git a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx index b3a4e916d47a6..0a98e7b59de26 100644 --- a/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx +++ b/docs/platforms/unity/configuration/options/programmatic-configuration/index.mdx @@ -6,7 +6,9 @@ og_image: >- /og-images/platforms-unity-configuration-options-programmatic-configuration.png --- -We've added `Sentry Options Configuration` to the `Options Config` tab in the Sentry editor window to provide a way to modify options programmatically. +To set options in code, use an options configuration script. In the Sentry configuration window (**Tools > Sentry**), open the **Options Config** tab and click **New** next to the **Option Config Script** field. The SDK asks where to save the script, starting in `Assets/Scripts`, and writes a class that inherits from `SentryOptionsConfiguration`. After Unity compiles the script, the SDK creates its asset in `Assets/Resources/Sentry/` and assigns it to the field, unless the field already has a script. + +The SDK calls the script's `Configure` method after it applies the values from the configuration window, so the values you set in `Configure` override the window. `Configure` also runs during player builds, where the SDK uses the options to set up the native SDKs and other build steps. During a build, `Environment` defaults to `production`. Don't rely on the game's runtime state in `Configure`, and wrap code that must only run in the game in `if (Application.isPlaying)`. ![Options Configuration](./img/unity-options-configuration.png) @@ -14,11 +16,21 @@ We've added `Sentry Options Configuration` to the `Options Config` tab in the Se The Sentry SDK for Unity includes [platform-specific (that is, Native)](/platforms/unity/native-support/) SDKs, such as [Android](/platforms/android/), [Apple](/platforms/apple/guides/ios/), and [Native](/platforms/native/) to provide native crash support. These SDKs share the options with which they get initialized. -The C# layer self-initializes through the use of the [SubsystemRegistration RuntimeInitializeOnLoadMethodAttribute](https://docs.unity3d.com/ScriptReference/RuntimeInitializeLoadType.SubsystemRegistration.html). - -![Flow of initialization](./img/initialization-flow.png) +The SDK initializes itself at [SubsystemRegistration](https://docs.unity3d.com/ScriptReference/RuntimeInitializeLoadType.SubsystemRegistration.html) through `RuntimeInitializeOnLoadMethod`. On WebGL, it initializes at [BeforeSceneLoad](https://docs.unity3d.com/ScriptReference/RuntimeInitializeLoadType.BeforeSceneLoad.html) instead, because the WebGL transport can't send requests earlier. The native steps only run in a player with native support: not in the Editor, on WebGL, on Android with Mono, or on macOS with Mono and the default `Cocoa` backend. With `BuildTime` initialization on iOS and Android, the native SDK starts before Unity, so the SDK skips that step. With `External`, it skips it when the app that embeds the game has already started the native SDK. Learn more in Unity as a Library. + +```mermaid +flowchart TD + Start["SubsystemRegistration
(BeforeSceneLoad on WebGL)"] --> Load[Load the options from the configuration window] + Load --> Configure["Call Configure in your options configuration script"] + Configure --> HasNative{"Native support
in this player?"} + HasNative -- Yes --> Native["Initialize the native SDK
(unless it's already running)"] + Native --> Sync[Set up scope sync with the native SDK] + Sync --> CSharp[Initialize the C# SDK] + HasNative -- No --> CSharp + CSharp --> Game[Load the first scene] +``` -If provided, the `Option Configuration Script` is executed on each app startup. The options are first used to initialize the native SDKs, then the managed (C#) SDK. This means that the options you set in your `Configure` callback will also apply on the native layer. For example: +The SDK initializes the native SDK with the same options before the C# SDK, so the options you set in `Configure` also apply to the native layer. With `BuildTime` initialization, the native SDK uses the options from the build instead, and with `External`, usually the options of the app that embeds the game. For example: ```csharp public override void Configure(SentryUnityOptions options) diff --git a/docs/platforms/unity/native-support/index.mdx b/docs/platforms/unity/native-support/index.mdx index db80c74fd259e..45a591b25df30 100644 --- a/docs/platforms/unity/native-support/index.mdx +++ b/docs/platforms/unity/native-support/index.mdx @@ -21,6 +21,8 @@ There are three initialization types: - `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 +Set the type with the `AndroidNativeInitializationType` and `IosNativeInitializationType` options in an [options configuration script](/platforms/unity/configuration/options/programmatic-configuration/). Both default to `Runtime`. + ### 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. From 80d61aebd8146cf98cfdd1edbdbd753a34586f99 Mon Sep 17 00:00:00 2001 From: Stefan Jandl Date: Fri, 13 Nov 2026 23:56:41 +0100 Subject: [PATCH 107/141] docs(unity): Fix native support and platform docs (#20416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## DESCRIBE YOUR PR Corrects the Unity native support and platform docs against the sentry-unity 4.13.0 source: which platforms get native crash reporting, what each one needs, and what reaches native crash reports. **Stacked on #20414**, which adds the option entries this PR links to. Its base is that branch, so the diff shows only this PR's changes. - **Supported Platforms** table on the Native Support page: native crashes, native SDK or backend, and requirements per platform, with the minimum Unity version, dedicated servers, the supported consoles and the platforms the SDK doesn't support. visionOS and UWP run on a best-effort basis. - Consoles report native crashes; the "work in progress" note is removed. - Android native support needs IL2CPP, and so does the default Cocoa backend on macOS; the experimental Native backend works with Mono. - **Scope Sync** section: what the SDK copies to the native SDKs, and what doesn't reach native crashes (custom contexts, attachments on iOS and macOS with Cocoa, the parts the app's SDK owns with Unity as a Library, and NDK scope sync turned off). The Attachments and Context pages link to it. - Windows: every file the build copies next to the player (`crashpad_handler.exe`, `crashpad_wer.dll`, `sentry-native.dll`; with the experimental Native backend `sentry-crash.exe`, `sentry-wer.dll`, `sentry-native.dll`), x64 and x86, and the experimental Native backend. macOS: the experimental Native backend. `NativeHandlerPath` and `DisableFileWrite`. - Game Consoles: Xbox needs `PersistentLocalStorage` in `MicrosoftGame.config`; Switch needs `TemporaryStorageSize` in the `.nmeta`, and runs without file writes, automatic session tracking or IL2CPP line numbers. - Minidumps: "Windows, Linux, and macOS with the Native backend" on the Native Support, Attachments and Store Minidumps pages. - iOS: `main.mm` and `SentryObjC.xcframework` in the native support and troubleshooting text. - Known limitations: why WebGL has no IL2CPP line numbers. The Unity quick start (`docs/platforms/unity/index.mdx`, open in #20012) names only `crashpad_handler.exe` as the file to ship with a Windows build; it needs the same three-file list. Pages to check on the preview: - `/platforms/unity/native-support/` - `/platforms/unity/game-consoles/` - `/platforms/unity/enriching-events/attachments/` - `/platforms/unity/enriching-events/context/` ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com> --- .../store-minidumps-as-attachments/index.mdx | 5 +- .../enriching-events/attachments/index.mdx | 7 ++- .../unity/enriching-events/context/index.mdx | 2 + docs/platforms/unity/game-consoles/index.mdx | 12 ++++ docs/platforms/unity/native-support/index.mdx | 62 ++++++++++++++++--- .../platforms/unity/troubleshooting/index.mdx | 6 +- .../troubleshooting/known-limitations.mdx | 2 +- 7 files changed, 83 insertions(+), 13 deletions(-) diff --git a/docs/platforms/unity/data-management/store-minidumps-as-attachments/index.mdx b/docs/platforms/unity/data-management/store-minidumps-as-attachments/index.mdx index 05a0db81eb930..04363fdd710a1 100644 --- a/docs/platforms/unity/data-management/store-minidumps-as-attachments/index.mdx +++ b/docs/platforms/unity/data-management/store-minidumps-as-attachments/index.mdx @@ -6,6 +6,9 @@ sidebar_order: 90 -☝ This feature is supported on Windows, Linux, and Android. + + ☝ This feature is supported on Windows, Linux, and macOS with the Native + backend. + diff --git a/docs/platforms/unity/enriching-events/attachments/index.mdx b/docs/platforms/unity/enriching-events/attachments/index.mdx index 005d7d0ac990d..4c015b0557b28 100644 --- a/docs/platforms/unity/enriching-events/attachments/index.mdx +++ b/docs/platforms/unity/enriching-events/attachments/index.mdx @@ -45,6 +45,8 @@ The type of content stored in this attachment. Any [MIME type](https://www.iana. Unity features a global scope to which you add an attachment that will be sent with every event. +The SDK also syncs these attachments to the native SDK, so native crashes include them, except on iOS and on macOS with the default Cocoa backend. Learn more in Scope Sync. + @@ -61,7 +63,10 @@ Learn more about how attachments impact your [quota](/pricing/quotas/). -☝ This feature is supported on Windows, Linux, and Android. + + ☝ This feature is supported on Windows, Linux, and macOS with the Native + backend. + diff --git a/docs/platforms/unity/enriching-events/context/index.mdx b/docs/platforms/unity/enriching-events/context/index.mdx index 69625e24f4f53..fa54f28d3fe42 100644 --- a/docs/platforms/unity/enriching-events/context/index.mdx +++ b/docs/platforms/unity/enriching-events/context/index.mdx @@ -27,6 +27,8 @@ The class must be serializable and only properties are included; fields are not. +Custom contexts are only added to C# events. Native crashes don't include them. Learn more in Scope Sync. + There are no restrictions on context name. In the context object, all keys are allowed except for `type`, which is used internally. Learn more about conventions for common contexts in the [contexts interface developer documentation](https://develop.sentry.dev/sdk/foundations/transport/event-payloads/contexts/). diff --git a/docs/platforms/unity/game-consoles/index.mdx b/docs/platforms/unity/game-consoles/index.mdx index be9474806d23a..f31a56bd5cec9 100644 --- a/docs/platforms/unity/game-consoles/index.mdx +++ b/docs/platforms/unity/game-consoles/index.mdx @@ -34,14 +34,26 @@ Each console has a different crash capture model: Sentry supports [PlayStation](/platforms/playstation/), [Xbox](/platforms/xbox/) and [Nintendo Switch](/platforms/nintendo-switch/) via the Unity SDK. Once you submit the middleware verification process, we'll reach out and send you an invite to our private GitHub repositories with console-specific code. This allows your configuration and custom data set via C# to show up in C# exceptions as well as crash dumps on these console platforms. +The automated debug symbol upload covers console builds, too. + ## Nintendo Switch +On Nintendo Switch and Nintendo Switch 2, the SDK: + +- Sets `DisableFileWrite`, because file access is limited, so there's no offline caching +- Turns off automatic session tracking, for the same reason +- Turns off IL2CPP line numbers, which aren't available on Switch + +Set `TemporaryStorageSize` in your game's `.nmeta` file. The SDK needs temporary storage to start the native SDK. Without it, the SDK skips native initialization, and native crashes don't include the scope you set in C#. + ## Xbox +The SDK stores its data in Xbox Persistent Local Storage. Configure `PersistentLocalStorage` in your game's `MicrosoftGame.config`. Without it, the SDK runs without offline caching, session persistence, or native crash reporting. + ## PlayStation diff --git a/docs/platforms/unity/native-support/index.mdx b/docs/platforms/unity/native-support/index.mdx index 45a591b25df30..0f93d10c645b9 100644 --- a/docs/platforms/unity/native-support/index.mdx +++ b/docs/platforms/unity/native-support/index.mdx @@ -5,13 +5,50 @@ sidebar_order: 100 sidebar_section: features --- -The Sentry SDK supports C# and Native crashes on Android, iOS, Windows, macOS and Linux. The support is set to `enabled` by default. -For Game Consoles, the SDK supports C# errors. While Sentry supports native crashes on consoles, support for that through the Unity SDK is a work in progress. Reach out via GitHub for the platform you're interested in: [PlayStation](https://github.com/getsentry/sentry-unity/issues/2050), [Switch](https://github.com/getsentry/sentry-unity/issues/2052) and [Xbox](https://github.com/getsentry/sentry-unity/issues/2051) +The Unity SDK captures C# errors on every platform it supports. On most platforms, it also includes a native SDK that captures native crashes, such as crashes in the Unity engine or in native plugins. Native support is on by default. + +## Supported Platforms + +| Platform | Native crashes | Native SDK | Requirements | +| ---------------------------------- | -------------- | ------------------------------------------------------------------- | ----------------------- | +| Android | Yes | sentry-java with the NDK integration | IL2CPP | +| iOS | Yes | sentry-cocoa | | +| Windows (x64, x86) | Yes | sentry-native with Crashpad, or the experimental Native backend | | +| macOS | Yes | sentry-cocoa, or sentry-native with the experimental Native backend | IL2CPP for sentry-cocoa | +| Linux (x86_64, ARM64) | Yes | sentry-native with Breakpad, or the experimental Native backend | | +| Xbox, PlayStation, Nintendo Switch | Yes | See Game Consoles | | +| WebGL | No | | | +| visionOS, UWP | No | | | + +On visionOS and UWP, the SDK runs on a best-effort basis, without offline caching or session tracking. The SDK supports Unity 2021.3 and later. Dedicated server builds for Windows, macOS, and Linux get the same native support as players. On consoles, the SDK supports Xbox with the GDK, PlayStation 5, Nintendo Switch, and Nintendo Switch 2. The SDK doesn't support PlayStation 4, Xbox One without the GDK, tvOS, Embedded Linux, or Cloud Rendering. + +## Scope Sync + +The SDK syncs the scope you set in C# to the native SDK, so native crashes include it. It syncs: + +- Breadcrumbs +- Tags +- Extras +- User +- Environment +- Trace +- Attachments + +Some scope data doesn't reach native crashes: + +- Custom contexts you set through `scope.Contexts`. The SDK only syncs the contexts it collects itself, such as device and app data. +- Attachments on iOS, and on macOS with the default Cocoa backend. +- With Unity as a Library, the app's own SDK owns part of the scope. On iOS, that's the user, environment, and trace. On Android, it's the trace, and the user when the game runs in the app's process. +- On Android, setting `NdkScopeSyncEnabled` to `false` turns off scope sync for NDK crashes. ## Mobile The native crash support for Android and iOS is provided by adding platform-specific SDKs to the generated Xcode and Gradle projects at build time. +Android native support requires the IL2CPP scripting backend. With Mono, the SDK captures C# errors only. + +On Android, `NdkIntegrationEnabled`, `NdkScopeSyncEnabled`, `AndroidTombstoneEnabled`, and `AndroidReportHistoricalTombstones` control the NDK integration and tombstone reporting. On iOS, `IosWatchdogTerminationIntegrationEnabled` controls watchdog termination reporting. Learn more in Options. + ### 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. @@ -33,7 +70,7 @@ At build time, the SDK modifies the generated Gradle project to include the Andr #### 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. +At build time, the SDK modifies the generated Xcode project to include the iOS SDK but will not modify the `main.mm` file or write the options to file. The Unity SDK will then initialize the iOS SDK when it initializes itself. ### Build Time Initialization @@ -45,7 +82,7 @@ The SDK modifies the generated Gradle project to include the Android SDK. At bui #### 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 SDK modifies the generated Xcode project to include the iOS SDK. It adds the initialization code to the `main.mm` 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. @@ -57,13 +94,21 @@ When your game runs inside an iOS or Android app with Unity as a Library, the ap 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. +Native support on Windows, Linux, and macOS with the Native backend writes files to disk. If you set `DisableFileWrite`, the SDK turns native support off on these platforms. + +With an out-of-process crash handler (Crashpad on Windows, or the Native backend), `NativeHandlerPath` sets where the SDK looks for the handler executable. By default, it's next to the player executable. Learn more in Options. + ### Windows -On Windows, the Unity SDK includes the [Native SDK](/platforms/native/) with the crashpad backend. Windows native crashes are automatically captured through minidumps. To upload these to Sentry, the SDK copies the `crashpad_handler.exe` to the build output directory at the end of the build process. This executable must be included when shipping your game. +On Windows, the Unity SDK includes the [Native SDK](/platforms/native/) with the Crashpad backend, for both 64-bit (x64) and 32-bit (x86) players. Windows native crashes are captured through minidumps. At the end of the build, the SDK copies `crashpad_handler.exe`, `crashpad_wer.dll`, and `sentry-native.dll` next to the player. Include all three files when you ship your game. + +With the Native backend, which you can select with `options.Experimental.WindowsBackend = WindowsBackend.Native`, the SDK uploads crashes right away through the out-of-process `sentry-crash.exe` handler. The build copies `sentry-crash.exe`, `sentry-wer.dll`, and `sentry-native.dll` next to the player instead. Include all three files when you ship your game. ### macOS -The Native Support on macOS relies on the [macOS SDK](/platforms/apple/guides/macos/). Stackwalking happens in process. +By default, native support on macOS relies on the [macOS SDK](/platforms/apple/guides/macos/). Stackwalking happens in process. This Cocoa backend needs IL2CPP. With Mono, the SDK captures C# errors only. + +With the Native backend, which you can select with `options.Experimental.MacosBackend = MacosBackend.Native`, the SDK uses the [Native SDK](/platforms/native/) instead. It uploads crashes right away through the out-of-process `sentry-crash` handler, which the build copies next to the player, and it works with both IL2CPP and Mono. ### Linux @@ -102,6 +147,9 @@ sentry-cli --auth-token ___ORG_AUTH_TOKEN___ debug-files upload --org ___ORG_SLU -☝ This feature is supported on Windows, Linux, and Android. + + ☝ This feature is supported on Windows, Linux, and macOS with the Native + backend. + diff --git a/docs/platforms/unity/troubleshooting/index.mdx b/docs/platforms/unity/troubleshooting/index.mdx index 0ac4d537926a2..c68177da2f4d0 100644 --- a/docs/platforms/unity/troubleshooting/index.mdx +++ b/docs/platforms/unity/troubleshooting/index.mdx @@ -64,17 +64,17 @@ public class GameInitializer : MonoBehaviour Since this way the options are embedded in code, the reliance on the `/Resources` being available at the time of initialization falls away. Unlike regular [manual initialization](/platforms/unity/configuration/options/programmatic-configuration/#manual-initialization), keep **Enable Sentry** checked in the editor window: the SDK can't load its options from the OBB, so your `SentrySdk.Init` call is the only one, and the build still sets up native support. -### Library not loaded: @rpath/Sentry.framework/Sentry +### Library not loaded: @rpath/SentryObjC.framework/SentryObjC If you encounter the following error: ``` -2021-10-29 15:21:40.011452-0400 MyApp[2180:186329] Error loading /var/containers/Bundle/Application/88CC4619-7C5D-4BB1-9F4B-5AAD7EC4BF9C/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/88CC4619-7C5D-4BB1-9F4B-5AAD7EC4BF9C/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework, 265): Library not loaded: @rpath/Sentry.framework/Sentry +2021-10-29 15:21:40.011452-0400 MyApp[2180:186329] Error loading /var/containers/Bundle/Application/88CC4619-7C5D-4BB1-9F4B-5AAD7EC4BF9C/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework: dlopen(/var/containers/Bundle/Application/88CC4619-7C5D-4BB1-9F4B-5AAD7EC4BF9C/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework, 265): Library not loaded: @rpath/SentryObjC.framework/SentryObjC Referenced from: /private/var/containers/Bundle/Application/88CC4619-7C5D-4BB1-9F4B-5AAD7EC4BF9C/MyApp.app/Frameworks/UnityFramework.framework/UnityFramework Reason: image not found ``` -This can happen if you've copied some of the SDK files directly to the Assets folder and the `Sentry.Unity.Editor.iOS.dll` which runs when you build an iOS player wasn't able to copy the `Sentry.framework` to the final app. Enabling debug mode in the Sentry editor window would display more information in the Unity console. +This can happen if you've copied some of the SDK files directly to the Assets folder and the `Sentry.Unity.Editor.iOS.dll` which runs when you build an iOS player wasn't able to copy the `SentryObjC.xcframework` to the final app. Enabling debug mode in the Sentry editor window would display more information in the Unity console. You can resolve this issue by installing the SDK with UPM. diff --git a/docs/platforms/unity/troubleshooting/known-limitations.mdx b/docs/platforms/unity/troubleshooting/known-limitations.mdx index d7670df9a3110..9ca48672c0c36 100644 --- a/docs/platforms/unity/troubleshooting/known-limitations.mdx +++ b/docs/platforms/unity/troubleshooting/known-limitations.mdx @@ -125,7 +125,7 @@ When targeting WebGL, you have the option of setting the `PlayerSettings.WebGL.e - Setting it to `WebGLExceptionSupport.None` is not supported by the SDK. - For the SDK to be able provide stack traces, the support needs to be set to `WebGLExceptionSupport.FullWithStacktrace`. -- The SDK is currently not able to provide line numbers due to the IL2CPP backend not being available. +- The SDK turns off IL2CPP line numbers on WebGL, because Unity's WebGL build doesn't provide the API it needs. - **Native crash detection is not available on WebGL.** The SDK cannot determine if the browser or tab crashed, which affects session tracking: - Sessions with captured exceptions are marked as `Unhandled` - Sessions where the tab/browser closes without a clean shutdown are marked as `Abnormal` From fd041aeae1da5ea2e34142238adee2150e15b51a Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Fri, 13 Nov 2026 23:15:09 +0000 Subject: [PATCH 108/141] feat(api-docs): Build the API reference from @sentry/api/docs (#20679) The API reference now comes from the `@sentry/api` version this repo pins (`2.3.0`), through its `./docs` export (getsentry/sentry-api-schema#150). It no longer fetches `openapi-derefed.json` from a pinned getsentry/sentry-api-schema commit. The rendered pages don't change. ## Changes - **`src/build/resolveOpenAPI.ts`** reads `{tags, operations}` from `@sentry/api/docs` and maps them to the `APICategory`/`API` shapes the pages already use. - `OPENAPI_LOCAL_PATH` still works in development. It runs a local `make build-api-docs` spec through the package's `extractDocs()`, so previews take the same path as production. - `src/build/open-api/types.ts` is gone; the package types replace it. - Optional query parameters now carry `required: false` instead of no key. The pages check `!!param.required`, so they render the same. - **`scripts/tsconfig.json`** maps `@sentry/api/docs` to `dist/docs.js` for the Algolia script. `tsx` resolves through Node's CJS resolver, and the export only has an `import` condition. - **Bump workflow:** `bump-api-schema-sha.yml` is now **Bump @sentry/api**. It keeps its file name, so existing dispatches still reach it. - It runs hourly and on `workflow_dispatch`, with a concurrency group so the two can't push the same branch. - `scripts/bump-sentry-api.sh` (POSIX `sh`) reads the latest version from npm, pins it exactly in `package.json` and the lockfile, then opens and merges the PR with the same app token as before. A pre-commit hook runs shellcheck on it. - Dependabot here only does security updates, so it doesn't fit. - **`pnpm-workspace.yaml`** only holds settings (no `packages` list). It puts `@sentry/api` in `minimumReleaseAgeExclude`, so the hourly bump can still pin a release minutes after it ships once pnpm applies a release-age default. It does nothing on the current `pnpm@10.30.0`: the lockfile, dependency tree, `package.json` pnpm settings and root `pnpm add` behave as before. - **`develop-docs/backend/api/public.mdx`:** the build process section describes the new flow, and the `openapi-diff` text matches getsentry/sentry#130541: a changelog that never fails, plus a separate RPC breaking-change job. Hold that part until that PR merges. ## Screenshots These `next dev` screenshots are 1400px wide. Before is the current reader on the same spec through `OPENAPI_LOCAL_PATH`; after is this PR reading `@sentry/api/docs`. The images are pixel-identical except for the Next.js dev badge, so two pairs have the same URL. **Create a New Team** | Before | After | |---|---| | ![before](https://junior-prod.sentry.dev/public/artifacts/707914ce-aa28-4ed5-a9a7-f6a6b7cc9a1e.png) | ![after](https://junior-prod.sentry.dev/public/artifacts/3b1116af-bf1b-49ea-b6f7-4c94b9e53976.png) | **Create a Custom Inbound Filter** (experimental, with a body) | Before | After | |---|---| | ![before](https://junior-prod.sentry.dev/public/artifacts/682fdbb5-f4bc-4c61-be92-4ded51d63568.png) | ![after](https://junior-prod.sentry.dev/public/artifacts/682fdbb5-f4bc-4c61-be92-4ded51d63568.png) | **List Your Organizations** | Before | After | |---|---| | ![before](https://junior-prod.sentry.dev/public/artifacts/69f1d6af-e058-40cb-b457-bb5a14d90af3.png) | ![after](https://junior-prod.sentry.dev/public/artifacts/69f1d6af-e058-40cb-b457-bb5a14d90af3.png) | ## After merging sentry-api-schema's "Cascade to sentry-docs" dispatch is no longer needed. via @BYK. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@users.noreply.github.com> --- .github/workflows/bump-api-schema-sha.yml | 66 ++----- .pre-commit-config.yaml | 7 + develop-docs/backend/api/public.mdx | 30 ++-- package.json | 1 + pnpm-lock.yaml | 38 ++++ pnpm-workspace.yaml | 6 + scripts/bump-sentry-api.sh | 44 +++++ scripts/tsconfig.json | 10 +- src/build/open-api/types.ts | 126 -------------- src/build/resolveOpenAPI.spec.ts | 22 +-- src/build/resolveOpenAPI.ts | 201 +++++++++------------- 11 files changed, 217 insertions(+), 334 deletions(-) create mode 100644 pnpm-workspace.yaml create mode 100755 scripts/bump-sentry-api.sh delete mode 100644 src/build/open-api/types.ts diff --git a/.github/workflows/bump-api-schema-sha.yml b/.github/workflows/bump-api-schema-sha.yml index 14b4190e8b8ae..cbd319f4f4bfc 100644 --- a/.github/workflows/bump-api-schema-sha.yml +++ b/.github/workflows/bump-api-schema-sha.yml @@ -1,15 +1,22 @@ -name: Bump API Schema SHA +name: Bump @sentry/api on: - # This could be run manually, but the general expectation is that this fires - # from GHA in getsentry/sentry-api-schema on changes there. See: + # The API reference is built from the pinned @sentry/api version. getsentry/sentry + # releases it whenever the API spec changes; this picks up the new version. See: # # https://develop.sentry.dev/api/public/#build-process - + # + # The file keeps its old name so existing dispatches still reach it. + schedule: + - cron: '17 * * * *' workflow_dispatch: +# A dispatch and the hourly run must not both push the same bump branch. +concurrency: + group: bump-sentry-api + cancel-in-progress: false jobs: release: runs-on: ubuntu-latest - name: 'Bump API Schema SHA' + name: 'Bump @sentry/api' steps: - name: Get auth token id: token @@ -18,53 +25,18 @@ jobs: app-id: ${{ vars.SENTRY_API_SCHEMA_UPDATER_APP_CLIENT_ID }} private-key: ${{ secrets.SENTRY_API_SCHEMA_UPDATER_PRIVATE_KEY }} owner: getsentry - repositories: | - sentry-docs - sentry-api-schema + repositories: sentry-docs - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: token: ${{ steps.token.outputs.token }} - - name: 'Bump API Schema SHA' - shell: bash + - uses: pnpm/action-setup@02f6c237bd2518259fed6c71566509edfb3f2b74 # v4 + - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v4 + with: + node-version-file: 'package.json' + - name: 'Bump @sentry/api' env: # An elevated token is necessary because with plain github.token # GitHub does not recursively call workflows, which means CI does not # kick off for the PR we're about to create. GITHUB_TOKEN: ${{ steps.token.outputs.token }} - run: | - set -euo pipefail - - git config user.email "271575301+sentry-api-schema-updater[bot]@users.noreply.github.com" - git config user.name "sentry-api-schema-updater[bot]" - - filepath="src/build/resolveOpenAPI.ts" - - # Authenticate to avoid the low unauthenticated rate limit, and fail on - # HTTP errors so an error body never gets written in as the SHA. - sha="$(curl -sSL --fail \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H 'Accept: application/vnd.github.VERSION.sha' \ - 'https://api.github.com/repos/getsentry/sentry-api-schema/commits/main')" - - if [[ ! "$sha" =~ ^[0-9a-f]{40}$ ]]; then - echo "::error::Expected a 40-character commit SHA from the GitHub API, got: $sha" - exit 1 - fi - echo "Latest commit to 'getsentry/sentry-api-schema' is $sha" - - sed -i -e "s|^const SENTRY_API_SCHEMA_SHA =.*$|const SENTRY_API_SCHEMA_SHA = '$sha';|g" "$filepath" - echo "Updated $filepath" - - if git diff --quiet "$filepath"; then - echo "No changes to $filepath, skipping." - exit 0 - fi - - branch="bot/bump-api-schema-to-${sha:0:8}" - git checkout -b "$branch" - git add "$filepath" - git commit -m "Bump API schema to ${sha:0:8}" - git push --set-upstream origin "$branch" - - gh pr create --fill - gh pr merge --squash --admin -d + run: sh scripts/bump-sentry-api.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92ffeabdffd99..152d5e1e50c84 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,13 @@ repos: - id: flake8 - id: fix-encoding-pragma args: ['--remove'] + - repo: https://github.com/shellcheck-py/shellcheck-py + rev: v0.10.0.1 + hooks: + - id: shellcheck + args: ['--shell=sh', '--enable=check-extra-masked-returns'] + # Older scripts are bash and predate this hook. + files: '^scripts/bump-sentry-api\.sh$' - repo: local hooks: - id: prettier diff --git a/develop-docs/backend/api/public.mdx b/develop-docs/backend/api/public.mdx index a64e88bd63f4e..bbcbca4a5378a 100644 --- a/develop-docs/backend/api/public.mdx +++ b/develop-docs/backend/api/public.mdx @@ -390,29 +390,27 @@ When you open the pull request, please add a screenshot of the page or pages you ### Build Process -The openapi-diff test will fail when CI runs on your pull request, this is expected and meant to -highlight the diff. It is not required to merge. +The `openapi-diff` workflow compares your pull request's schemas with master where your branch +started. Its **Public API changelog** job lists your public API changes in the job summary and +never fails. Its **RPC schema breaking changes** job fails when an RPC method changes in a way that +breaks existing callers. To see the changelog locally, run `make build-api-docs`, then +`make diff-api-docs`. -Once you make changes to an endpoint and merge the change into Sentry, a series of GitHub Actions -will be triggered to make your changes automatically go live: +Once you make changes to an endpoint and merge the change into Sentry, these steps make your changes go live: 1. The [openapi workflow in - sentry](https://github.com/getsentry/sentry/blob/master/.github/workflows/openapi.yml) updates - the schema in [sentry-api-schema](https://github.com/getsentry/sentry-api-schema) with the - OpenAPI build artifact. -2. The [cascade-to-sentry-docs workflow in - sentry-api-schema](https://github.com/getsentry/sentry-api-schema/blob/main/.github/workflows/cascade-to-sentry-docs.yml) - reacts to the push to `main` in (1) by triggering the [bump-api-schema-sha workflow in - sentry-docs](https://github.com/getsentry/sentry-docs/blob/master/.github/workflows/bump-api-schema-sha.yml). -3. The [bump-api-schema-sha workflow in + sentry](https://github.com/getsentry/sentry/blob/master/.github/workflows/openapi.yml) builds + the schema. When the schema changed since the last release, sentry releases a new version of + the [`@sentry/api`](https://www.npmjs.com/package/@sentry/api) package from + `static/packages/api`. The package's `@sentry/api/docs` export holds the API reference data. +2. The [bump workflow in sentry-docs](https://github.com/getsentry/sentry-docs/blob/master/.github/workflows/bump-api-schema-sha.yml) - fetches the latest commit SHA from `sentry-api-schema` and writes it into the correct file, then - makes and merges a PR in `sentry-docs`, which kicks off a deploy via Vercel to - https://docs.sentry.io/api/. + runs hourly. When npm has a newer `@sentry/api`, it pins that version, then makes and merges + a PR in `sentry-docs`, which kicks off a deploy via Vercel to https://docs.sentry.io/api/. ## Troubleshooting API Docs Tests -NOTE: The `openapi-diff` test is supposed to fail when CI runs on your pull request as it is meant to highlight the schema changes. It is not required to merge. +NOTE: The **Public API changelog** job of `openapi-diff` never fails. Read its job summary to check your public API changes. **Problem**: `TypeError: Cannot read properties of null (reading 'type')` diff --git a/package.json b/package.json index de28c8217cf06..9b03b6059c7e5 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", + "@sentry/api": "2.3.0", "@sentry/browser": "11.6.0", "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 25864a5e6f0b8..854cdcac78826 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -102,6 +102,9 @@ importers: '@sentry-internal/global-search': specifier: ^1.3.0 version: 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) + '@sentry/api': + specifier: 2.3.0 + version: 2.3.0(typescript@5.9.3) '@sentry/browser': specifier: 11.6.0 version: 11.6.0 @@ -2996,6 +2999,21 @@ packages: react: '>=16' react-dom: '>=16' + '@sentry/api@2.3.0': + resolution: {integrity: sha512-DaFq7/eAVyo11cT7fzDc0NVhAsUjhP9S8hRJIi4K1UKLe7rrViyvXCmtonnoBJKTY9I1r8G5LgeGUsB7CawDsw==} + engines: {node: '>=22'} + peerDependencies: + typescript: '*' + valibot: '*' + zod: ^4.6.6 + peerDependenciesMeta: + typescript: + optional: true + valibot: + optional: true + zod: + optional: true + '@sentry/browser-utils@11.6.0': resolution: {integrity: sha512-s4zuuE71NORfyNd6ciS27/o97qgfu70qDRdPCkLK8UOcs1REsaAQPgmvNBSADRYm4eeFwWejKBCQKjL5kOzLqw==} engines: {node: '>=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0'} @@ -5166,6 +5184,9 @@ packages: htmlparser2@4.1.0: resolution: {integrity: sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==} + http-cache-semantics@4.3.0: + resolution: {integrity: sha512-M5t5LlJpS1UHMjvwRQVdFHvPISGeLAxNcrWuJkeGh0KxsqCHZ1O3NXZU/8x7cD0BDcGW8kapxMKTvwlqrNkHkA==} + http-proxy-agent@5.0.0: resolution: {integrity: sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==} engines: {node: '>= 6'} @@ -6136,6 +6157,10 @@ packages: resolution: {integrity: sha512-kuUqqHNUqoIWp/c467RI4X6mmyuojY5jGutNU0wVTmEOOfcuwLqyMVoAi9MKi2Ak+5i9+nhmrK4ufZE8069kHA==} engines: {node: '>=18'} + p-limit@7.3.3: + resolution: {integrity: sha512-SKgVvDU5TNIxQ4r30U75BNLC6a+6GOEjngrk/ysM5+Zu3oJuk1SC5ApzIzY/7PjCEjoVPMWJ0zho/4QUiEB7TQ==} + engines: {node: '>=20'} + p-locate@4.1.0: resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} engines: {node: '>=8'} @@ -10372,6 +10397,13 @@ snapshots: react-dom: 19.2.4(react@19.2.4) title-case: 3.0.3 + '@sentry/api@2.3.0(typescript@5.9.3)': + dependencies: + http-cache-semantics: 4.3.0 + p-limit: 7.3.3 + optionalDependencies: + typescript: 5.9.3 + '@sentry/browser-utils@11.6.0': dependencies: '@sentry/conventions': 0.26.0 @@ -13259,6 +13291,8 @@ snapshots: domutils: 2.8.0 entities: 2.2.0 + http-cache-semantics@4.3.0: {} + http-proxy-agent@5.0.0: dependencies: '@tootallnate/once': 2.0.1 @@ -14752,6 +14786,10 @@ snapshots: dependencies: yocto-queue: 1.2.2 + p-limit@7.3.3: + dependencies: + yocto-queue: 1.2.2 + p-locate@4.1.0: dependencies: p-limit: 2.3.0 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000000000..a073cf5994cd3 --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,6 @@ +# Settings only: this repo is a single package, so there is no `packages` list. +# scripts/bump-sentry-api.sh pins every new @sentry/api release within the hour. +# Exclude it from pnpm's minimumReleaseAge so those installs aren't held back +# once pnpm applies a release-age default. +minimumReleaseAgeExclude: + - '@sentry/api' diff --git a/scripts/bump-sentry-api.sh b/scripts/bump-sentry-api.sh new file mode 100755 index 0000000000000..4b48d0ac151b2 --- /dev/null +++ b/scripts/bump-sentry-api.sh @@ -0,0 +1,44 @@ +#!/bin/sh +# Pin @sentry/api, which the API reference is built from, to its newest npm +# release, then open and merge a PR for it. +# +# Environment: +# GITHUB_TOKEN A token that can push branches and merge PRs. A GitHub App +# token, unlike github.token, also starts CI on the new PR. +set -eu + +package=@sentry/api + +latest=$(timeout 60 npm view "$package" version) +case $latest in + '' | *[!0-9.]*) + echo "::error::Expected a release version of $package from npm, got: $latest" + exit 1 + ;; +esac + +current=$(node -p 'require("./package.json").dependencies[process.argv[1]]' "$package") +if [ "$current" = "$latest" ]; then + echo "$package is already $latest, skipping." + exit 0 +fi +echo "Bumping $package from $current to $latest" + +timeout 600 pnpm add --save-exact --lockfile-only "$package@$latest" + +git config user.email "271575301+sentry-api-schema-updater[bot]@users.noreply.github.com" +git config user.name "sentry-api-schema-updater[bot]" + +# A run that stopped before the merge leaves this branch, and maybe its PR, +# behind. Overwrite the branch and reuse an open PR so the next run finishes. +branch="bot/bump-sentry-api-to-$latest" +git checkout -B "$branch" +git add package.json pnpm-lock.yaml +git commit -m "Bump $package to $latest" +timeout 120 git push --force --set-upstream origin "$branch" + +open_prs=$(timeout 60 gh pr list --head "$branch" --state open --json number --jq length) +if [ "$open_prs" = 0 ]; then + timeout 60 gh pr create --fill --head "$branch" +fi +timeout 120 gh pr merge "$branch" --squash --admin -d diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 58d3f2f750e90..c2564eca9b420 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -1,16 +1,18 @@ { // Used only when running scripts/algolia.ts via `tsx` (see .github/workflows/algolia-index.yml). // tsx loads .ts files through Node's CJS resolver. `rehype-prism-diff` (imported transitively - // via src/mdx.ts) only declares an "import" condition in its package.json `exports` map, so the - // CJS resolver fails with ERR_PACKAGE_PATH_NOT_EXPORTED. Aliasing the bare specifier to the - // package's real dist file makes tsx resolve it as a plain file and bypass the exports map. + // via src/mdx.ts) and `@sentry/api/docs` (via src/build/resolveOpenAPI.ts) only declare an + // "import" condition in their package.json `exports` maps, so the CJS resolver fails with + // ERR_PACKAGE_PATH_NOT_EXPORTED. Aliasing each bare specifier to the package's real dist file + // makes tsx resolve it as a plain file and bypass the exports map. // Bun (the previous runner) tolerated the import-only exports map; tsx does not. "extends": "../tsconfig.json", "compilerOptions": { "baseUrl": "..", "paths": { "sentry-docs/*": ["src/*"], - "rehype-prism-diff": ["node_modules/rehype-prism-diff/dist/index.js"] + "rehype-prism-diff": ["node_modules/rehype-prism-diff/dist/index.js"], + "@sentry/api/docs": ["node_modules/@sentry/api/dist/docs.js"] } } } diff --git a/src/build/open-api/types.ts b/src/build/open-api/types.ts deleted file mode 100644 index ce7bc72425b9b..0000000000000 --- a/src/build/open-api/types.ts +++ /dev/null @@ -1,126 +0,0 @@ -export type RequestBodySchema = { - properties: { - [key: string]: {description: string; type: string}; - }; - required: string[]; - type: string; -}; - -export type Parameter = { - description: string; - in: string; - name: string; - required: boolean; - schema: { - enum: string[]; - format: string; - type: string; - items?: {[key: string]: unknown}; - }; - 'x-sentry-experimental'?: boolean; -}; - -type Markdown = { - childMdx: { - body: string; - }; -}; - -type Tag = { - description: string; - externalDocs: { - description: string; - url: string; - }; - name: string; - 'x-display-description': boolean; - 'x-sidebar-name': string; -}; - -type ServerMeta = { - description: string; - url: string; -}; - -export type DeRefedOpenAPI = { - paths: { - [key: string]: { - [key: string]: { - operationId: string; - parameters: Parameter[] | undefined; - requestBody: { - content: { - 'application/json': { - example: any; - schema: RequestBodySchema; - }; - }; - required: boolean; - }; - responses: { - [key: string]: { - content: { - 'application/json': { - example: any; - schema: any; - }; - }; - description: string; - }; - }; - summary: string; - tags: string[]; - description?: string; - security?: any; - servers?: ServerMeta[]; - 'x-sentry-experimental'?: boolean; - }; - }; - }; - tags: Tag[]; - servers?: ServerMeta[]; -}; - -export type ResponseContent = { - content_type: string; - example: string; - examples: string; - schema: string; -}; - -export type Response = { - content: ResponseContent | null; - description: string; - status_code: string; -}; - -export type RequestBody = { - content: { - content_type: string; - example: string; - schema: string; - }; - required: boolean; -}; - -export type OpenApiPath = { - apiPath: string; - description: string; - method: string; - operationId: string; - parameters: Parameter[]; - readableUrl: string; - requestBody: RequestBody | null; - responses: Response[]; - security: {[key: string]: string[]}[]; - summary: string | null; - tags: string[]; -}; - -export type OpenAPI = { - childOpenApiPathDescription: Markdown; - childrenOpenApiBodyParameter: (Parameter & Markdown)[]; - childrenOpenApiPathParameter: (Parameter & Markdown)[]; - id: string; - path: OpenApiPath; -}; diff --git a/src/build/resolveOpenAPI.spec.ts b/src/build/resolveOpenAPI.spec.ts index 52a9d563287e2..62aef56e2acc3 100644 --- a/src/build/resolveOpenAPI.spec.ts +++ b/src/build/resolveOpenAPI.spec.ts @@ -1,6 +1,6 @@ import {describe, expect, test} from 'vitest'; -import {apiLocation, toDocumentedParameter} from './resolveOpenAPI'; +import {toDocumentedParameter} from './resolveOpenAPI'; const EXPERIMENTAL_NOTICE = '**Experimental:** This parameter is under active development and may change.\n\n'; @@ -44,23 +44,3 @@ describe('toDocumentedParameter', () => { ); }); }); - -describe('apiLocation', () => { - const regional = [{url: 'https://{region}.sentry.io/api/0'}]; - - test.each([ - [ - 'paths carry the base path', - [{url: 'https://{region}.sentry.io'}], - undefined, - '/api/0/organizations/', - ], - ['the server URL carries it', regional, undefined, '/organizations/'], - ['an operation server carries it', regional, regional, '/organizations/'], - ])('shows the full path when %s', (_, specServers, operationServers, path) => { - expect(apiLocation(path, specServers, operationServers)).toEqual({ - apiPath: '/api/0/organizations/', - server: operationServers ? 'https://{region}.sentry.io' : 'https://sentry.io', - }); - }); -}); diff --git a/src/build/resolveOpenAPI.ts b/src/build/resolveOpenAPI.ts index 9432072bedbd4..b67cf8f847389 100644 --- a/src/build/resolveOpenAPI.ts +++ b/src/build/resolveOpenAPI.ts @@ -1,36 +1,38 @@ /* eslint import/no-nodejs-modules:0 */ +import { + API_BASE_PATH, + type ApiDocs, + type ApiDocsOperation, + type ApiDocsParameter, + extractDocs, + operations, + tags, +} from '@sentry/api/docs'; import {promises as fs} from 'fs'; -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 = 'c3c65c9cd405d0bab44ee3ddb818437c83151a50'; - const activeEnv = process.env.GATSBY_ENV || process.env.NODE_ENV || 'development'; -async function resolveOpenAPI(): Promise { +// The API reference comes from the pinned `@sentry/api` version. In development, +// OPENAPI_LOCAL_PATH previews a local `make build-api-docs` spec instead. +async function resolveApiDocs(): Promise { if (activeEnv === 'development' && process.env.OPENAPI_LOCAL_PATH) { try { console.log(`Fetching from ${process.env.OPENAPI_LOCAL_PATH}`); const data = await fs.readFile(process.env.OPENAPI_LOCAL_PATH, 'utf8'); - return JSON.parse(data); + return extractDocs(JSON.parse(data)); } catch (error) { console.log( - `Failed to connect to ${process.env.OPENAPI_LOCAL_PATH}. Continuing to fetch versioned schema from GitHub. + `Failed to read ${process.env.OPENAPI_LOCAL_PATH}. Continuing with the API reference from @sentry/api. ${error}` ); } } - const response = await fetch( - `https://raw.githubusercontent.com/getsentry/sentry-api-schema/${SENTRY_API_SCHEMA_SHA}/openapi-derefed.json` - ); - return await response.json(); + return {apiBasePath: API_BASE_PATH, tags, operations}; } export type APIParameter = { - description: string; + description?: string; experimental: boolean; name: string; required: boolean; @@ -61,8 +63,6 @@ type APIResponse = { }; }; -type APIData = DeRefedOpenAPI['paths'][string][string]; - export type API = { apiPath: string; bodyParameters: APIParameter[]; @@ -78,7 +78,8 @@ export type API = { bodyContentType?: string; descriptionMarkdown?: string; requestBodyContent?: any; - security?: {[key: string]: string[]}; + /** Accepted security requirements: each maps a scheme to the scopes it needs. */ + security?: ApiDocsOperation['security']; summary?: string; }; @@ -126,25 +127,6 @@ export function toDocumentedParameter( }; } -const DEFAULT_SERVER = 'https://sentry.io'; -const SERVER_URL = /^([a-z][a-z0-9+.-]*:\/\/[^/]*)(\/.*)?$/i; - -// Sentry's spec puts the API base path, such as `/api/0`, in its server URL, and its -// paths are relative to it. Pages show the origin and the full path after it. -export function apiLocation( - path: string, - specServers: {url: string}[] | undefined, - operationServers: {url: string}[] | undefined -): {apiPath: string; server: string} { - const operationServer = operationServers?.[0]?.url; - const [, origin = DEFAULT_SERVER, basePath = ''] = - SERVER_URL.exec(operationServer ?? specServers?.[0]?.url ?? '') ?? []; - return { - apiPath: `${basePath.replace(/\/+$/, '')}${path}`, - server: operationServer ? origin : DEFAULT_SERVER, - }; -} - function isDeprecatedOperationId(operationId: string | undefined): boolean { return operationId ? DEPRECATED_PREFIX_REGEX.test(operationId) : false; } @@ -164,72 +146,62 @@ export function apiCategories(): Promise { } async function apiCategoriesUncached(): Promise { - const data = await resolveOpenAPI(); + const data = await resolveApiDocs(); const categoryMap: {[name: string]: APICategory} = {}; data.tags.forEach(tag => { categoryMap[tag.name] = { - name: tag['x-sidebar-name'] || tag.name, + name: tag.sidebarName || tag.name, slug: slugify(tag.name), - description: tag['x-display-description'] ? tag.description : undefined, + description: tag.displayDescription ? tag.description : undefined, apis: [], }; }); - Object.entries(data.paths).forEach(([apiPath, methods]) => { - Object.entries(methods).forEach(([method, apiData]) => { - // Detect deprecation from either field independently — the (DEPRECATED) - // marker may sit on operationId even when a summary is present. - const isDeprecated = - isDeprecatedOperationId(apiData.operationId) || - isDeprecatedOperationId(apiData.summary); - const isExperimental = apiData['x-sentry-experimental'] === true; - const titleSource = apiData.summary || apiData.operationId || ''; - const cleanName = stripDeprecatedPrefix(titleSource); - - const location = apiLocation(apiPath, data.servers, apiData.servers); - apiData.tags.forEach(tag => { - categoryMap[tag].apis.push({ - ...location, - method, - name: cleanName, - deprecated: isDeprecated, - experimental: isExperimental, - slug: slugify(cleanName), - summary: apiData.summary - ? stripDeprecatedPrefix(apiData.summary) - : apiData.summary, - descriptionMarkdown: isExperimental - ? apiData.description?.replace(EXPERIMENTAL_NOTICE_REGEX, '') - : apiData.description, - pathParameters: documentedParameters(apiData.parameters, 'path'), - queryParameters: documentedParameters(apiData.parameters, 'query'), - requestBodyContent: { - example: - apiData.requestBody?.content && - Object.values(apiData.requestBody.content)[0].example, - }, - bodyContentType: getBodyContentType(apiData), - bodyParameters: getBodyParameters(apiData), - security: apiData.security, - responses: Object.entries(apiData.responses) - .map(([status_code, response]) => ({ - status_code, - ...response, - })) - .map(response => { - const {content, ...rest} = response; - return { - content: - content && - Object.entries(content).map(([content_type, contentData]) => ({ - content_type, - ...contentData, - }))[0], - ...rest, - }; - }), - }); + data.operations.forEach(operation => { + // Detect deprecation from either field independently — the (DEPRECATED) + // marker may sit on operationId even when a summary is present. + const isDeprecated = + isDeprecatedOperationId(operation.operationId) || + isDeprecatedOperationId(operation.summary); + const isExperimental = operation.experimental; + const titleSource = operation.summary || operation.operationId || ''; + const cleanName = stripDeprecatedPrefix(titleSource); + const description = operation.description || undefined; + + operation.tags.forEach(tag => { + categoryMap[tag].apis.push({ + // Operation paths are relative to the spec's API base path, such as + // `/api/0`; pages show the full path after the origin. + apiPath: `${data.apiBasePath}${operation.path}`, + method: operation.method.toLowerCase(), + name: cleanName, + deprecated: isDeprecated, + experimental: isExperimental, + server: operation.servers[0] ?? 'https://sentry.io', + slug: slugify(cleanName), + summary: operation.summary + ? stripDeprecatedPrefix(operation.summary) + : operation.summary, + descriptionMarkdown: isExperimental + ? description?.replace(EXPERIMENTAL_NOTICE_REGEX, '') + : description, + pathParameters: documentedParameters(operation.parameters, 'path'), + queryParameters: documentedParameters(operation.parameters, 'query'), + requestBodyContent: {example: operation.requestBody?.example}, + bodyContentType: operation.requestBody?.contentType, + bodyParameters: getBodyParameters(operation), + // An operation without requirements has no Scopes section. + security: operation.security.length ? operation.security : undefined, + responses: operation.responses.map( + ({status, description: responseDescription, contentType, ...content}) => ({ + status_code: status, + description: responseDescription, + content: contentType + ? ({content_type: contentType, ...content} as APIResponse['content']) + : undefined, + }) + ), }); }); }); @@ -243,33 +215,31 @@ async function apiCategoriesUncached(): Promise { } function documentedParameters( - parameters: Parameter[] | undefined, + parameters: readonly ApiDocsParameter[], location: 'path' | 'query' ): APIParameter[] { - return (parameters || []) + return parameters .filter(param => param.in === location) - .map(param => { - const documented = toDocumentedParameter(param); - return { - name: documented.name, - description: documented.description, - required: documented.required, - experimental: documented.experimental, - // OpenAPI item schemas are an open record; the page only reads type and enum. - schema: documented.schema as APIParameter['schema'], - }; - }); + .map(param => ({ + name: param.name, + description: param.description, + required: param.required, + experimental: param.experimental, + // OpenAPI item schemas are an open record; the page only reads type and enum. + schema: param.schema as APIParameter['schema'], + })); } -function getBodyParameters(apiData: APIData): APIParameter[] { - const content = apiData.requestBody?.content; - const contentType = content && Object.values(content)[0]; - const properties = contentType?.schema?.properties; +function getBodyParameters(operation: ApiDocsOperation): APIParameter[] { + const schema = operation.requestBody?.schema as + | {properties?: {[name: string]: any}; required?: string[]} + | undefined; + const properties = schema?.properties; if (!properties) { return []; } - const required: string[] = contentType?.schema?.required || []; + const required: string[] = schema?.required || []; return Object.entries(properties).map(([name, props]: [string, any]) => toDocumentedParameter({ @@ -285,12 +255,3 @@ function getBodyParameters(apiData: APIData): APIParameter[] { }) ); } - -function getBodyContentType(apiData: APIData): string | undefined { - const content = apiData.requestBody?.content; - const types = content && Object.keys(content); - if (!types?.length) { - return undefined; - } - return types[0]; -} From 16307c166893fcaae75c470d31635cbc276823d3 Mon Sep 17 00:00:00 2001 From: "sentry-api-schema-updater[bot]" <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 00:31:16 +0000 Subject: [PATCH 109/141] Bump @sentry/api to 2.3.1 (#20811) Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9b03b6059c7e5..af04d8e0fa06d 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", - "@sentry/api": "2.3.0", + "@sentry/api": "2.3.1", "@sentry/browser": "11.6.0", "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 854cdcac78826..03d7a49fd8291 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,8 +103,8 @@ importers: specifier: ^1.3.0 version: 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@sentry/api': - specifier: 2.3.0 - version: 2.3.0(typescript@5.9.3) + specifier: 2.3.1 + version: 2.3.1(typescript@5.9.3) '@sentry/browser': specifier: 11.6.0 version: 11.6.0 @@ -2999,8 +2999,8 @@ packages: react: '>=16' react-dom: '>=16' - '@sentry/api@2.3.0': - resolution: {integrity: sha512-DaFq7/eAVyo11cT7fzDc0NVhAsUjhP9S8hRJIi4K1UKLe7rrViyvXCmtonnoBJKTY9I1r8G5LgeGUsB7CawDsw==} + '@sentry/api@2.3.1': + resolution: {integrity: sha512-//5FaY4MXwnfaekAALkf0ab20lcar/Wb0SlrcrhGQKJ3Vn0IjYADl4V8f8ixE1k/qquujZc+r/+b15qGOTbTzQ==} engines: {node: '>=22'} peerDependencies: typescript: '*' @@ -3255,6 +3255,9 @@ packages: '@smithy/smithy-client@4.12.7': resolution: {integrity: sha512-q3gqnwml60G44FECaEEsdQMplYhDMZYCtYhMCzadCnRnnHIobZJjegmdoUo6ieLQlPUzvrMdIJUpx6DoPmzANQ==} engines: {node: '>=18.0.0'} + deprecated: |- + Deprecated due to a bug in custom logger data redaction. Upgrade to the latest version. If you used a custom logger with + this version, review your logs and rotate any credentials or other secrets. See https://github.com/aws/aws-sdk-js-v3/issues/8393. '@smithy/types@4.13.1': resolution: {integrity: sha512-787F3yzE2UiJIQ+wYW1CVg2odHjmaWLGksnKQHUrK/lYZSEcy1msuLVvxaR/sI2/aDe9U+TBuLsXnr3vod1g0g==} @@ -10397,7 +10400,7 @@ snapshots: react-dom: 19.2.4(react@19.2.4) title-case: 3.0.3 - '@sentry/api@2.3.0(typescript@5.9.3)': + '@sentry/api@2.3.1(typescript@5.9.3)': dependencies: http-cache-semantics: 4.3.0 p-limit: 7.3.3 From ee97b7255a870c9e8eddfe91ecb71a7776a13455 Mon Sep 17 00:00:00 2001 From: "sentry-api-schema-updater[bot]" <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 00:39:15 +0000 Subject: [PATCH 110/141] Bump @sentry/api to 2.3.2 (#20812) Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index af04d8e0fa06d..432ee13b7b46a 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", - "@sentry/api": "2.3.1", + "@sentry/api": "2.3.2", "@sentry/browser": "11.6.0", "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 03d7a49fd8291..62509731ac52c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,8 +103,8 @@ importers: specifier: ^1.3.0 version: 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@sentry/api': - specifier: 2.3.1 - version: 2.3.1(typescript@5.9.3) + specifier: 2.3.2 + version: 2.3.2(typescript@5.9.3) '@sentry/browser': specifier: 11.6.0 version: 11.6.0 @@ -2999,8 +2999,8 @@ packages: react: '>=16' react-dom: '>=16' - '@sentry/api@2.3.1': - resolution: {integrity: sha512-//5FaY4MXwnfaekAALkf0ab20lcar/Wb0SlrcrhGQKJ3Vn0IjYADl4V8f8ixE1k/qquujZc+r/+b15qGOTbTzQ==} + '@sentry/api@2.3.2': + resolution: {integrity: sha512-YgaUpZBjUa5+99Gh2wt+ua+mm783cPWWm5lmE7qy7Q5ZBqP210oXu/FEExaRDLpsT7cuUtMW/YOGhqWba9Io3w==} engines: {node: '>=22'} peerDependencies: typescript: '*' @@ -10400,7 +10400,7 @@ snapshots: react-dom: 19.2.4(react@19.2.4) title-case: 3.0.3 - '@sentry/api@2.3.1(typescript@5.9.3)': + '@sentry/api@2.3.2(typescript@5.9.3)': dependencies: http-cache-semantics: 4.3.0 p-limit: 7.3.3 From 282c045f37075bbdbf6363600a44374b0c1276df Mon Sep 17 00:00:00 2001 From: "sentry-api-schema-updater[bot]" <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 02:24:48 +0000 Subject: [PATCH 111/141] Bump @sentry/api to 2.4.0 (#20813) Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 432ee13b7b46a..16489a45c95e4 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", - "@sentry/api": "2.3.2", + "@sentry/api": "2.4.0", "@sentry/browser": "11.6.0", "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62509731ac52c..f4250f4185f8c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,8 +103,8 @@ importers: specifier: ^1.3.0 version: 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@sentry/api': - specifier: 2.3.2 - version: 2.3.2(typescript@5.9.3) + specifier: 2.4.0 + version: 2.4.0(typescript@5.9.3) '@sentry/browser': specifier: 11.6.0 version: 11.6.0 @@ -2999,8 +2999,8 @@ packages: react: '>=16' react-dom: '>=16' - '@sentry/api@2.3.2': - resolution: {integrity: sha512-YgaUpZBjUa5+99Gh2wt+ua+mm783cPWWm5lmE7qy7Q5ZBqP210oXu/FEExaRDLpsT7cuUtMW/YOGhqWba9Io3w==} + '@sentry/api@2.4.0': + resolution: {integrity: sha512-2khGzyr9fIimUQsmplqVe9xOLeKrWqJEW6CusMx4LI6d69O91KzSZmR7OkpHlyMySTFkQX6VsH0PzrRuVgb01A==} engines: {node: '>=22'} peerDependencies: typescript: '*' @@ -10400,7 +10400,7 @@ snapshots: react-dom: 19.2.4(react@19.2.4) title-case: 3.0.3 - '@sentry/api@2.3.2(typescript@5.9.3)': + '@sentry/api@2.4.0(typescript@5.9.3)': dependencies: http-cache-semantics: 4.3.0 p-limit: 7.3.3 From 79c1e156b70148acd5b7c94cb973ab8a5a6e8e47 Mon Sep 17 00:00:00 2001 From: "sentry-api-schema-updater[bot]" <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 16:22:22 +0000 Subject: [PATCH 112/141] Bump @sentry/api to 2.5.0 (#20815) Co-authored-by: sentry-api-schema-updater[bot] <271575301+sentry-api-schema-updater[bot]@users.noreply.github.com> --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 16489a45c95e4..cdfb8086a547e 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "@radix-ui/react-tooltip": "^1.1.4", "@radix-ui/themes": "^3.1.3", "@sentry-internal/global-search": "^1.3.0", - "@sentry/api": "2.4.0", + "@sentry/api": "2.5.0", "@sentry/browser": "11.6.0", "@sentry/conventions": "^0.33.0", "@sentry/nextjs": "11.6.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f4250f4185f8c..63aceec93eae3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,8 +103,8 @@ importers: specifier: ^1.3.0 version: 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4) '@sentry/api': - specifier: 2.4.0 - version: 2.4.0(typescript@5.9.3) + specifier: 2.5.0 + version: 2.5.0(typescript@5.9.3) '@sentry/browser': specifier: 11.6.0 version: 11.6.0 @@ -2999,8 +2999,8 @@ packages: react: '>=16' react-dom: '>=16' - '@sentry/api@2.4.0': - resolution: {integrity: sha512-2khGzyr9fIimUQsmplqVe9xOLeKrWqJEW6CusMx4LI6d69O91KzSZmR7OkpHlyMySTFkQX6VsH0PzrRuVgb01A==} + '@sentry/api@2.5.0': + resolution: {integrity: sha512-JDokotWIrsNu5CqmcQTxdt9EWj3cDGf2dqHms/Hmfzf7iY0LIcCTlq/a9m0P5+6/SDR175kIU2JDx7Bmq4Bljw==} engines: {node: '>=22'} peerDependencies: typescript: '*' @@ -10400,7 +10400,7 @@ snapshots: react-dom: 19.2.4(react@19.2.4) title-case: 3.0.3 - '@sentry/api@2.4.0(typescript@5.9.3)': + '@sentry/api@2.5.0(typescript@5.9.3)': dependencies: http-cache-semantics: 4.3.0 p-limit: 7.3.3 From ea3e2accbf10f2398d9bd51f878111a0dadf0827 Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Sat, 14 Nov 2026 19:40:50 +0000 Subject: [PATCH 113/141] ci(api-docs): Wait for the new @sentry/api version on dispatched bumps (#20816) ## DESCRIBE YOUR PR getsentry/sentry's `bump-sentry-docs.yml` dispatches "Bump @sentry/api" as soon as an `api@` GitHub release is published. Craft publishes to npm first, but npm says a new version "may take a few minutes to become available", so `npm view` can still return the old version. When that happens, the dispatched run skips and the bump waits for the next hourly run. `scripts/bump-sentry-api.sh` now retries on `workflow_dispatch` runs. While npm still returns the pinned version, it checks again every 30 seconds, up to 20 times (about 10 minutes), and then prints the existing "already X, skipping." message. Scheduled runs still check once. If npm fails or returns something that isn't a version, the script still exits with an error before it touches git, pnpm or gh. The job has no `timeout-minutes`, so the extra 10 minutes stays well inside the default limit. ## 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 @BYK. -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@users.noreply.github.com> --- scripts/bump-sentry-api.sh | 49 ++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 12 deletions(-) diff --git a/scripts/bump-sentry-api.sh b/scripts/bump-sentry-api.sh index 4b48d0ac151b2..0c5f6b0f80b5b 100755 --- a/scripts/bump-sentry-api.sh +++ b/scripts/bump-sentry-api.sh @@ -3,25 +3,50 @@ # release, then open and merge a PR for it. # # Environment: -# GITHUB_TOKEN A token that can push branches and merge PRs. A GitHub App -# token, unlike github.token, also starts CI on the new PR. +# GITHUB_TOKEN A token that can push branches and merge PRs. A GitHub +# App token, unlike github.token, also starts CI on the +# new PR. +# GITHUB_EVENT_NAME Set by GitHub Actions. getsentry/sentry dispatches this +# workflow right after it publishes a release, and npm can +# take a few minutes to serve it, so a dispatched run +# waits for a new version before it gives up. set -eu package=@sentry/api +# A dispatched run checks npm up to this many times, this many seconds apart. +dispatch_attempts=20 +dispatch_delay=30 -latest=$(timeout 60 npm view "$package" version) -case $latest in - '' | *[!0-9.]*) - echo "::error::Expected a release version of $package from npm, got: $latest" - exit 1 - ;; -esac +latest_version() { + version=$(timeout 60 npm view "$package" version) || return 1 + case $version in + '' | *[!0-9.]*) + echo "::error::Expected a release version of $package from npm, got: $version" >&2 + return 1 + ;; + esac + printf '%s\n' "$version" +} current=$(node -p 'require("./package.json").dependencies[process.argv[1]]' "$package") -if [ "$current" = "$latest" ]; then - echo "$package is already $latest, skipping." - exit 0 +attempts=1 +if [ "${GITHUB_EVENT_NAME:-}" = workflow_dispatch ]; then + attempts=$dispatch_attempts fi +attempt=1 +while :; do + latest=$(latest_version) + if [ "$current" != "$latest" ]; then + break + fi + if [ "$attempt" -ge "$attempts" ]; then + echo "$package is already $latest, skipping." + exit 0 + fi + echo "npm still has $package $latest; checking again in ${dispatch_delay}s ($attempt of $attempts)." + attempt=$((attempt + 1)) + sleep "$dispatch_delay" +done echo "Bumping $package from $current to $latest" timeout 600 pnpm add --save-exact --lockfile-only "$package@$latest" From 4f2e2d577e48905d8fdd8523754d51808d05970e Mon Sep 17 00:00:00 2001 From: Ricardo Colombo Oliveira Date: Mon, 16 Nov 2026 00:37:13 +0100 Subject: [PATCH 114/141] docs(dotnet): Update docs for SDK 7.0.0 (#20641) ## DESCRIBE YOUR PR This updates the .NET docs for sentry-dotnet 7.0.0, which has been on NuGet since 2026-11-12. Each change was reviewed in its own PR against the `dotnet-v7` branch, so the 7.x docs go live together: - #20311 docs(dotnet): Add a Generic Host guide for SDK 7.0.0 - #20642 docs(dotnet): Add supported versions to the MAUI guide for SDK 7.0.0 - #19960 docs(dotnet): Document release and environment resolution for SDK 7.0.0 - #19961 docs(dotnet): Update Microsoft.Extensions.Logging guide for SDK 7.0.0 - #19924 docs(dotnet): Update OTLP propagation docs for SDK 7.0.0 - #19925 docs(dotnet): Update logging docs for SDK 7.0.0 - #20715 docs(dotnet): Document ClearProviders() in the ASP.NET Core guide for SDK 7.0.0 - #20752 docs(dotnet): Tell .NET Framework apps to install Microsoft.Extensions.Logging for SDK 7.0.0 - #20743 docs(dotnet): Document NLog's MinimumLogLevel for SDK 7.0.0 - #20742 docs(dotnet): Link the Generic Host guide from the other .NET pages for SDK 7.0.0 - #20689 docs(dotnet): Update the 7.x migration guide for 7.0.0 - #20780 docs(dotnet): Fix Serilog flushing, Serilog usings and the Azure Functions package for SDK 7.0.0 - #20781 docs(dotnet): Fix the .NET logs and metrics examples and other pages for SDK 7.0.0 ### Issues this closes Closes getsentry/sentry-dotnet#5710 The other docs issues for 7.0.0 were closed when their PRs merged into `dotnet-v7`. ### Before merging - [x] sentry-dotnet 7.0.0 is on NuGet. - [x] The release candidate alert is gone from `includes/dotnet-v7-migration-overview.mdx`. - [x] The links that #20311, #19961 and #19925 left for after the other PRs merge are in. - [x] `master` is merged into `dotnet-v7`, and the Vercel preview looks right. - [x] This description has a `Closes` line for every issue that's still open. ## 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-13 - [ ] Other deadline: YYYY-MM-DD - [ ] No deadline: Not urgent, can wait up to 1 week+ --------- Co-authored-by: Claude Opus 5.5 Co-authored-by: James Crosswell Co-authored-by: ric-oliv Co-authored-by: ric-oliv <5938598+ric-oliv@users.noreply.github.com> Co-authored-by: Alex Krawiec --- docs/get-started/guides/logs.mdx | 138 ++++--- docs/get-started/guides/metrics.mdx | 105 +++--- .../dotnet/common/configuration/options.mdx | 36 +- .../common/migration/v6-to-v7/index.mdx | 4 + .../instrumentation/opentelemetry-otlp.mdx | 55 ++- docs/platforms/dotnet/guides/aspnet/index.mdx | 12 +- .../dotnet/guides/aspnetcore/index.mdx | 17 +- .../guides/azure-functions-worker/index.mdx | 44 ++- .../guides/blazor-webassembly/index.mdx | 6 +- .../guides/extensions-hosting/index.mdx | 342 ++++++++++++++++++ .../guides/extensions-logging/index.mdx | 154 ++++---- .../platforms/dotnet/guides/log4net/index.mdx | 82 +++-- docs/platforms/dotnet/guides/maui/index.mdx | 23 +- .../advanced-configuration-example.mdx | 68 ++-- docs/platforms/dotnet/guides/nlog/index.mdx | 153 ++++---- .../platforms/dotnet/guides/serilog/index.mdx | 102 ++++-- docs/product/logs/getting-started/index.mdx | 6 + .../product/metrics/getting-started/index.mdx | 6 + includes/dotnet-usesentry-logging/log4net.mdx | 10 + includes/dotnet-usesentry-logging/nlog.mdx | 19 + includes/dotnet-usesentry-logging/serilog.mdx | 15 + includes/dotnet-v7-migration-overview.mdx | 10 +- ...all-usesentry-on-webapplicationbuilder.mdx | 4 +- ...o-longer-filter-breadcrumbs-and-events.mdx | 44 +++ ...ablelogs-is-removed-from-sentryoptions.mdx | 2 +- .../generic-host-apps-call-usesentry.mdx | 4 +- ...tegrations-no-longer-initialize-sentry.mdx | 2 +- .../logging-integrations-send-logs.mdx | 4 +- ...ve-sdk-settings-out-of-the-nlog-target.mdx | 2 +- .../other-removed-and-internal-apis.mdx | 13 +- .../supported-net-versions-and-platforms.mdx | 4 + .../config-intro/dotnet.aspnetcore.mdx | 31 -- .../dotnet.azure-functions-worker.mdx | 26 ++ .../dotnet.extensions-hosting.mdx | 35 ++ .../config-intro/dotnet.nlog.mdx | 87 ----- .../enriching-events/set-tag/dotnet.nlog.mdx | 4 +- .../enriching-events/set-user/dotnet.nlog.mdx | 6 +- .../logs/integrations/dotnet.mdx | 1 + platform-includes/logs/options/dotnet.mdx | 46 ++- .../logs/requirements/dotnet.mdx | 6 +- platform-includes/logs/setup/dotnet.mdx | 145 ++++++-- platform-includes/logs/usage/dotnet.mdx | 14 +- platform-includes/metrics/options/dotnet.mdx | 2 +- .../opentelemetry-install/dotnet.mdx | 2 +- platform-includes/set-environment/dotnet.mdx | 20 + .../set-environment/dotnet.nlog.mdx | 40 -- platform-includes/set-release/dotnet.mdx | 12 +- platform-includes/set-release/dotnet.nlog.mdx | 46 --- 48 files changed, 1313 insertions(+), 696 deletions(-) create mode 100644 docs/platforms/dotnet/guides/extensions-hosting/index.mdx create mode 100644 includes/dotnet-usesentry-logging/log4net.mdx create mode 100644 includes/dotnet-usesentry-logging/nlog.mdx create mode 100644 includes/dotnet-usesentry-logging/serilog.mdx create mode 100644 includes/migration/dotnet-v7/category-log-levels-no-longer-filter-breadcrumbs-and-events.mdx create mode 100644 platform-includes/configuration/config-intro/dotnet.azure-functions-worker.mdx create mode 100644 platform-includes/configuration/config-intro/dotnet.extensions-hosting.mdx delete mode 100644 platform-includes/configuration/config-intro/dotnet.nlog.mdx delete mode 100644 platform-includes/set-environment/dotnet.nlog.mdx delete mode 100644 platform-includes/set-release/dotnet.nlog.mdx diff --git a/docs/get-started/guides/logs.mdx b/docs/get-started/guides/logs.mdx index 4040c6ee31049..bd0d8b3934674 100644 --- a/docs/get-started/guides/logs.mdx +++ b/docs/get-started/guides/logs.mdx @@ -26,7 +26,7 @@ sentry_sdk.logger.(message, attribute=value) ```csharp {tabTitle: .NET} using Sentry; -SentrySdk.Logger.(message); +SentrySdk.Logger.Log(message); ``` ```ruby {tabTitle: Ruby} @@ -48,7 +48,7 @@ import io.sentry.Sentry Sentry.logger().(message) ``` -**Levels:** `trace`, `debug`, `info`, `warn` (or `warning` in Python), `error`, `fatal` +**Levels:** `trace`, `debug`, `info`, `warn` (or `warning` in Python and .NET), `error`, `fatal` **Attributes:** Key-value pairs you can search and filter on. Consistency matters, so use whatever naming convention fits your codebase. @@ -82,11 +82,13 @@ sentry_sdk.logger.info("Order completed", ```csharp {tabTitle: .NET} using Sentry; -SentrySdk.Logger.Info("Order completed", logger => logger - .SetAttribute("orderId", "order_123") - .SetAttribute("userId", user.Id) - .SetAttribute("amount", 149.99) - .SetAttribute("paymentMethod", "stripe")); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("orderId", "order_123"); + log.SetAttribute("userId", user.Id); + log.SetAttribute("amount", 149.99); + log.SetAttribute("paymentMethod", "stripe"); +}, "Order completed"); ``` ```ruby {tabTitle: Ruby} @@ -187,16 +189,20 @@ sentry_sdk.logger.warning("Login failed", ```csharp {tabTitle: .NET} // After successful authentication -SentrySdk.Logger.Info("User logged in", logger => logger - .SetAttribute("userId", user.Id) - .SetAttribute("authMethod", "oauth") - .SetAttribute("provider", "google")); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("userId", user.Id); + log.SetAttribute("authMethod", "oauth"); + log.SetAttribute("provider", "google"); +}, "User logged in"); // After authentication fails -SentrySdk.Logger.Warning("Login failed", logger => logger - .SetAttribute("email", maskedEmail) - .SetAttribute("reason", "invalid_password") - .SetAttribute("attemptCount", 3)); +SentrySdk.Logger.LogWarning(log => +{ + log.SetAttribute("email", maskedEmail); + log.SetAttribute("reason", "invalid_password"); + log.SetAttribute("attemptCount", 3); +}, "Login failed"); ``` ```ruby {tabTitle: Ruby} @@ -306,12 +312,14 @@ sentry_sdk.logger.error("Payment failed", ```csharp {tabTitle: .NET} // After payment gateway returns an error -SentrySdk.Logger.Error("Payment failed", logger => logger - .SetAttribute("orderId", "order_123") - .SetAttribute("amount", 99.99) - .SetAttribute("gateway", "stripe") - .SetAttribute("errorCode", "card_declined") - .SetAttribute("cartItems", 3)); +SentrySdk.Logger.LogError(log => +{ + log.SetAttribute("orderId", "order_123"); + log.SetAttribute("amount", 99.99); + log.SetAttribute("gateway", "stripe"); + log.SetAttribute("errorCode", "card_declined"); + log.SetAttribute("cartItems", 3); +}, "Payment failed"); ``` ```ruby {tabTitle: Ruby} @@ -435,17 +443,21 @@ $response = $shippingApi->getRates($items); var stopwatch = Stopwatch.StartNew(); var response = await shippingApi.GetRatesAsync(items); -SentrySdk.Logger.Info("Shipping rates fetched", logger => logger - .SetAttribute("service", "shipping-provider") - .SetAttribute("endpoint", "/rates") - .SetAttribute("durationMs", stopwatch.ElapsedMilliseconds) - .SetAttribute("rateCount", response.Rates.Count)); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("service", "shipping-provider"); + log.SetAttribute("endpoint", "/rates"); + log.SetAttribute("durationMs", stopwatch.ElapsedMilliseconds); + log.SetAttribute("rateCount", response.Rates.Count); +}, "Shipping rates fetched"); // Webhook received -SentrySdk.Logger.Info("Webhook received", logger => logger - .SetAttribute("source", "stripe") - .SetAttribute("eventType", "payment_intent.succeeded") - .SetAttribute("paymentId", eventData.Object.Id)); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("source", "stripe"); + log.SetAttribute("eventType", "payment_intent.succeeded"); + log.SetAttribute("paymentId", eventData.Object.Id); +}, "Webhook received"); ``` ```ruby {tabTitle: Ruby} @@ -587,16 +599,20 @@ sentry_sdk.logger.error("Job failed", ```csharp {tabTitle: .NET} // Inside background job handler -SentrySdk.Logger.Info("Job started", logger => logger - .SetAttribute("jobType", "email-digest") - .SetAttribute("jobId", "job_456") - .SetAttribute("queue", "notifications")); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("jobType", "email-digest"); + log.SetAttribute("jobId", "job_456"); + log.SetAttribute("queue", "notifications"); +}, "Job started"); -SentrySdk.Logger.Error("Job failed", logger => logger - .SetAttribute("jobType", "email-digest") - .SetAttribute("jobId", "job_456") - .SetAttribute("retryCount", 3) - .SetAttribute("lastError", "SMTP timeout")); +SentrySdk.Logger.LogError(log => +{ + log.SetAttribute("jobType", "email-digest"); + log.SetAttribute("jobId", "job_456"); + log.SetAttribute("retryCount", 3); + log.SetAttribute("lastError", "SMTP timeout"); +}, "Job failed"); ``` ```ruby {tabTitle: Ruby} @@ -716,14 +732,18 @@ sentry_sdk.logger.warning("Config reloaded", ```csharp {tabTitle: .NET} // When feature flag is checked or config changes -SentrySdk.Logger.Info("Feature flag evaluated", logger => logger - .SetAttribute("flag", "new-checkout-flow") - .SetAttribute("enabled", true) - .SetAttribute("userId", user.Id)); +SentrySdk.Logger.LogInfo(log => +{ + log.SetAttribute("flag", "new-checkout-flow"); + log.SetAttribute("enabled", true); + log.SetAttribute("userId", user.Id); +}, "Feature flag evaluated"); -SentrySdk.Logger.Warning("Config reloaded", logger => logger - .SetAttribute("reason", "env-change") - .SetAttribute("changedKeys", new[] { "API_TIMEOUT", "MAX_CONNECTIONS" })); +SentrySdk.Logger.LogWarning(log => +{ + log.SetAttribute("reason", "env-change"); + log.SetAttribute("changedKeys", "API_TIMEOUT,MAX_CONNECTIONS"); +}, "Config reloaded"); ``` ```ruby {tabTitle: Ruby} @@ -842,7 +862,6 @@ SentrySdk.Init(options => options.Dsn = "..."; options.Environment = "development"; options.TracesSampleRate = 1.0; // 100% of traces - options.EnableLogs = true; }); ``` @@ -918,9 +937,9 @@ sentry_sdk.logger.error("Payment failed", reason="Insufficient Funds") ``` ```csharp {tabTitle: .NET} -SentrySdk.Logger.Info("Checkout started", l => l.SetAttribute("userId", "882")); -SentrySdk.Logger.Info("Discount applied", l => l.SetAttribute("code", "WINTER20")); -SentrySdk.Logger.Error("Payment failed", l => l.SetAttribute("reason", "Insufficient Funds")); +SentrySdk.Logger.LogInfo(log => log.SetAttribute("userId", "882"), "Checkout started"); +SentrySdk.Logger.LogInfo(log => log.SetAttribute("code", "WINTER20"), "Discount applied"); +SentrySdk.Logger.LogError(log => log.SetAttribute("reason", "Insufficient Funds"), "Payment failed"); ``` ```ruby {tabTitle: Ruby} @@ -988,14 +1007,16 @@ sentry_sdk.logger.error("Checkout failed", ``` ```csharp {tabTitle: .NET} -SentrySdk.Logger.Error("Checkout failed", logger => logger - .SetAttribute("userId", "882") - .SetAttribute("orderId", "order_pc_991") - .SetAttribute("cartTotal", 142.50) - .SetAttribute("discountCode", "WINTER20") - .SetAttribute("paymentMethod", "stripe") - .SetAttribute("errorReason", "Insufficient Funds") - .SetAttribute("itemCount", 4)); +SentrySdk.Logger.LogError(log => +{ + log.SetAttribute("userId", "882"); + log.SetAttribute("orderId", "order_pc_991"); + log.SetAttribute("cartTotal", 142.50); + log.SetAttribute("discountCode", "WINTER20"); + log.SetAttribute("paymentMethod", "stripe"); + log.SetAttribute("errorReason", "Insufficient Funds"); + log.SetAttribute("itemCount", 4); +}, "Checkout failed"); ``` ```ruby {tabTitle: Ruby} @@ -1087,4 +1108,3 @@ To pipe Supabase infrastructure logs into Sentry and alert on them, see [Set up ## Next Steps Explore the [Logs product walkthrough guides](/product/logs/) to learn more about the Sentry interface and discover additional tips. - diff --git a/docs/get-started/guides/metrics.mdx b/docs/get-started/guides/metrics.mdx index 78a102a3c46ec..ae464b75c6a27 100644 --- a/docs/get-started/guides/metrics.mdx +++ b/docs/get-started/guides/metrics.mdx @@ -46,10 +46,11 @@ sentry_sdk.metrics.count("checkout.failed", 1, attributes={ ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Counter("checkout.failed") - .Tag("user_tier", "premium") - .Tag("failure_reason", "payment_declined") - .Increment(); +SentrySdk.Metrics.EmitCounter("checkout.failed", 1, new Dictionary +{ + ["user_tier"] = "premium", + ["failure_reason"] = "payment_declined", +}); ``` ```ruby {tabTitle: Ruby} @@ -121,15 +122,17 @@ sentry_sdk.metrics.count("checkout.failed", 1, attributes={ ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Counter("checkout.completed") - .Tag("user_tier", "premium") - .Tag("payment_method", "card") - .Increment(); +SentrySdk.Metrics.EmitCounter("checkout.completed", 1, new Dictionary +{ + ["user_tier"] = "premium", + ["payment_method"] = "card", +}); -SentrySdk.Metrics.Counter("checkout.failed") - .Tag("user_tier", "premium") - .Tag("failure_reason", "payment_declined") - .Increment(); +SentrySdk.Metrics.EmitCounter("checkout.failed", 1, new Dictionary +{ + ["user_tier"] = "premium", + ["failure_reason"] = "payment_declined", +}); ``` ```ruby {tabTitle: Ruby} @@ -229,20 +232,23 @@ sentry_sdk.metrics.count("job.processed", 1, attributes={ ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Counter("email.sent") - .Tag("email_type", "welcome") - .Tag("provider", "sendgrid") - .Increment(); +SentrySdk.Metrics.EmitCounter("email.sent", 1, new Dictionary +{ + ["email_type"] = "welcome", + ["provider"] = "sendgrid", +}); -SentrySdk.Metrics.Counter("email.failed") - .Tag("email_type", "welcome") - .Tag("error", "rate_limited") - .Increment(); +SentrySdk.Metrics.EmitCounter("email.failed", 1, new Dictionary +{ + ["email_type"] = "welcome", + ["error"] = "rate_limited", +}); -SentrySdk.Metrics.Counter("job.processed") - .Tag("job_type", "invoice-generation") - .Tag("queue", "billing") - .Increment(); +SentrySdk.Metrics.EmitCounter("job.processed", 1, new Dictionary +{ + ["job_type"] = "invoice-generation", + ["queue"] = "billing", +}); ``` ```ruby {tabTitle: Ruby} @@ -341,13 +347,15 @@ use \Sentry\Metrics\Unit; ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Gauge("queue.depth") - .Tag("queue_name", "notifications") - .Set(queue.Size); +SentrySdk.Metrics.EmitGauge("queue.depth", queue.Size, MeasurementUnit.None, new Dictionary +{ + ["queue_name"] = "notifications", +}); -SentrySdk.Metrics.Gauge("pool.connections_active") - .Tag("pool_name", "postgres-primary") - .Set(pool.ActiveConnections); +SentrySdk.Metrics.EmitGauge("pool.connections_active", pool.ActiveConnections, MeasurementUnit.None, new Dictionary +{ + ["pool_name"] = "postgres-primary", +}); ``` ```ruby {tabTitle: Ruby} @@ -436,15 +444,17 @@ use \Sentry\Metrics\Unit; ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Distribution("api.latency", responseTimeMs, - unit: MeasurementUnit.Duration.Millisecond) - .Tag("endpoint", "/api/orders") - .Tag("method", "POST"); +SentrySdk.Metrics.EmitDistribution("api.latency", responseTimeMs, MeasurementUnit.Duration.Millisecond, new Dictionary +{ + ["endpoint"] = "/api/orders", + ["method"] = "POST", +}); -SentrySdk.Metrics.Distribution("db.query_time", queryDurationMs, - unit: MeasurementUnit.Duration.Millisecond) - .Tag("table", "orders") - .Tag("operation", "select"); +SentrySdk.Metrics.EmitDistribution("db.query_time", queryDurationMs, MeasurementUnit.Duration.Millisecond, new Dictionary +{ + ["table"] = "orders", + ["operation"] = "select", +}); ``` ```ruby {tabTitle: Ruby} @@ -543,15 +553,17 @@ use \Sentry\Metrics\Unit; ``` ```csharp {tabTitle: .NET} -SentrySdk.Metrics.Distribution("order.amount", order.TotalUsd, - unit: MeasurementUnit.Custom("usd")) - .Tag("user_tier", "premium") - .Tag("region", "us-west"); +SentrySdk.Metrics.EmitDistribution("order.amount", (double)order.TotalUsd, MeasurementUnit.Custom("usd"), new Dictionary +{ + ["user_tier"] = "premium", + ["region"] = "us-west", +}); -SentrySdk.Metrics.Distribution("upload.size", fileSizeBytes, - unit: MeasurementUnit.Information.Byte) - .Tag("file_type", "image") - .Tag("source", "profile-update"); +SentrySdk.Metrics.EmitDistribution("upload.size", fileSizeBytes, MeasurementUnit.Information.Byte, new Dictionary +{ + ["file_type"] = "image", + ["source"] = "profile-update", +}); ``` ```ruby {tabTitle: Ruby} @@ -637,4 +649,3 @@ You can also [create dashboards with an AI coding agent](https://sentry.io/cookb All three are trace-connected. Start wherever makes sense and navigate to the others. Explore the [Application Metrics product walkthrough](/product/metrics/) to learn more about the Sentry interface and discover additional tips. - diff --git a/docs/platforms/dotnet/common/configuration/options.mdx b/docs/platforms/dotnet/common/configuration/options.mdx index 93cc6b25e6fec..20a4e356a7740 100644 --- a/docs/platforms/dotnet/common/configuration/options.mdx +++ b/docs/platforms/dotnet/common/configuration/options.mdx @@ -111,17 +111,32 @@ Sets the distribution of the application. Distributions are used to disambiguate Sets the release. The SDK will try to automatically configure a release out of the box but it's a better idea to manually set it to guarantee that the release is in sync with your deploy integrations or source map uploads. Release names are strings, but some formats are detected by Sentry and might be rendered differently. Learn more about how to send release data so Sentry can tell you about regressions between releases and identify the potential source in [the releases documentation](/product/releases/) or the sandbox. -By default the SDK will try to read this value from the `SENTRY_RELEASE` environment variable (in the browser SDK, this will be read off of the `window.SENTRY_RELEASE.id` if available). +If you don't set it, the SDK reads the `SENTRY_RELEASE` environment variable. If that isn't set either, the SDK uses the app package's version on Android, iOS and Mac Catalyst, and the entry assembly's version on other platforms. Setting a Release describes the format. + + + +In earlier versions, the release from the app package took precedence over `SENTRY_RELEASE`. + + - + Sets the environment. This string is freeform and set by default. A release can be associated with more than one environment to separate them in the UI (think `staging` vs `prod` or similar). -By default, the SDK reports `debug` when the debugger is attached. Otherwise, the default environment is `production`. +If you don't set it in code or configuration, the SDK reads the `SENTRY_ENVIRONMENT` environment variable. If that isn't set either: + +- ASP.NET Core, Blazor WebAssembly, Google Cloud Functions and [.NET Generic Host](/platforms/dotnet/guides/extensions-hosting/) apps (such as worker services) use the .NET host environment. The SDK lowercases `Production`, `Staging` and `Development` (for consistency with other Sentry SDKs), and keeps other names as they are. Set `AdjustStandardEnvironmentNameCasing` to `false` to keep the original casing. +- Other apps, such as console, MAUI and desktop apps, report `debug` when a debugger is attached, and `production` otherwise. So do ASP.NET Core and Generic Host apps that start Sentry with `SentrySdk.Init` instead of `UseSentry`. + +Setting `Scope.Environment` overrides the environment for everything captured with that scope: events, transactions, logs, metrics, sessions, check-ins and trace propagation. Set it to `null` to go back to the default. Sessions and traces use the environment from when they start, so changes to `Scope.Environment` don't affect a session or trace that's already running. -Additionally, if you are running with the ASP.NET Core integration, you will also see the environment named as `staging`, if running in staging, or `development`, if running in development mode. + + +In earlier versions, `Scope.Environment` applied only to events and transactions. + + @@ -387,7 +402,7 @@ A function responsible for determining the percentage chance a given transaction - + HTTP status codes that shouldn't be traced. When an incoming request results in one of these status codes, the SDK doesn't send its transaction to Sentry. Outgoing `HttpClient` requests aren't affected. @@ -405,8 +420,15 @@ Starting with version 7.0.0, the default is `301`, `305–399`, and `401–404`, options.TraceIgnoreStatusCodes.Clear(); ``` -In ASP.NET Core, you can also set this option in the `Sentry` section of `appsettings.json`. The configured list replaces the default and only takes single status codes, not ranges: - +In ASP.NET Core, you can also set this option in the `Sentry` section of `appsettings.json`. The configured list replaces the default and only takes single status codes, not ranges: + +```json {filename:appsettings.json} +{ + "Sentry": { + "TraceIgnoreStatusCodes": [404, 429] + } +} +``` diff --git a/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx b/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx index 1e14ccb57b112..5bf6354d61167 100644 --- a/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx +++ b/docs/platforms/dotnet/common/migration/v6-to-v7/index.mdx @@ -74,6 +74,10 @@ The [Interactive 7.x Migration Guide](./interactive/) lets you check off complet +### Category Log Levels No Longer Filter Breadcrumbs and Events + + + ### Logging Frameworks No Longer Close Sentry diff --git a/docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry-otlp.mdx b/docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry-otlp.mdx index d502c3171ef3d..7f10623335e07 100644 --- a/docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry-otlp.mdx +++ b/docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry-otlp.mdx @@ -67,19 +67,56 @@ SentrySdk.Init(options => Under the hood, the OTLP exporter sets up the following parts: -* An OTLP exporter that automatically configures the ingestion endpoint from your Sentry DSN. This enables tracing in Sentry. **Note:** _Do not_ also set up tracing via the Sentry SDK (i.e. do not set `TracesSampleRate`). -* A `SentryPropagator` that injects `sentry-trace` and `baggage` headers alongside the standard W3C `traceparent` for compatibility with services using Sentry's native tracing +* An OTLP exporter that automatically configures the ingestion endpoint from your Sentry DSN. This enables tracing in Sentry. * Trace/Span linking for all other Sentry events such as Errors, Logs, and Metrics - +Calling `UseOtlp()` on `SentryOptions` turns off Sentry's automatic span creation from `SentryHttpMessageHandler`, `DiagnosticSource` listener, and Entity Framework interception to avoid duplicate spans. -The automatic propagator setup will be removed in the next major version. Configure propagators manually using the [OpenTelemetry propagation API](https://opentelemetry.io/docs/concepts/context-propagation/) instead. +## Sampling + +Because Sentry doesn't create transactions of its own when you call `UseOtlp()`, `TracesSampleRate` and `TracesSampler` have no effect. OpenTelemetry decides which spans are exported, so configure sampling on the `TracerProvider` instead: + +```csharp +using var tracerProvider = Sdk.CreateTracerProviderBuilder() + .AddSource("MyApp") + .SetSampler(new ParentBasedSampler(new TraceIdRatioBasedSampler(0.25))) + .AddSentryOtlpExporter("___PUBLIC_DSN___") + .Build(); +``` + +## Trace Propagation + +The OTLP exporter doesn't configure an OpenTelemetry propagator, so OpenTelemetry's default applies: it sends and reads W3C `traceparent`, `tracestate`, and `baggage` headers. Traces connect across services that use OpenTelemetry without additional configuration. See [Exporters, Event Linking, and Propagation](/concepts/otlp/sentry-with-otel/#exporters-event-linking-and-propagation) for details. + + + +Earlier versions of `AddSentryOtlpExporter` set `SentryPropagator` as OpenTelemetry's default propagator, and accepted a `defaultTextMapPropagator` parameter (as did `UseOtlp`) to use a different one. Version 7.0.0 removed the automatic setup and the parameter. To keep propagating `sentry-trace` headers, set the propagator yourself as shown below. -Cross-service trace propagation uses OTel's default W3C `traceparent` headers and does not require additional configuration. See [Exporters, Event Linking, and Propagation](/concepts/otlp/sentry-with-otel/#exporters-event-linking-and-propagation) for details. +Requests sent through `SentryHttpMessageHandler` also get a `sentry-trace` header. `UseOtlp()` stops the handler from creating spans, but not from adding headers. Sentry adds this handler to `IHttpClientFactory` clients automatically when you initialize Sentry through dependency injection, for example with `UseSentry()` in ASP.NET Core. -Calling `UseOtlp()` on `SentryOptions` sets `DisableSentryTracing = true`, which turns off Sentry's automatic span creation from `SentryHttpMessageHandler`, `DiagnosticSource` listener, and Entity Framework interception to avoid duplicate spans. +### Services That Use Sentry's Tracing + +Services that use a Sentry SDK's own tracing, rather than OpenTelemetry, continue traces from `sentry-trace` and `baggage` headers. When they receive a request that didn't go through `SentryHttpMessageHandler`, they start a new trace. + +To send a `sentry-trace` header on every request OpenTelemetry instruments, and to continue traces from incoming `sentry-trace` headers, add `SentryPropagator` (included in `Sentry.OpenTelemetry.Exporter`) next to the W3C propagator when configuring the OpenTelemetry SDK at startup: + +```csharp +using OpenTelemetry; +using OpenTelemetry.Context.Propagation; +using Sentry.OpenTelemetry; + +Sdk.SetDefaultTextMapPropagator(new CompositeTextMapPropagator(new TextMapPropagator[] +{ + new TraceContextPropagator(), + new SentryPropagator(), +})); +``` + +If you only need to continue traces from services that call this one, enable [`propagateTraceparent`](/concepts/otlp/sentry-with-otel/#linking-sentry-and-otlp-traces) in their Sentry SDKs instead. They then also send a `traceparent` header, which OpenTelemetry reads by default. In .NET, that's the `PropagateTraceparent` option. You don't need it in the service that uses the OTLP exporter, because OpenTelemetry already sends `traceparent` from there. + +If the calling service hasn't made a sampling decision, for example because tracing is turned off there, its `traceparent` header is marked as not sampled (`-00`), since W3C trace context can't express an undecided state. OpenTelemetry's parent-based sampler then doesn't record this service's spans for those requests. ## Options @@ -93,12 +130,8 @@ Calling `UseOtlp()` on `SentryOptions` sets `DisableSentryTracing = true`, which URL of your own OpenTelemetry collector. When set, the exporter will send traces to this URL instead of the Sentry OTLP endpoint derived from the DSN. -- `defaultTextMapPropagator` (TextMapPropagator, optional): - - Override the default propagator. Defaults to `SentryPropagator`, which propagates `sentry-trace`, `baggage`, and W3C `traceparent` headers. This option will be removed alongside the automatic propagator setup in the next major version. - ## Supported Versions - .NET: 8.0+ / .NET Standard 2.0+ / .NET Framework 4.6.2+ - Sentry: 6.5.0+ -- OpenTelemetry: 1.10.0+ +- OpenTelemetry: 1.12.0+ diff --git a/docs/platforms/dotnet/guides/aspnet/index.mdx b/docs/platforms/dotnet/guides/aspnet/index.mdx index 9c4255fbcd01d..d1dc0d15405d6 100644 --- a/docs/platforms/dotnet/guides/aspnet/index.mdx +++ b/docs/platforms/dotnet/guides/aspnet/index.mdx @@ -33,7 +33,6 @@ You configure the SDK in the `Global.asax.cs`: The snippet also turns on: - Tracing: via `TracesSampleRate` -- Logs from logging integrations: via `EnableLogs` Don't need a feature? Remove its options from the snippet. @@ -57,7 +56,6 @@ public class MvcApplication : HttpApplication options.Debug = true; // Adds request URL and headers, IP and name for users, etc. options.SendDefaultPii = true; - options.EnableLogs = true; // Enables Tracing. // Set to 1.0 to capture 100% of spans for tracing. // We recommend reducing this value in production. @@ -116,9 +114,15 @@ options.AddAspNet(RequestSize.Always); ## Send Logs -Use `SentrySdk.Logger` to send logs at different levels without an additional option. If you also send logs through an integration, set `EnableLogs = true` in the initialization snippet. +Use `SentrySdk.Logger` to send logs at different levels without an additional option. -If you use Serilog, NLog, or log4net, see the documented [Serilog](/platforms/dotnet/guides/serilog/), [NLog](/platforms/dotnet/guides/nlog/), and [log4net](/platforms/dotnet/guides/log4net/) integrations. +If you use Serilog, NLog, or log4net, see the documented [Serilog](/platforms/dotnet/guides/serilog/), [NLog](/platforms/dotnet/guides/nlog/), and [log4net](/platforms/dotnet/guides/log4net/) integrations. They send logs as soon as you add them. To drop logs you don't want, return `null` from `SetBeforeSendLog`. + + + +In earlier versions, the logging integrations only sent logs when `EnableLogs` was set to `true` in `SentrySdk.Init`. + + See Set Up Logs for all available logging methods and formatting options. diff --git a/docs/platforms/dotnet/guides/aspnetcore/index.mdx b/docs/platforms/dotnet/guides/aspnetcore/index.mdx index d8301dda91873..1f2da303115f3 100644 --- a/docs/platforms/dotnet/guides/aspnetcore/index.mdx +++ b/docs/platforms/dotnet/guides/aspnetcore/index.mdx @@ -87,7 +87,7 @@ public static IWebHost BuildWebHost(string[] args) => ### Additional configuration -The framework takes configuration settings from `appsettings.json`, environment variables, or from code. These settings get applied to `Sentry.AspNetCore.SentryAspNetCoreOptions`, which extends `Sentry.Extensions.Logging.SentryLoggingOptions`, which in turn extends `Sentry.SentryOptions`. This means options for `Sentry.AspNetCore` as well as all the inner packages are available to be configured through the configuration system. +The framework takes configuration settings from `appsettings.json`, environment variables, or from code. These settings get applied to `SentryAspNetCoreOptions`, which extends `SentryHostOptions`, which in turn extends `SentryOptions`. This means options for `Sentry.AspNetCore` as well as all the inner packages are available to be configured through the configuration system. ### appsettings.json @@ -205,6 +205,21 @@ member this.ConfigureServices(services: IServiceCollection) = services.AddScoped() |> ignore ``` +### Clearing Logger Providers + +`ClearProviders()` removes every logger provider registered before it, including the ones `UseSentry` adds. Without them, `ILogger` entries don't reach Sentry. Call `UseSentry` after it: + +```csharp {filename:Program.cs} +var builder = WebApplication.CreateBuilder(args); +builder.Logging.ClearProviders(); +builder.Logging.AddConsole(); +builder.WebHost.UseSentry(); +``` + +If the app has to clear the providers after `UseSentry`, call `builder.Logging.AddSentry()` after `ClearProviders()`. It adds Sentry's providers back, with the options of `UseSentry`. Leave it out if NLog, Serilog, or log4net already sends your `ILogger` entries to Sentry, because each entry would then arrive twice. + +With `Debug` on, the SDK logs a warning through `ILogger` when the app starts if Sentry's providers were removed and not added back. + ### Options and Initialization As previously mentioned, this package is a wrapper around [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/) and [Sentry](/platforms/dotnet/). Please refer to the documentation of these packages to get the options that are defined at those levels. diff --git a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx index 29b3ce66d19fd..14745799700a8 100644 --- a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx +++ b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx @@ -1,34 +1,36 @@ --- title: Azure Functions -sdk: sentry.dotnet.azure.functions.worker +sdk: sentry.dotnet.extensions.hosting description: "Learn about Sentry's .NET integration with Azure Functions." --- -Sentry provides an integration with Azure Functions through the [Sentry.Extensions.Logging](https://www.nuget.org/packages/Sentry.Extensions.Logging) and [Sentry.OpenTelemetry.Exporter](https://www.nuget.org/packages/Sentry.OpenTelemetry.Exporter) NuGet packages. +Sentry provides an integration with Azure Functions through the [Sentry.Extensions.Hosting](https://www.nuget.org/packages/Sentry.Extensions.Hosting) and [Sentry.OpenTelemetry.Exporter](https://www.nuget.org/packages/Sentry.OpenTelemetry.Exporter) NuGet packages. ## Install Add the Sentry dependencies to your Azure Functions application: ```shell {tabTitle:.NET Core CLI} -dotnet add package Sentry.Extensions.Logging -v {{@inject packages.version('sentry.dotnet.extensions.logging') }} +dotnet add package Sentry.Extensions.Hosting -v {{@inject packages.version('sentry.dotnet') }} dotnet add package Sentry.OpenTelemetry.Exporter -v {{@inject packages.version('sentry.dotnet') }} dotnet add package OpenTelemetry.Extensions.Hosting dotnet add package OpenTelemetry.Instrumentation.Http ``` ```powershell {tabTitle:Package Manager} -Install-Package Sentry.Extensions.Logging -Version {{@inject packages.version('sentry.dotnet.extensions.logging') }} +Install-Package Sentry.Extensions.Hosting -Version {{@inject packages.version('sentry.dotnet') }} Install-Package Sentry.OpenTelemetry.Exporter -Version {{@inject packages.version('sentry.dotnet') }} Install-Package OpenTelemetry.Extensions.Hosting Install-Package OpenTelemetry.Instrumentation.Http ``` -The [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/) package also provides access to the `ILogger` integration and the other core features available in the [Sentry](/platforms/dotnet/) SDK. +This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/). This means you also get the `ILogger` integration and the other core features available in the [Sentry](/platforms/dotnet/) SDK. ## Configure -**Error Monitoring** starts working as soon as you initialize the SDK by calling `AddSentry` when configuring logging. **Logs** sent through `Microsoft.Extensions.Logging` need `EnableLogs = true`, and **Application Metrics** need no extra configuration. You'll learn how to send them in [Send Logs](#send-logs) and [Send Application Metrics](#send-application-metrics-). +**Error Monitoring** starts working as soon as you call `UseSentry` on the host builder. **Logs** sent through `Microsoft.Extensions.Logging` need `EnableLogs = true`, and **Application Metrics** need no extra configuration. You'll learn how to send them in [Send Logs](#send-logs) and [Send Application Metrics](#send-application-metrics-). + +`UseSentry` starts Sentry when the host is built and closes it when the host stops. It also adds Sentry's `ILogger` integration, which captures `LogError` and higher as events. See the [Generic Host](/platforms/dotnet/guides/extensions-hosting/) guide for its configuration options. This guide also enables **Tracing** through OpenTelemetry. Sentry's OTLP exporter is added to the OpenTelemetry `TracerProviderBuilder`, and `UseOtlp()` tells the Sentry SDK to use OpenTelemetry for tracing. @@ -42,11 +44,17 @@ Don't need a feature? Remove its options from the snippet. ```csharp using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; -using Microsoft.Extensions.Logging; using OpenTelemetry.Trace; var host = new HostBuilder() .ConfigureFunctionsWorkerDefaults() + .UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + options.EnableLogs = true; + options.UseOtlp(); // <-- Configure Sentry to use OpenTelemetry for tracing + options.Debug = true; + }) .ConfigureServices(services => { services.AddOpenTelemetry().WithTracing(builder => @@ -56,26 +64,24 @@ var host = new HostBuilder() .AddHttpClientInstrumentation(); // From OpenTelemetry.Instrumentation.Http, instruments outgoing HTTP requests }); }) - .ConfigureLogging(logging => - { - logging.AddSentry(options => - { - options.Dsn = "___PUBLIC_DSN___"; - options.EnableLogs = true; - options.UseOtlp(); // <-- Configure Sentry to use OpenTelemetry for tracing - options.Debug = true; - }); - }) .Build(); await host.RunAsync(); ``` +Apps that use the ASP.NET Core integration, with `ConfigureFunctionsWebApplication()` instead of `ConfigureFunctionsWorkerDefaults()`, call the same `UseSentry`, not the one from `Sentry.AspNetCore`. + + + +In earlier versions, there was no `Sentry.Extensions.Hosting` package. On those versions, install `Sentry.Extensions.Logging` and pass the same options to `logging.AddSentry(options => ...)` in `ConfigureLogging`, instead of calling `UseSentry`. + + + ## Send Logs -Use `Microsoft.Extensions.Logging` to send structured logs from your application. Set `EnableLogs = true` in your Sentry initialization. +Use `Microsoft.Extensions.Logging` to send structured logs from your application. Set `EnableLogs = true` in the options you pass to `UseSentry`. -See [Microsoft.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/) for setup details. +See [Generic Host](/platforms/dotnet/guides/extensions-hosting/#send-logs) for setup details. See Set Up Logs for all available logging methods and formatting options. diff --git a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx index 9f416bd84e987..14ca1ffb4818b 100644 --- a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx +++ b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx @@ -25,10 +25,7 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens This guide also enables **Tracing**. - -Sentry integration with Blazor WebAssembly is done by calling `.UseSentry()` and specifying the options, for example: - - +Sentry integration with Blazor WebAssembly is done by calling `.UseSentry()` and specifying the options. `UseSentry` also adds Sentry's `ILogger` integration, which captures `LogError` and higher as events. The snippet also turns on: @@ -39,7 +36,6 @@ Don't need a feature? Remove its options from the snippet. ```csharp using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using Microsoft.Extensions.Logging; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.UseSentry(options => diff --git a/docs/platforms/dotnet/guides/extensions-hosting/index.mdx b/docs/platforms/dotnet/guides/extensions-hosting/index.mdx new file mode 100644 index 0000000000000..0dcc874e23160 --- /dev/null +++ b/docs/platforms/dotnet/guides/extensions-hosting/index.mdx @@ -0,0 +1,342 @@ +--- +title: Generic Host +sdk: sentry.dotnet.extensions.hosting +description: "Learn about Sentry's .NET integration with the .NET Generic Host, for worker services, console apps, and Windows services." +--- + +Sentry provides an integration with the [.NET Generic Host](https://learn.microsoft.com/dotnet/core/extensions/generic-host) through the [Sentry.Extensions.Hosting NuGet package](https://www.nuget.org/packages/Sentry.Extensions.Hosting). Use it in worker services, Windows services, and console apps that run on the host. Azure Functions apps on the isolated worker model use it too, with or without the ASP.NET Core integration. + + + +In earlier versions, generic host apps initialized Sentry with `builder.Logging.AddSentry()`. To upgrade, see the migration guide. + + + +## Install + +Add the Sentry dependency: + +```shell {tabTitle:.NET Core CLI} +dotnet add package Sentry.Extensions.Hosting -v {{@inject packages.version('sentry.dotnet') }} +``` + +```powershell {tabTitle:Package Manager} +Install-Package Sentry.Extensions.Hosting -Version {{@inject packages.version('sentry.dotnet') }} +``` + +The package brings in [Sentry.Extensions.Logging](/platforms/dotnet/guides/extensions-logging/) and the core [Sentry](/platforms/dotnet/) SDK, so you don't need to add them yourself. + +## Configure + +**Error Monitoring** starts working as soon as you initialize the SDK. **Logs** sent through `Microsoft.Extensions.Logging` need `EnableLogs = true`, and **Application Metrics** need no extra configuration. You'll learn how to send them in [Send Logs](#send-logs) and [Send Application Metrics](#send-application-metrics-). + +This guide also enables **Tracing**. + +Call `UseSentry` on the host builder. It initializes Sentry, adds Sentry's `ILogger` integration, and registers `IHub`, `ISentryClient`, and `Func` for dependency injection. It's available on: + +- `IHostApplicationBuilder`, which `Host.CreateApplicationBuilder()` returns, on .NET 8 and later. +- `IHostBuilder`, which `Host.CreateDefaultBuilder()` returns, on every target, including [.NET Framework](#net-framework). + +The snippet also turns on: + +- Logs: via `EnableLogs` +- Tracing: via `TracesSampleRate` + +Don't need a feature? Remove its options from the snippet. + +```csharp {tabTitle:IHostApplicationBuilder} {filename:Program.cs} {mdExpandTabs} +var builder = Host.CreateApplicationBuilder(args); +builder.UseSentry(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + // Send ILogger entries to Sentry as logs + options.EnableLogs = true; + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + options.TracesSampleRate = 1.0; +}); +builder.Services.AddHostedService(); + +await builder.Build().RunAsync(); +``` + +```csharp {tabTitle:IHostBuilder} {filename:Program.cs} +await Host.CreateDefaultBuilder(args) + .UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + // Send ILogger entries to Sentry as logs + options.EnableLogs = true; + // Enables Tracing. + // Set to 1.0 to capture 100% of spans for tracing. + // We recommend reducing this value in production. + options.TracesSampleRate = 1.0; + }) + .ConfigureServices(services => services.AddHostedService()) + .Build() + .RunAsync(); +``` + +Don't also call `builder.Logging.AddSentry()`. `UseSentry` already adds Sentry's logger providers, so that call has no effect, and the options passed to it are ignored. The one exception is [clearing the logger providers](#clearing-logger-providers). + +A worker has no incoming requests, so Sentry doesn't start transactions on its own. Start one around each unit of work, as shown in Custom Instrumentation. Requests your app makes through `IHttpClientFactory` inside a transaction become spans. + +### Configuration + +`UseSentry` reads its options from the `Sentry` section of your configuration, such as `appsettings.json`, and the log levels from `Logging:Sentry`. Options set in the callback are applied after the configuration, so they win. + +```json {filename:appsettings.json} +{ + "Logging": { + "Sentry": { + "MinimumBreadcrumbLevel": "Debug", + "MinimumEventLevel": "Warning" + } + }, + "Sentry": { + "Dsn": "___PUBLIC_DSN___", + "SendDefaultPii": true, + "EnableLogs": true, + "TracesSampleRate": 1.0 + } +} +``` + +`Logging:Sentry` only takes `LogLevel`, `MinimumBreadcrumbLevel`, and `MinimumEventLevel`. Any other key there, such as `Dsn`, makes `Build()` throw. + +To turn Sentry off, for example during local development, set `"Dsn": ""`. The `SENTRY_DSN` environment variable still takes precedence over an empty `Dsn`. If no DSN is set anywhere, `Build()` throws. + +### Environment + +The SDK uses the host environment as the Sentry environment. The host environment defaults to `Production`, and you usually set it with `DOTNET_ENVIRONMENT`. The SDK lowercases `Production`, `Staging`, and `Development`, and keeps other names as they are. To keep the original casing, set `AdjustStandardEnvironmentNameCasing` to `false`. + +An `Environment` set in code or in the `Sentry` section takes precedence, followed by the `SENTRY_ENVIRONMENT` environment variable. + +### When Sentry Starts and Stops + +`UseSentry` starts the SDK in `Build()`, before any hosted service starts, so code that runs between `Build()` and `Run()` is covered too. That's also the case when the app clears the logger providers or replaces the logger factory. + +The SDK closes when the host raises `ApplicationStopped`, after the hosted services have stopped. Errors logged while the app shuts down are still sent. + +### Clearing Logger Providers + +`ClearProviders()` removes every logger provider registered before it, including the ones `UseSentry` adds. Call `UseSentry` after it: + +```csharp {filename:Program.cs} +var builder = Host.CreateApplicationBuilder(args); +builder.Logging.ClearProviders(); +builder.Logging.AddConsole(); +builder.UseSentry(); +``` + +If the app has to clear the providers after `UseSentry`, call `builder.Logging.AddSentry()` after `ClearProviders()`. It adds Sentry's providers back, with the options of `UseSentry`. Leave it out if NLog, Serilog, or log4net already sends your `ILogger` entries to Sentry, because each entry would then arrive twice. + +With `Debug` on, the SDK logs a warning during `Build()` when Sentry's providers were removed and not added back. + +### ASP.NET Core and MAUI Apps + +Web and MAUI apps use `UseSentry` from [Sentry.AspNetCore](/platforms/dotnet/guides/aspnetcore/) or [Sentry.Maui](/platforms/dotnet/guides/maui/). `WebApplicationBuilder` and `MauiAppBuilder` implement `IHostApplicationBuilder`, so the generic `UseSentry` compiles there too. With only the generic call, those apps miss what their own integration adds: + +- ASP.NET Core apps get no request data on events, and no transactions for incoming requests. +- MAUI apps get no navigation or UI breadcrumbs, and Sentry starts only when the app first uses a logger or `IHub`. + +The generic `UseSentry` warns about this once. In a web app, it logs the warning through `ILogger` when the host starts. In a MAUI app, it writes the warning to standard error. + +If an app calls both, the generic `UseSentry` steps aside, in either order, and the app runs with the ASP.NET Core or MAUI integration and its options. + +### .NET Aspire Service Defaults + +The `AddServiceDefaults` method in an Aspire ServiceDefaults project takes any `IHostApplicationBuilder`, so it runs in web projects as well as workers. Its `Extensions.cs` file is declared in the `Microsoft.Extensions.Hosting` namespace. C# looks for extension methods in the enclosing namespace before the ones from `using` directives, so in that file, `web.UseSentry()` calls the generic `UseSentry`, even on a `WebApplicationBuilder`. Call the ASP.NET Core or MAUI `UseSentry` as a static method instead: + +```csharp {tabTitle:ASP.NET Core} {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; + } +} +``` + +```csharp {tabTitle:MAUI} {filename:Extensions.cs} +using Microsoft.Maui.Hosting; + +namespace Microsoft.Extensions.Hosting; + +public static class Extensions +{ + public static TBuilder AddServiceDefaults(this TBuilder builder) + where TBuilder : IHostApplicationBuilder + { + if (builder is MauiAppBuilder maui) + { + SentryMauiAppBuilderExtensions.UseSentry(maui); + } + else + { + builder.UseSentry(); + } + + // ... + return builder; + } +} +``` + +The ServiceDefaults project then needs both `Sentry.Extensions.Hosting` and `Sentry.AspNetCore` or `Sentry.Maui`. + +Don't call the ASP.NET Core `UseSentry` again in the web project's `Program.cs`: with two calls, each error is sent twice. The generic `UseSentry` doesn't have that problem. If a worker calls it in `AddServiceDefaults` and again in `Program.cs`, Sentry is set up once, with the options from both calls. + +### .NET Framework + +On .NET Framework, `UseSentry` is only available on `IHostBuilder`. The package supports Microsoft.Extensions.Hosting 3.1 and later there, and `IHostApplicationBuilder` only exists from 8.0. An app that uses `Host.CreateApplicationBuilder()` can switch to `Host.CreateDefaultBuilder()`, as in the `IHostBuilder` example [above](#configure). + +The app can also keep `Host.CreateApplicationBuilder()`, initialize Sentry with `SentrySdk.Init`, and add the logging integration with `builder.Logging.AddSentry()`. It then doesn't read the `Sentry` section, and Sentry doesn't start and close with the host. `Logging.AddSentry()` doesn't register `IHub`, `ISentryClient`, or `Func`, so register them if your services inject them: + +```csharp {filename:Program.cs} +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; +using Sentry.Extensibility; + +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); + +var builder = Host.CreateApplicationBuilder(args); +builder.Logging.AddSentry(); +builder.Services.AddSingleton(HubAdapter.Instance); +builder.Services.AddSingleton(HubAdapter.Instance); +builder.Services.AddSingleton>(() => HubAdapter.Instance); +builder.Services.AddHostedService(); + +await builder.Build().RunAsync(); +``` + +Disposing the object that `SentrySdk.Init` returns sends any pending events before the app exits. + +### Replacing SentrySdk.Init + +If your app calls `SentrySdk.Init`, remove that call when you add `UseSentry`, unless it's there for [capturing startup crashes](#capturing-startup-crashes). Move its options into the `UseSentry` callback or the `Sentry` section. Whichever initialization runs last wins, and the two don't merge their options. + +If the app also calls `builder.Logging.AddSentry()`, remove that too. With `SentrySdk.Init`, it sent every `ILogger` entry as a structured log. `UseSentry` leaves that off, so set `EnableLogs = true` to keep sending them. + +### Capturing Startup Crashes + +`UseSentry` starts Sentry in `Build()`. If the app crashes before then, for example while it reads configuration or registers services, the crash isn't sent. + +To capture these crashes, also call `SentrySdk.Init` before you create the builder, and capture the exception if startup fails: + +```csharp {filename:Program.cs} +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); + +try +{ + var builder = Host.CreateApplicationBuilder(args); + builder.UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + }); + builder.Services.AddHostedService(); + + await builder.Build().RunAsync(); +} +catch (Exception ex) +{ + SentrySdk.CaptureException(ex); + throw; +} +``` + +The two initializations don't share anything: + +- `SentrySdk.Init` runs before the app reads `appsettings.json` or the host environment. Set its DSN in code or with the `SENTRY_DSN` environment variable. To report startup crashes in the same environment as the rest of the app, set `SENTRY_ENVIRONMENT`, which `UseSentry` reads too. +- `UseSentry` doesn't reuse those options. Give it a DSN as well, in its callback or the `Sentry` section. +- In `Build()`, `UseSentry` replaces the first initialization. Crashes before then are sent with the first initialization's options, such as its release and environment. Breadcrumbs added before then aren't carried over. +- Errors after `Build()`, such as a hosted service that fails to start, are sent by `UseSentry`. `CaptureException` doesn't send them a second time. + +## Send Logs + +Use `Microsoft.Extensions.Logging` to send structured logs from your application. Set `EnableLogs = true` in the `UseSentry` options or in the `Sentry` section. It's off by default, as in the ASP.NET Core and MAUI integrations. + +See Set Up Logs for all available logging methods and formatting options. + +```csharp {filename:Worker.cs} +using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; + +public sealed class Worker(ILogger logger) : BackgroundService +{ + protected override async Task ExecuteAsync(CancellationToken stoppingToken) + { + while (!stoppingToken.IsCancellationRequested) + { + logger.LogInformation("Processing batch {BatchId}", Guid.NewGuid()); + await Task.Delay(TimeSpan.FromMinutes(1), stoppingToken); + } + } +} +``` + +`EnableLogs` doesn't change how errors and breadcrumbs are captured. Entries at `Error` and above are sent as events, and entries at `Information` and above are kept as breadcrumbs. To change that, set `MinimumEventLevel` and `MinimumBreadcrumbLevel`. + +To drop specific entries before they become breadcrumbs or events, call [`AddLogEntryFilter`](/platforms/dotnet/guides/extensions-logging/#log-entry-filters) in the `UseSentry` callback. + +## Send Application Metrics + +Metrics are enabled by default. Use `SentrySdk.Metrics` to send counters, gauges, and distributions from your app. + +See Set Up Metrics for all available metric types and configuration options. + +```csharp +SentrySdk.Metrics.EmitCounter("button_click", 5, + new Dictionary { ["browser"] = "Firefox" }); +SentrySdk.Metrics.EmitGauge("page_load", 15.0, MeasurementUnit.Duration.Millisecond, + new Dictionary { ["page"] = "/home" }); +SentrySdk.Metrics.EmitDistribution("api_latency", 187, MeasurementUnit.Duration.Millisecond, + new Dictionary { ["endpoint"] = "/api/orders" }); +``` + +## Verify Your Setup + +Let's test your setup and confirm that data reaches your Sentry project. + + + +### View Captured Data in Sentry + +Open your Sentry project to view the captured event. + +## Samples + +- A [worker service](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.GenericHost) that calls `UseSentry` and reads its options from `appsettings.json`. (**C#**) +- For [more samples](https://github.com/getsentry/sentry-dotnet-samples) of the .NET SDKs. + +## Next Steps + +At this point, you should have integrated Sentry into your generic host app. 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 +- Explore Tracing +- See all configuration options diff --git a/docs/platforms/dotnet/guides/extensions-logging/index.mdx b/docs/platforms/dotnet/guides/extensions-logging/index.mdx index 7a9816b209243..570ecd4803f57 100644 --- a/docs/platforms/dotnet/guides/extensions-logging/index.mdx +++ b/docs/platforms/dotnet/guides/extensions-logging/index.mdx @@ -20,7 +20,7 @@ The default value to report a log entry as an event to Sentry is `Error`. This means that out of the box, any `LogError` call will create an `Event` which will include breadcrumbs for all prior log messages of level `Information`, `Warning`, `Error` and `Critical`. -Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). Filtering to control the minimum log level to capture should be done [via `Microsoft.Extensions.Logging` configuration](https://learn.microsoft.com/dotnet/core/extensions/logging/overview?tabs=command-line#how-filtering-rules-are-applied). +Log messages are also sent to Sentry as [Structured Logs](logs/). Filtering to control the minimum log level to capture should be done [via `Microsoft.Extensions.Logging` configuration](https://learn.microsoft.com/dotnet/core/extensions/logging/overview?tabs=command-line#how-filtering-rules-are-applied). ## Install @@ -34,8 +34,12 @@ Install-Package Sentry.Extensions.Logging -Version {{@inject packages.version('s dotnet add package Sentry.Extensions.Logging -v {{@inject packages.version('sentry.dotnet.extensions.logging') }} ``` +On .NET Framework, also install the `Microsoft.Extensions.Logging` package. The examples on this page need it. + This package extends `Sentry` main SDK. That means that besides the logging related features, through this package you'll also get access to all API and features available in the main `Sentry` SDK. +Generic host apps install the `Sentry.Extensions.Hosting` package instead, which depends on this one. See the [Generic Host](/platforms/dotnet/guides/extensions-hosting/) guide. + The integration excludes the Sentry SDK's own logger categories to avoid capturing its diagnostic messages as events. Application categories that happen to start with `Sentry` aren't excluded solely because of that prefix. @@ -44,106 +48,92 @@ The integration excludes the Sentry SDK's own logger categories to avoid capturi ## Configure -Call `AddSentry` on an `ILoggingBuilder`, either through a generic host or `LoggerFactory.Create`. This registers the providers for error events, breadcrumbs, and structured logs. - -The legacy `ILoggerFactory.AddSentry` extension registers only the error-event and breadcrumb provider. Use `LoggerFactory.Create` with `builder.AddSentry` to capture structured logs too. ASP.NET Core's `UseSentry` already registers the providers, so it doesn't need a separate `AddSentry` call. +If your app uses one of these integrations, skip this setup. Call that integration's `UseSentry` instead, which initializes Sentry and adds this logging integration for you: -### Example configuration +- [Generic Host](/platforms/dotnet/guides/extensions-hosting/), for worker services, Windows services and console apps that call `Host.CreateApplicationBuilder` or `Host.CreateDefaultBuilder`. Before 7.0.0, these apps initialized Sentry with `builder.Logging.AddSentry(...)` from this page. +- [ASP.NET Core](/platforms/dotnet/guides/aspnetcore/) +- [MAUI](/platforms/dotnet/guides/maui/) -#### Through `ILoggingBuilder` +.NET Framework apps that call `Host.CreateApplicationBuilder()` can't use the Generic Host integration's `UseSentry`. See [.NET Framework](/platforms/dotnet/guides/extensions-hosting/#net-framework) in the Generic Host guide. -This example uses a generic host from the `Microsoft.Extensions.Hosting` package: +Apps without a host initialize Sentry with `SentrySdk.Init`, then add the integration with `AddSentry()`: -```csharp {filename:Program.cs} -using Microsoft.Extensions.Hosting; +```csharp {tabTitle:LoggerFactory} using Microsoft.Extensions.Logging; -var builder = Host.CreateApplicationBuilder(args); -// Lets Sentry read the top-level "Sentry" section of appsettings.json -builder.Logging.AddConfiguration(builder.Configuration); -builder.Logging.AddSentry(); +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); -using var host = builder.Build(); -await host.RunAsync(); +using var loggerFactory = LoggerFactory.Create(builder => builder.AddSentry()); +var logger = loggerFactory.CreateLogger(); ``` -The host loads `appsettings.json` and environment variables. Sentry reads its options from the `Sentry` configuration section. - -With this approach, options like `Dsn`, `SendDefaultPii`, `MinimumBreadcrumbLevel`, to name a few, can be set in `appsettings.json`. +```csharp {tabTitle:ServiceCollection} +using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; -Example using `appsettings.json`: +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); +var services = new ServiceCollection(); +services.AddLogging(builder => builder.AddSentry()); -```json {filename:appsettings.json} -{ - "Logging": { - "LogLevel": { - "Default": "Debug", - "Microsoft": "Warning" - } - }, - "Sentry": { - "Dsn": "___PUBLIC_DSN___", - "EnableLogs": true, - "SendDefaultPii": true, - "MinimumBreadcrumbLevel": "Debug", - "MinimumEventLevel": "Warning", - "MaxBreadcrumbs": 50 - } -} +using var provider = services.BuildServiceProvider(); +var logger = provider.GetRequiredService>(); ``` -Above we set the application wide minimum log level to `Debug` and we configure a minimum log level for Microsoft specific logs to `Warning`. Sentry specific settings are set under the `Sentry` property. Options are documented below. +Set other [SDK options](/platforms/dotnet/guides/extensions-logging/configuration/options/) in `SentrySdk.Init` too. Disposing the object it returns sends any pending events before your app exits. -#### Through `ILoggerFactory` +Every `ILogger` entry that passes your `Microsoft.Extensions.Logging` filters is also sent as a structured log. To send fewer, set `LogLevel` under `Logging:Sentry`, as shown in [Logging Configuration](#logging-configuration), or return `null` from `SetBeforeSendLog`. +`AddSentry()` doesn't register `IHub`, `ISentryClient` or `Func`. If your services inject them, register them with `HubAdapter.Instance`. Otherwise resolving those services fails with `Unable to resolve service for type 'Sentry.IHub'`: ```csharp -using Microsoft.Extensions.Logging; +using Sentry.Extensibility; -using (var loggerFactory = LoggerFactory.Create(builder => -{ - builder.SetMinimumLevel(LogLevel.Information); - builder.AddSentry(options => - { - options.Dsn = "___PUBLIC_DSN___"; - options.EnableLogs = true; - }); -})) -{ - var logger = loggerFactory.CreateLogger("Example"); - logger.LogInformation("Order processed {OrderId}", "order-123"); -} +services.AddSingleton(HubAdapter.Instance); +services.AddSingleton(HubAdapter.Instance); +services.AddSingleton>(() => HubAdapter.Instance); ``` -This approach doesn't include any of the framework's configuration system. Since the DSN is being provided via parameter, the SDK will be initialized. +You only need the lines for the types your services inject. -More settings can be passed via the callback configuring the `SentryOptions`. + -## Options and Initialization +Prior to version 7.0.0, `AddSentry` could also initialize the SDK itself, registered `IHub` and `ISentryClient`, and only sent log entries as structured logs when `EnableLogs` was `true`. On those versions, set the DSN in `AddSentry(options => ...)` instead of calling `SentrySdk.Init`. To upgrade, see Migrate from 6.x to 7.x. -In cases where `AddSentry` is called without arguments, it's worth noting that an overload exists where `SentryOptions` can be configured just like if `SentrySdk.Init` had been called. + - +### Logging Configuration -Initialize the SDK once. `ILoggingBuilder.AddSentry` initializes it by default and can resolve a DSN from configuration or `SENTRY_DSN`. If another integration or `SentrySdk.Init` owns initialization, set `InitializeSdk = false`. Omitting the DSN isn't a substitute for this flag: if no DSN is found, initialization throws. An explicitly empty DSN disables the SDK. +If you add your configuration to the logging builder, for example with `builder.AddConfiguration(configuration.GetSection("Logging"))`, the integration reads its settings from the `Logging:Sentry` section: - +```json {filename:appsettings.json} +{ + "Logging": { + "Sentry": { + "LogLevel": { + "Default": "Information" + }, + "MinimumBreadcrumbLevel": "Debug", + "MinimumEventLevel": "Warning" + } + } +} +``` -For example: +`LogLevel` controls which entries are sent as [structured logs](logs/). `MinimumBreadcrumbLevel` and `MinimumEventLevel` are described under [Options](#options). -```csharp -using (var loggerFactory = LoggerFactory.Create(builder => - builder.AddSentry(options => - { - options.InitializeSdk = false; - options.EnableLogs = true; - }))) -{ } -``` +The `Logging:Sentry` section only accepts these three keys. Any other key, such as `Dsn` or `EnableLogs`, makes the app fail at startup. Set SDK options in `SentrySdk.Init`. ### Options +Set these in `AddSentry(options => ...)`. You can also set the two levels in the `Logging:Sentry` configuration section. + #### MinimumBreadcrumbLevel A `LogLevel` which indicates the minimum level a log message has to be included as a breadcrumb. By default this value is `Information`. @@ -152,13 +142,22 @@ A `LogLevel` which indicates the minimum level a log message has to be included A `LogLevel` which indicates the minimum level a log message has to be sent to Sentry as an event. By default this value is `Error`. -#### InitializeSdk +#### Log Entry Filters -Whether or not this integration should initialize the SDK. If you intend to call `SentrySdk.Init` yourself, you should set this flag to `false`. +Filters run before a log entry is processed. They get the entry's `Microsoft.Extensions.Logging` data, so you can drop the entry before it becomes a `Breadcrumb` or an `Event`. Return `true` to drop it: -#### Filters +```csharp +using Microsoft.Extensions.Logging; +using Sentry.Extensions.Logging; -A list of filters which are invoked before processing log messages. This allows you to inspect the details of the log entry before they become a `Breadcrumb` or an `Event` with full access to the `Microsoft.Extensions.Logging` data. +using var loggerFactory = LoggerFactory.Create(builder => builder.AddSentry(options => +{ + options.AddLogEntryFilter((category, level, eventId, exception) => + level < LogLevel.Critical && exception is DivideByZeroException); +})); +``` + +With a host integration, call `AddLogEntryFilter` on the options you pass to `UseSentry` instead. @@ -166,11 +165,9 @@ These filters only apply to breadcrumbs and events. They don't control which log -#### TagFilters - -A list of filters which are invoked before processing any log message to filter out undesired tags. +### TagFilters -For example, to remove all tags starting with `PROC_`, add a tag filter to your `SentryOptions` when initializing the SDK. +`TagFilters` is an SDK option, so set it in `SentrySdk.Init`. It drops any tag set on the scope whose key contains one of its entries, including the tags this integration adds from `BeginScope` state. An entry can also be a `Regex`, such as `new Regex("^PROC_")` to match only keys that start with `PROC_`. For example, to drop tags whose key contains `PROC_`: ```csharp options.TagFilters.Add("PROC_"); @@ -185,12 +182,11 @@ logger.LogInformation("Sentry logging verification"); logger.LogError("Sentry error-event verification"); ``` -Check **Logs** for the informational log and **Issues** for the error event. Run this code before disposing the host or logger factory. +Check **Logs** for the informational log and **Issues** for the error event. Run this code before disposing the logger factory or service provider. ## Samples - A [simple example](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.ME.Logging) using simply the `LoggerFactory`. -- An [example](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.GenericHost) using the _generic host_. ## Next Steps diff --git a/docs/platforms/dotnet/guides/log4net/index.mdx b/docs/platforms/dotnet/guides/log4net/index.mdx index 4205ab6278133..9fb998888317a 100644 --- a/docs/platforms/dotnet/guides/log4net/index.mdx +++ b/docs/platforms/dotnet/guides/log4net/index.mdx @@ -7,9 +7,9 @@ og_image: /og-images/platforms-dotnet-guides-log4net.gif Sentry provides an integration with log4net through the [Sentry.Log4Net NuGet package](https://www.nuget.org/packages/Sentry.Log4Net). -Without any code change, this package is able to initialize the Sentry SDK and capture events while including additional properties like `Exception` data and more. +The `SentryAppender` captures log events as Sentry events and breadcrumbs, including additional properties like `Exception` data and more. -Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). +Log messages are also sent to Sentry as [Structured Logs](logs/). ## Install @@ -27,49 +27,85 @@ This package extends `Sentry` main SDK. That means besides the log4net `Appender ## Configure -Once the log4net integration package is installed in your project, you can modify your configuration file to add the appender. +Initialize Sentry first, with `SentrySdk.Init` or a host integration such as [ASP.NET Core](/platforms/dotnet/guides/aspnetcore/): + +```csharp +SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); +``` + +Then add the appender to your log4net configuration. This can be done, for example, via the `app.config` for console and desktop apps or `web.config` in case of ASP.NET. ```xml {filename:app.config} - + + ``` - +Other [SDK options](/platforms/dotnet/guides/log4net/configuration/options/) can also be configured when calling `SentrySdk.Init`. -Only a subset of the options are exposed via the log4net appender configuration. If you wish to access an [SDK option](/platforms/dotnet/configuration/options/) which is not listed below, you'll need to initialize the SDK via [SentrySdk.Init](/platforms/dotnet/) instead of doing it via this integration as described below. +The appender drops log events while Sentry isn't initialized. If a DSN can be found anyway, for example in the `SENTRY_DSN` environment variable, the appender also writes a warning to standard error the first time it drops an event. To fix it, initialize Sentry at startup as shown above. - +### Apps That Call UseSentry -### SendIdentity - -In the example above, the `SendIdentity` flag was switched on. The SDK then will take the log4net `Identity` value and report to Sentry as the user's id. - -### DSN + -The appender initializes the SDK lazily when it processes its first log entry and no SDK is already enabled. Setting `Dsn` in the configuration doesn't initialize the SDK immediately. +### Capturing Startup Crashes -This is only one of the ways to initialize the SDK. If you wish to configure the SDK programmatically, you could **leave the DSN out** from the appender configuration section. The SDK needs to be initialized only **once** and since other integrations (like ASP.NET) are also able to initialize the SDK, you only need to pass the DSN to one of these integrations. -One common case to not add the DSN to the XML configuration file (which would initialize it via the log4net integration) is to have full access to the [SDK option](/platforms/dotnet/guides/log4net/configuration/options/). +`UseSentry` starts Sentry when the host is built or, in ASP.NET Core, when the app starts running. If the app crashes before then, the appender drops the crash. -### Structured Logs +To send these crashes, also call `SentrySdk.Init` before you create the builder, and log the crash if startup fails: -To send structured logs, initialize Sentry in code before logging and omit `Dsn` from the appender configuration: +```csharp {filename:Program.cs} +using log4net; -```csharp -SentrySdk.Init(options => +using var sentry = SentrySdk.Init(options => { options.Dsn = "___PUBLIC_DSN___"; - options.EnableLogs = true; }); + +var logger = LogManager.GetLogger(typeof(Program)); + +try +{ + var builder = WebApplication.CreateBuilder(args); + builder.UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + }); + + var app = builder.Build(); + app.Run(); +} +catch (Exception ex) +{ + logger.Fatal("Application terminated unexpectedly", ex); + throw; +} +finally +{ + LogManager.Shutdown(); +} ``` -If another integration already initializes Sentry, set `EnableLogs = true` there instead. The appender uses the existing SDK. +The two initializations don't share anything: + +- `SentrySdk.Init` runs before the app reads `appsettings.json`, so set its DSN in code or with the `SENTRY_DSN` environment variable. +- `UseSentry` doesn't reuse those options. Give it a DSN as well, in its callback or the `Sentry` section. +- Once `UseSentry` starts Sentry, it replaces the first initialization. Crashes before then are sent with the first initialization's options, such as its release and environment. Breadcrumbs logged before then aren't carried over. +- Crashes after then, such as a port that's already in use, are sent by `UseSentry`. `logger.Fatal` doesn't send them a second time. + +### SendIdentity + +In the example above, the `SendIdentity` flag was switched on. The SDK then will take the log4net `Identity` value and report to Sentry as the user's id. ## Verify @@ -82,7 +118,7 @@ Ensure log4net loads your configuration and the appender is referenced by a logg ``` -Run this code during application startup to initialize through the appender and verify error capture: +After initializing Sentry, run this code to verify error capture: ```csharp using System; @@ -105,7 +141,7 @@ catch (Exception exception) SentrySdk.FlushAsync().GetAwaiter().GetResult(); ``` -Check **Issues** for the error event. If you enabled structured logs, also check **Logs**. A direct `SentrySdk.CaptureException` call won't initialize the appender, so it can't verify this setup before the first log entry. +Check **Issues** for the error event and **Logs** for the log entry. ## Sample diff --git a/docs/platforms/dotnet/guides/maui/index.mdx b/docs/platforms/dotnet/guides/maui/index.mdx index 4ad7dc8cf6fb3..3a071e18b50b7 100644 --- a/docs/platforms/dotnet/guides/maui/index.mdx +++ b/docs/platforms/dotnet/guides/maui/index.mdx @@ -6,20 +6,37 @@ description: "Learn about Sentry's .NET integration with .NET Multi-platform App Sentry has an integration for the [.NET Multi-platform App UI (MAUI)](https://dotnet.microsoft.com/apps/maui) through the [Sentry.Maui NuGet package](https://www.nuget.org/packages/Sentry.Maui). -`Sentry.Maui` 6.x requires .NET MAUI 9 or later. For .NET MAUI 8, use a compatible 5.x SDK version. - **Overview of the features** - Easy MAUI integration by calling `UseSentry` on your `MauiAppBuilder` - All the features of our main [.NET SDK](/platforms/dotnet/), for your managed code - Native crash reporting for Android, leveraging our [Android SDK](/platforms/android/) - Native crash reporting for iOS and Mac Catalyst, leveraging our [Cocoa SDK for iOS](/platforms/apple/guides/ios/) -- Managed crash reporting (unhandled exceptions), on all MAUI platforms (iOS, Android, Windows, Mac Catalyst, and Tizen) +- Managed crash reporting (unhandled exceptions), on all MAUI platforms (iOS, Android, Windows, and Mac Catalyst) - Line numbers for your .NET stack traces when PDBs are uploaded to Sentry - Automatic breadcrumbs for MAUI app lifecycle and UI events - Detailed device and runtime information passed on every event - Automatic session tracking enabled, to support [release health](/product/releases/) +## Supported Versions + +`Sentry.Maui` supports .NET 10 and .NET 11. Set `SupportedOSPlatformVersion` in your project file to at least these platform versions: + +| Platform | .NET 10 | .NET 11 | +| ----------------- | --------------------------- | --------------------------- | +| Android API level | 21 | 24 | +| iOS | 15.0 | 15.0 | +| Mac Catalyst | 15.0 | 17.0 | +| Windows | 10.0.17763.0 (version 1809) | 10.0.17763.0 (version 1809) | + +To build for iOS and Mac Catalyst, use the Xcode version that your .NET iOS and Mac Catalyst workloads require. The [.NET for iOS and Mac Catalyst release notes](https://github.com/dotnet/macios/releases) list it for each release. + + + +Version 6.x supports .NET 9 and .NET 10. See Supported .NET Versions and Platforms in the migration guide. + + + ## Install Add the Sentry dependency to your .NET MAUI application: diff --git a/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx b/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx index 4d0fe3d543278..197b3eae432d3 100644 --- a/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx +++ b/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx @@ -10,7 +10,32 @@ For more information on how to dynamically set event data via `NLog.config`, see -The SDK can be configured via `NLog.config` XML file: +Call `SentrySdk.Init` to initialize the SDK first. SDK options, such as the environment and release, go here: + +```csharp +SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.Environment = "Development"; + options.Release = "my-project-name@2.3.12"; + options.AttachStacktrace = true; + options.SendDefaultPii = true; // Send Personal Identifiable information like the username of the user logged in to the device + options.ShutdownTimeout = TimeSpan.FromSeconds(5); +}); +``` + +```fsharp +SentrySdk.Init(fun options -> + options.Dsn <- "___PUBLIC_DSN___" + options.Environment <- "Development" + options.Release <- "my-project-name@2.3.12" + options.AttachStacktrace <- true + options.SendDefaultPii <- true // Send Personal Identifiable information like the username of the user logged in to the device + options.ShutdownTimeout <- TimeSpan.FromSeconds 5.0) +|> ignore +``` + +Then configure the Sentry target in an `NLog.config` XML file: ```xml {tabTitle:NLog.config} @@ -26,28 +51,15 @@ The SDK can be configured via `NLog.config` XML file: - - - - - true - + minimumEventLevel="Error" + minimumLogLevel="Info"> @@ -77,10 +89,9 @@ The SDK can be configured via `NLog.config` XML file: ``` -Or the SDK can be configured via code: +Or configure the target in code: ```csharp -// Other overloads exist, for example, configure the SDK with only the DSN or no parameters at all. LogManager.Configuration.AddSentry(o => { o.Layout = "${message}"; @@ -88,16 +99,9 @@ LogManager.Configuration.AddSentry(o => o.MinimumBreadcrumbLevel = LogLevel.Debug; // Debug and higher are stored as breadcrumbs (default is Info) o.MinimumEventLevel = LogLevel.Error; // Error and higher is sent as event (default is Error) - - // If DSN is not set, the SDK will look for an environment variable called SENTRY_DSN. If - // nothing is found, SDK is disabled. - o.Dsn = DsnSample; - - o.AttachStacktrace = true; - o.SendDefaultPii = true; // Send Personal Identifiable information like the username of the user logged in to the device + o.MinimumLogLevel = LogLevel.Info; // Info and higher are sent as logs (default is Info) o.IncludeEventDataOnBreadcrumbs = true; // Optionally include event properties with breadcrumbs - o.ShutdownTimeoutSeconds = 5; //Optionally specify user properties via NLog (here using MappedDiagnosticsLogicalContext as an example) o.User = new SentryNLogUser @@ -119,7 +123,6 @@ LogManager.Configuration.AddSentry(o => ``` ```fsharp -// Other overloads exist, for example, configure the SDK with only the DSN or no parameters at all. LogManager.Configuration.AddSentry( fun o -> o.Layout <- "${message}" @@ -127,16 +130,9 @@ LogManager.Configuration.AddSentry( o.MinimumBreadcrumbLevel <- LogLevel.Debug // Debug and higher are stored as breadcrumbs (default is Info) o.MinimumEventLevel <- LogLevel.Error // Error and higher is sent as event (default is Error) - - // If DSN is not set, the SDK will look for an environment variable called SENTRY_DSN. If - // nothing is found, SDK is disabled. - o.Dsn <- DsnSample - - o.AttachStacktrace <- true - o.SendDefaultPii <- true // Send Personal Identifiable information like the username of the user logged in to the device + o.MinimumLogLevel <- LogLevel.Info // Info and higher are sent as logs (default is Info) o.IncludeEventDataOnBreadcrumbs <- true // Optionally include event properties with breadcrumbs - o.ShutdownTimeoutSeconds <- 5 //Optionally specify user properties via NLog (here using MappedDiagnosticsLogicalContext as an example) o.User <- diff --git a/docs/platforms/dotnet/guides/nlog/index.mdx b/docs/platforms/dotnet/guides/nlog/index.mdx index b50cab82b089c..b0ff3130c8402 100644 --- a/docs/platforms/dotnet/guides/nlog/index.mdx +++ b/docs/platforms/dotnet/guides/nlog/index.mdx @@ -20,7 +20,7 @@ The default value to report a log entry as an event to Sentry is `Error`. This means that out of the box, any `Error` call will create an `Event` which will include all log messages of level `Info`, `Warn`, `Error`, and `Fatal` stored as breadcrumbs. -Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). +Log messages at `Info` or higher are also sent to Sentry as [Structured Logs](logs/). Set [`MinimumLogLevel`](#minimumloglevel) to change that level. ## Install @@ -44,60 +44,45 @@ For more information on how to dynamically set event data via `NLog.config`, see -If another integration already initializes Sentry, add the NLog target without reinitializing the SDK. Set `EnableLogs = true` on the options used by that integration to send structured logs. +Initialize Sentry first, with `SentrySdk.Init` or a host integration such as [ASP.NET Core](/platforms/dotnet/guides/aspnetcore/), then add the target. You can add it in code: ```csharp using NLog; using NLog.Config; -var configuration = new LoggingConfiguration(); -configuration.AddSentry(options => - { - options.InitializeSdk = false; - // Optionally specify a separate format for message - options.Layout = "${message}"; - // Optionally specify a separate format for breadcrumbs - options.BreadcrumbLayout = "${logger}: ${message}"; - - // Debug and higher are stored as breadcrumbs (default is Info) - options.MinimumBreadcrumbLevel = LogLevel.Debug; - // Error and higher is sent as event (default is Error) - options.MinimumEventLevel = LogLevel.Error; - - // Send the logger name as a tag - options.AddTag("logger", "${logger}"); - - // All Sentry Options are accessible here. - }); -LogManager.Configuration = configuration; +SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); + +var config = new LoggingConfiguration(); +config.AddSentry(options => +{ + // Optionally specify a separate format for message + options.Layout = "${message}"; + // Optionally specify a separate format for breadcrumbs + options.BreadcrumbLayout = "${logger}: ${message}"; + + // Debug and higher are stored as breadcrumbs (default is Info) + options.MinimumBreadcrumbLevel = LogLevel.Debug; + // Error and higher is sent as event (default is Error) + options.MinimumEventLevel = LogLevel.Error; + // Info and higher are sent as logs (default is Info) + options.MinimumLogLevel = LogLevel.Info; + + // Send the logger name as a tag + options.AddTag("logger", "${logger}"); +}); +LogManager.Configuration = config; ``` -It's also possible to initialize the SDK through the NLog integration (as opposed to using `SentrySdk.Init`). -This is useful when NLog is the only integration being used in your application. To initialize the Sentry SDK through the NLog integration, provide it with the DSN: - - -```csharp -var configuration = new LoggingConfiguration(); -configuration.AddSentry(o => - { - // The NLog integration will initialize the SDK if DSN is set: - o.Dsn = "___PUBLIC_DSN___"; - o.EnableLogs = true; - }); -LogManager.Configuration = configuration; -``` - - - -Initialize the SDK once. `InitializeSdk` defaults to `true`, and initialization can resolve a DSN from `SENTRY_DSN` even when you omit `Dsn`. If another integration or `SentrySdk.Init` owns initialization, set `InitializeSdk = false`. Omitting the DSN doesn't prevent reinitialization: the target either uses `SENTRY_DSN` and replaces the existing SDK configuration, or fails to initialize because no DSN was found. - - +The target drops log events while Sentry isn't initialized. If a DSN can be found anyway, for example in the `SENTRY_DSN` environment variable, the target also writes a warning to standard error the first time it drops an event. To fix it, initialize Sentry at startup as shown above. ### Minimum log level -Two log levels are used to configure this integration (see options below). One will configure the lowest level required for a log message to become an event (`MinimumEventLevel`) sent to Sentry. The other option (`MinimumBreadcrumbLevel`) configures the lowest level a message has to be to become a breadcrumb. Breadcrumbs are kept in memory (by default the last 100 records) and are sent with events. For example, by default, if you log 100 entries with `logger.Info` or `logger.Warn`, no event is sent to Sentry. If you then log with `logger.Error`, an event is sent to Sentry which includes those 100 `Info` or `Warn` messages. For this to work, `SentryTarget` needs to receive **all** log entries in order to decide what to keep as breadcrumb or sent as event. Make sure to set the `NLog` `LogLevel` configuration to a value lower than what you set for the `MinimumBreadcrumbLevel` and `MinimumEventLevel` to make sure `SentryTarget` receives these log messages. +Three log levels configure this integration. See [Options](#options) below. `MinimumEventLevel` is the lowest level for a log message to become an event sent to Sentry. `MinimumBreadcrumbLevel` is the lowest level for a message to become a breadcrumb. `MinimumLogLevel` is the lowest level for a message to be sent as a structured log. Breadcrumbs are kept in memory, by default the last 100 records, and are sent with events. For example, by default, if you log 100 entries with `logger.Info` or `logger.Warn`, no event is sent to Sentry. If you then log with `logger.Error`, an event is sent to Sentry which includes those 100 `Info` or `Warn` messages. For this to work, `SentryTarget` needs to receive **all** log entries in order to decide what to keep as breadcrumb or sent as event. `AddSentry` adds a rule that passes the target every entry at the lowest of the three levels or higher. If you write the rule yourself, for example in `NLog.config`, make sure its minimum level isn't higher than `MinimumBreadcrumbLevel`, `MinimumEventLevel` or `MinimumLogLevel`, so `SentryTarget` receives these log messages. -The SDK can also be configured via `NLog.config` XML file: +The target can also be configured in an `NLog.config` XML file: ```xml {tabTitle:NLog.config} @@ -111,24 +96,12 @@ The SDK can also be configured via `NLog.config` XML file: - - - - - true - + minimumEventLevel="Error" + minimumLogLevel="Info" + includeEventDataOnBreadcrumbs="true"> @@ -144,6 +117,61 @@ The SDK can also be configured via `NLog.config` XML file: ``` +### Apps That Call UseSentry + + + +### Capturing Startup Crashes + +`UseSentry` starts Sentry when the host is built or, in ASP.NET Core, when the app starts running. If the app crashes before then, for example while it reads configuration or registers services, the crash isn't sent. + +To send these crashes, also call `SentrySdk.Init` before you create the builder, and log the crash if startup fails: + +```csharp {filename:Program.cs} +using NLog; +using NLog.Config; +using NLog.Extensions.Logging; + +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); + +var config = new LoggingConfiguration(); +config.AddSentry(); +LogManager.Configuration = config; +var logger = LogManager.GetCurrentClassLogger(); + +try +{ + var builder = WebApplication.CreateBuilder(args); + builder.Logging.AddNLog(new NLogProviderOptions { ReplaceLoggerFactory = true }); + builder.UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + }); + + var app = builder.Build(); + app.Run(); +} +catch (Exception ex) +{ + logger.Fatal(ex, "Application terminated unexpectedly"); + throw; +} +finally +{ + LogManager.Shutdown(); +} +``` + +The two initializations don't share anything: + +- `SentrySdk.Init` runs before the app reads `appsettings.json`, so set its DSN in code or with the `SENTRY_DSN` environment variable. +- `UseSentry` doesn't reuse those options. Give it a DSN as well, in its callback or the `Sentry` section. +- Once `UseSentry` starts Sentry, it replaces the first initialization. Crashes before then are sent with the first initialization's options, such as its release and environment. Breadcrumbs logged before then aren't carried over. +- Crashes after then, such as a port that's already in use, are sent by `UseSentry`. `logger.Fatal` doesn't send them a second time. + ### Options #### MinimumBreadcrumbLevel @@ -154,9 +182,9 @@ A `LogLevel` that indicates the minimum level a log message needs to be in order A `LogLevel` which indicates the minimum level a log message has to be sent to Sentry as an event. By default this value is `Error`. -#### InitializeSdk +#### MinimumLogLevel -Whether or not this integration should initialize the SDK. If you intend to call `SentrySdk.Init` yourself you should set this flag to `false`. +A `LogLevel` which indicates the minimum level a log message needs to be sent to Sentry as a structured log. By default this value is `Info`. Set it to `Off` to send no logs. #### IgnoreEventsWithNoException @@ -211,11 +239,12 @@ logger.Error("Sentry error-event verification"); LogManager.Flush(); ``` -With `EnableLogs = true`, the informational message appears in **Logs**. The error message also creates an event in **Issues**. Call `LogManager.Shutdown()` when your application exits to dispose the target and flush pending data. +The informational message appears in **Logs**. The error message also creates an event in **Issues**. Call `LogManager.Shutdown()` when your application exits to dispose the target and flush pending data. ## Samples - A [simple example](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.NLog). +- An [example with ASP.NET Core](https://github.com/getsentry/sentry-dotnet/tree/main/samples/Sentry.Samples.AspNetCore.NLog). - Example of [advanced configuration](configuration/advanced-configuration-example/) ## Next Steps diff --git a/docs/platforms/dotnet/guides/serilog/index.mdx b/docs/platforms/dotnet/guides/serilog/index.mdx index 595e94954d19f..4416969cd2da9 100644 --- a/docs/platforms/dotnet/guides/serilog/index.mdx +++ b/docs/platforms/dotnet/guides/serilog/index.mdx @@ -20,7 +20,7 @@ The default value to report a log entry as an event to Sentry is `Error`. This means that out of the box, any `Log.Error` call will create an `Event` which will include breadcrumbs for prior log messages of level `Information`, `Warning`, `Error`, and `Fatal`. -Additionally, when enabled, log messages are sent to Sentry as [Structured Logs](logs/). You can control which logs are captured using the [Serilog MinimumLogLevel](https://github.com/serilog/serilog/wiki/Configuration-Basics#minimum-level). +Log messages are also sent to Sentry as [Structured Logs](logs/). You can control which logs are captured using the [Serilog MinimumLogLevel](https://github.com/serilog/serilog/wiki/Configuration-Basics#minimum-level). ## Install @@ -44,17 +44,24 @@ The integration excludes the Sentry SDK's own logger categories to avoid capturi ## Configure -If another integration already initializes Sentry, configure the Serilog sink without reinitializing the SDK. Enable `EnableLogs` on the options used by that integration to send structured logs. +Initialize Sentry first, with `SentrySdk.Init` or a host integration such as [ASP.NET Core](/platforms/dotnet/guides/aspnetcore/), then add the sink: ```csharp +using Sentry.Serilog; using Serilog; using Serilog.Events; +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + // Adds properties from the Serilog LogContext to Sentry events + options.UseSerilog(); +}); + Log.Logger = new LoggerConfiguration() .MinimumLevel.Debug() .WriteTo.Sentry(o => { - o.InitializeSdk = false; // Debug and higher are stored as breadcrumbs (default is Information) o.MinimumBreadcrumbLevel = LogEventLevel.Debug; // Warning and higher is sent as event (default is Error) @@ -63,6 +70,8 @@ Log.Logger = new LoggerConfiguration() .CreateLogger(); ``` +You can also configure the sink in `appsettings.json`: + ```json {filename:appsettings.json} { "Serilog": { @@ -83,43 +92,68 @@ Log.Logger = new LoggerConfiguration() } ``` -When Serilog owns initialization, provide the DSN and enable structured logs in the sink configuration: +The sink drops log events while Sentry isn't initialized. If a DSN can be found anyway, for example in the `SENTRY_DSN` environment variable, the sink also writes a warning to standard error the first time it drops an event. To fix it, initialize Sentry at startup as shown above. +### Apps That Call UseSentry + + + +### Serilog Properties on Events + +`UseSerilog()` copies the properties in Serilog's `LogContext` onto Sentry events as tags. If you initialize Sentry through a host integration, call it on that integration's options, for example in `UseSentry(options => options.UseSerilog())`. + +If you don't call it, the sink does this for you once it's running, so only events captured before then miss the properties. + +### Capturing Startup Crashes + +`UseSentry` starts Sentry when the host is built or, in ASP.NET Core, when the app starts running. If the app crashes before then, for example while it reads configuration or registers services, the crash isn't sent. + +Apps that use Serilog's [two-stage initialization](https://github.com/serilog/serilog-aspnetcore#two-stage-initialization) log these crashes with a bootstrap logger. To send them to Sentry too, also call `SentrySdk.Init` before you create the builder: + +```csharp {filename:Program.cs} +using Sentry.Serilog; +using Serilog; + +using var sentry = SentrySdk.Init(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.UseSerilog(); +}); -```csharp Log.Logger = new LoggerConfiguration() - .WriteTo.Sentry(o => - { - o.Dsn = "___PUBLIC_DSN___"; - o.EnableLogs = true; - }) - .CreateLogger(); -``` + .WriteTo.Sentry() + .CreateBootstrapLogger(); -```json {filename:appsettings.json} +try { - "Serilog": { - "Using": [ "Sentry.Serilog" ], - "WriteTo": [ - { - "Name": "Sentry", - "Args": { - "dsn": "___PUBLIC_DSN___", - "enableLogs": true - } - } - ] - } + var builder = WebApplication.CreateBuilder(args); + builder.Services.AddSerilog(config => config.WriteTo.Sentry()); + builder.UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + options.UseSerilog(); + }); + + var app = builder.Build(); + app.Run(); +} +catch (Exception ex) +{ + Log.Fatal(ex, "Application terminated unexpectedly"); + throw; +} +finally +{ + Log.CloseAndFlush(); } ``` - +The two initializations don't share anything: -Initialize the SDK once. The C# callback overload defaults `InitializeSdk` to `true` and can resolve a DSN from `SENTRY_DSN`. Set `InitializeSdk = false` when another integration or `SentrySdk.Init` owns initialization. Omitting the DSN from that callback doesn't prevent reinitialization: it uses `SENTRY_DSN` if set and replaces the existing SDK configuration, and otherwise throws because no DSN was found. - -The configuration-file overload infers initialization from its `dsn` argument. In the first JSON example, Sentry must already be initialized elsewhere; supplying `dsn`, as in the second example, enables initialization through the sink. - - +- `SentrySdk.Init` runs before the app reads `appsettings.json`, so set its DSN in code or with the `SENTRY_DSN` environment variable. +- `UseSentry` doesn't reuse those options. Give it a DSN as well, in its callback or the `Sentry` section, and call `UseSerilog()` again. +- Once `UseSentry` starts Sentry, it replaces the first initialization. Crashes before then are sent with the first initialization's options, such as its release and environment. Breadcrumbs logged before then aren't carried over. +- Crashes after then, such as a port that's already in use, are sent by `UseSentry`. `Log.Fatal` doesn't send them a second time. ### Options @@ -131,10 +165,6 @@ A `LogLevel` which indicates the minimum level a log message has to be included A `LogLevel` which indicates the minimum level a log message has to be sent to Sentry as an event. By default this value is `Error`. -#### InitializeSdk - -Whether or not this integration should initialize the SDK. If you intend to call `SentrySdk.Init` yourself you should set this flag to `false`. - #### RestrictedToMinimumLevel `MinimumBreadcrumbLevel` and `MinimumEventLevel` determine what the sink does with a log event, but every log event the logger captures still reaches the sink. If your logger's minimum level is verbose — for example, because another sink writes debug logs to a file — you can use Serilog's [per-sink minimum level](https://github.com/serilog/serilog/wiki/Configuration-Basics#overriding-per-sink) to stop lower-level log events from reaching Sentry entirely. @@ -160,7 +190,7 @@ Log.Information("Sentry logging verification"); Log.Error("Sentry error-event verification"); ``` -With `EnableLogs = true`, the informational message appears in **Logs**. The error message also creates an event in **Issues**. Call `Log.CloseAndFlush()` when your application exits to dispose the sink and flush pending data. +The informational message appears in **Logs**. The error message also creates an event in **Issues**. In a short-lived app, dispose the object that `SentrySdk.Init` returns, or call `SentrySdk.Flush()`, before the app exits. ## Samples diff --git a/docs/product/logs/getting-started/index.mdx b/docs/product/logs/getting-started/index.mdx index 22a2b112a8ae4..b25a5ef051684 100644 --- a/docs/product/logs/getting-started/index.mdx +++ b/docs/product/logs/getting-started/index.mdx @@ -315,6 +315,12 @@ To set up Sentry Logs, use the links below for supported SDKs. After it's been s url="/platforms/dotnet/guides/maui/logs/" skill="sentry-dotnet-sdk" /> +- - +- - +{ + options.Dsn = "___PUBLIC_DSN___"; + options.MinimumBreadcrumbLevel = LogLevel.None; + options.MinimumEventLevel = LogLevel.None; +}); +``` diff --git a/includes/dotnet-usesentry-logging/nlog.mdx b/includes/dotnet-usesentry-logging/nlog.mdx new file mode 100644 index 0000000000000..e7c41c47356b0 --- /dev/null +++ b/includes/dotnet-usesentry-logging/nlog.mdx @@ -0,0 +1,19 @@ +In an app that calls `UseSentry`, add NLog with `AddNLog` from the `NLog.Extensions.Logging` package, and set `ReplaceLoggerFactory`: + +```csharp {filename:Program.cs} +using NLog; +using NLog.Config; +using NLog.Extensions.Logging; + +var config = new LoggingConfiguration(); +config.AddSentry(); +LogManager.Configuration = config; + +builder.Logging.AddNLog(new NLogProviderOptions { ReplaceLoggerFactory = true }); +builder.UseSentry(options => +{ + options.Dsn = "___PUBLIC_DSN___"; +}); +``` + +`ReplaceLoggerFactory` replaces the app's `ILogger` factory with NLog's, so each `ILogger` entry reaches Sentry once, through the target. Without it, NLog runs alongside the `ILogger` integration that `UseSentry` adds, and Sentry receives every entry twice. NLog's rules then decide which entries are logged, instead of the `Logging` section of your configuration. The target sends entries at `Info` or higher to Sentry as logs. To change that level, set [`MinimumLogLevel`](/platforms/dotnet/guides/nlog/#minimumloglevel). In ASP.NET Core, `UseNLog` from the `NLog.Web.AspNetCore` package takes the same option. diff --git a/includes/dotnet-usesentry-logging/serilog.mdx b/includes/dotnet-usesentry-logging/serilog.mdx new file mode 100644 index 0000000000000..7d6e2dbc49f93 --- /dev/null +++ b/includes/dotnet-usesentry-logging/serilog.mdx @@ -0,0 +1,15 @@ +In an app that calls `UseSentry`, add Serilog to the builder's services with `AddSerilog` from the `Serilog.Extensions.Hosting` package, and add the sink there: + +```csharp {filename:Program.cs} +using Sentry.Serilog; +using Serilog; + +builder.Services.AddSerilog(config => config.WriteTo.Sentry()); +builder.UseSentry(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.UseSerilog(); +}); +``` + +`AddSerilog` replaces the app's `ILogger` factory with Serilog's, so each `ILogger` entry reaches Sentry once, through the sink. Don't use `builder.Logging.AddSerilog()` or `writeToProviders: true` instead. Both also send each entry through the `ILogger` integration that `UseSentry` adds, so Sentry receives it twice. diff --git a/includes/dotnet-v7-migration-overview.mdx b/includes/dotnet-v7-migration-overview.mdx index bca3081b0df20..646214196aba1 100644 --- a/includes/dotnet-v7-migration-overview.mdx +++ b/includes/dotnet-v7-migration-overview.mdx @@ -1,15 +1,7 @@ - - -There is no stable 7.0 release of the Sentry SDK for .NET yet. Until 7.0.0 ships, use the latest 7.0.0 release candidate from [NuGet](https://www.nuget.org/packages/Sentry/#versions-body-tab) 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). - -The release candidate's `net11.0` builds depend on the .NET 11 versions of `Microsoft.Extensions.Http`, `Microsoft.Extensions.Logging.Configuration` and `Microsoft.Extensions.Configuration.Binder`. `Sentry.AspNetCore.Blazor.WebAssembly` also depends on the .NET 11 version of `Microsoft.AspNetCore.Components.WebAssembly`. A .NET 11 app that directly references an older version of one of these packages, such as 10.0.x, fails to restore with error NU1605. The error message shows the version the Sentry package needs. Update the reference to that version, or remove it. - - - 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. +- **`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`](/platforms/dotnet/guides/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`. diff --git a/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx b/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx index 76e76106fe8e4..47fcc2716c432 100644 --- a/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx +++ b/includes/migration/dotnet-v7/call-usesentry-on-webapplicationbuilder.mdx @@ -11,7 +11,7 @@ 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: +In version 6.12.1 and earlier, `UseSentry` was only available on the web host: ```csharp {filename:Program.cs} var builder = WebApplication.CreateBuilder(args); @@ -51,4 +51,4 @@ public static class Extensions } ``` -When `UseSentry` from `Sentry.Extensions.Hosting` runs in an ASP.NET Core app, the SDK logs a warning through `ILogger` when the host starts. +When `UseSentry` from `Sentry.Extensions.Hosting` runs in an ASP.NET Core app, the SDK logs a warning through `ILogger` when the host starts. For the same call in a MAUI app, see [.NET Aspire Service Defaults](/platforms/dotnet/guides/extensions-hosting/#net-aspire-service-defaults) in the Generic Host guide. diff --git a/includes/migration/dotnet-v7/category-log-levels-no-longer-filter-breadcrumbs-and-events.mdx b/includes/migration/dotnet-v7/category-log-levels-no-longer-filter-breadcrumbs-and-events.mdx new file mode 100644 index 0000000000000..9c6bb48375330 --- /dev/null +++ b/includes/migration/dotnet-v7/category-log-levels-no-longer-filter-breadcrumbs-and-events.mdx @@ -0,0 +1,44 @@ +--- +id: category-log-levels-no-longer-filter-breadcrumbs-and-events +title: "Category Log Levels No Longer Filter Breadcrumbs and Events" +phase: verify +category: behavior +severity: behavior-change +frameworks: all +platformCategory: all +order: 15 +--- + +In version 7, category entries under `Logging:Sentry:LogLevel` filter only the `ILogger` entries that Sentry sends as logs. In version 6.12.1 and earlier, these entries also filtered breadcrumbs and events from the same category. The `Default` entry is unchanged: it has always applied only to logs. + +For example, this entry keeps `Microsoft.EntityFrameworkCore` entries below `Error` out of the logs: + +```json {filename:appsettings.json} +{ + "Logging": { + "Sentry": { + "LogLevel": { + "Microsoft.EntityFrameworkCore": "Error" + } + } + } +} +``` + +In 6.x, it kept them out of the breadcrumbs too. In 7.x, they show up as breadcrumbs. + +To keep filtering breadcrumbs and events by category, add a log entry filter where you initialize Sentry. The SDK drops an entry from breadcrumbs and events when the filter returns `true`: + +```csharp {filename:Program.cs} +using Sentry.Extensions.Logging; + +var builder = WebApplication.CreateBuilder(args); +builder.UseSentry(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.AddLogEntryFilter((category, level, eventId, exception) => + category.StartsWith("Microsoft.EntityFrameworkCore") && level < LogLevel.Error); +}); +``` + +If the app calls `Logging.AddSentry()` after `SentrySdk.Init`, call `AddLogEntryFilter` on the options of `Logging.AddSentry()` instead. diff --git a/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx b/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx index 84290d1012a22..5772557c4f264 100644 --- a/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx +++ b/includes/migration/dotnet-v7/enablelogs-is-removed-from-sentryoptions.mdx @@ -49,4 +49,4 @@ builder.UseSentry(options => 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). +The Serilog sink no longer takes an `enableLogs` argument. NLog's `enableLogs` setting is obsolete. `enableLogs="false"` still turns the target's logs off, and `enableLogs="true"` has no effect. Set `minimumLogLevel` to `Off` instead. To drop logs from any integration 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/generic-host-apps-call-usesentry.mdx b/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx index fe0bb345b47aa..0da4925c66f4b 100644 --- a/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx +++ b/includes/migration/dotnet-v7/generic-host-apps-call-usesentry.mdx @@ -9,7 +9,7 @@ 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. +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. The [Generic Host](/platforms/dotnet/guides/extensions-hosting/) guide shows the full setup. ```shell dotnet add package Sentry.Extensions.Hosting @@ -85,7 +85,7 @@ 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. +`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. The [Generic Host](/platforms/dotnet/guides/extensions-hosting/) guide shows the full setup. 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. 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 index df5887f87d5e5..b91827aed9bc2 100644 --- a/includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx +++ b/includes/migration/dotnet-v7/logging-integrations-no-longer-initialize-sentry.mdx @@ -18,7 +18,7 @@ Initialize Sentry with the call that matches your app: | 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` | +| Worker services, Azure Functions isolated worker apps and other apps on the .NET Generic Host | `UseSentry` from `Sentry.Extensions.Hosting`. See [Generic Host](/platforms/dotnet/guides/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` | diff --git a/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx b/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx index e8a636d93cd61..ba6bf246ed2b8 100644 --- a/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx +++ b/includes/migration/dotnet-v7/logging-integrations-send-logs.mdx @@ -9,14 +9,14 @@ 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. +The Serilog sink, the NLog target, the log4net appender and `Logging.AddSentry()` after `SentrySdk.Init` send the entries they receive to Sentry as logs. 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 NLog target gets the levels of the rules that write to it, and sends those at `Info` or higher. Set `MinimumLogLevel` on the target to change that level. - The log4net appender gets entries at its `threshold`. - `Logging.AddSentry()` gets the levels from the `Logging` configuration, which default to `Information`. 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 index 07c534b76613a..3a765e5b4d20a 100644 --- 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 @@ -115,4 +115,4 @@ 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). +The target now sends logs once you add it, so its `enableLogs` setting is obsolete. `enableLogs="false"` still turns logs off, and `enableLogs="true"` has no effect. In 6.x, once logs were on, the target sent every entry it received as a log. In 7.x, it sends entries at `Info` or higher, so set `minimumLogLevel` to keep sending `Trace` or `Debug` entries. 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/other-removed-and-internal-apis.mdx b/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx index f9422e5e10e14..757ccd5ef9890 100644 --- a/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx +++ b/includes/migration/dotnet-v7/other-removed-and-internal-apis.mdx @@ -11,12 +11,13 @@ 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. | +| 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. | +| `GetInternalSentryOptions()` on `ISentryClient` and `IHub` | Use `GetDiagnosticLogger()` on `IHub`, in the `Sentry.Extensibility` namespace, to get the SDK's diagnostic logger. The removed method was only meant for Sentry's own integrations. | The SDK ignores an `EnableScopeSync` key in the `Sentry` section of `appsettings.json`. diff --git a/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx b/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx index e14568a96c5f4..62d9324fc033a 100644 --- a/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx +++ b/includes/migration/dotnet-v7/supported-net-versions-and-platforms.mdx @@ -28,6 +28,8 @@ Each package keeps the .NET Standard and .NET Framework targets it had in 6.x. ` | Mac Catalyst | 15.0 | 17.0 | | iOS | 15.0 | 15.0 | +The [Supported Versions](/platforms/dotnet/guides/maui/#supported-versions) section of the MAUI guide also lists the minimum Windows version. + Move each mobile or MAUI project to .NET 10 or .NET 11 before you update the Sentry packages: ```xml {filename:MyApp.csproj} @@ -48,3 +50,5 @@ An app that targets .NET 11 also needs the higher platform minimums: 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. + +The `net11.0` builds of the Sentry packages depend on the .NET 11 versions of `Microsoft.Extensions.Http`, `Microsoft.Extensions.Logging.Configuration` and `Microsoft.Extensions.Configuration.Binder`. `Sentry.AspNetCore.Blazor.WebAssembly` also depends on the .NET 11 version of `Microsoft.AspNetCore.Components.WebAssembly`. A .NET 11 app that directly references an older version of one of these packages, such as 10.0.x, fails to restore with error NU1605. The error message shows the version the Sentry package needs. Update the reference to that version, or remove it. diff --git a/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx b/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx index d7721835d85d4..7ec0853392e81 100644 --- a/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx +++ b/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx @@ -1,8 +1,6 @@ Options can be set by passing a callback to the `UseSentry()` method which will pass the option object along for modifications: -### ASP.NET Core 6.0+: - ```csharp var builder = WebApplication.CreateBuilder(args); @@ -25,35 +23,6 @@ builder.WebHost.UseSentry(fun o -> ) |> ignore ``` -### ASP.NET Core 2.3 on .NET Framework: - -Although ASP.NET Core 2 is no longer supported for .NET Core, Microsoft maintain ASP.NET Core 2.3 to make it easier for people using .NET Framework to transition to ASP.NET Core. If you are using [ASP.NET Core 2.3 on .NET Framework](https://dotnet.microsoft.com/platform/support/policy/aspnet#dotnet-core) then you can configure Sentry using the `WebHostBuilder`: - -```csharp -public static IWebHost BuildWebHost(string[] args) => - WebHost.CreateDefaultBuilder(args) - // Add the following line: - .UseSentry(o => - { - o.Dsn = "___PUBLIC_DSN___"; - o.MaxBreadcrumbs = 50; - o.Debug = true; - o.SendDefaultPii = true; - }); -``` - -```fsharp -let BuildWebHost args = - WebHost.CreateDefaultBuilder(args) - // Add the following line: - .UseSentry(fun o -> - o.Dsn <- "___PUBLIC_DSN___" - o.MaxBreadcrumbs <- 50 - o.Debug <- true - o.SendDefaultPii <- true - ) -``` - Additionally, you can set your options on `appsettings.json` when using `UseSentry()`: diff --git a/platform-includes/configuration/config-intro/dotnet.azure-functions-worker.mdx b/platform-includes/configuration/config-intro/dotnet.azure-functions-worker.mdx new file mode 100644 index 0000000000000..008c73a85c5b8 --- /dev/null +++ b/platform-includes/configuration/config-intro/dotnet.azure-functions-worker.mdx @@ -0,0 +1,26 @@ +Pass the options to `UseSentry` in a callback: + +```csharp {filename:Program.cs} +using Microsoft.Extensions.Hosting; + +var host = new HostBuilder() + .ConfigureFunctionsWorkerDefaults() + .UseSentry(options => + { + options.Dsn = "___PUBLIC_DSN___"; + options.MaxBreadcrumbs = 50; + options.Debug = true; + options.SendDefaultPii = true; + }) + .Build(); +``` + +`UseSentry` also reads the `Sentry` section of your app's configuration. It applies the configuration first and then runs the callback, so a value set in the callback wins. + + + +After you have configured Sentry in your code, you can also configure the +[MSBuild setup](/platforms/dotnet/configuration/msbuild/) for your project. While this step is optional, +it can greatly improve your Sentry experience. + + diff --git a/platform-includes/configuration/config-intro/dotnet.extensions-hosting.mdx b/platform-includes/configuration/config-intro/dotnet.extensions-hosting.mdx new file mode 100644 index 0000000000000..8077b5ee80311 --- /dev/null +++ b/platform-includes/configuration/config-intro/dotnet.extensions-hosting.mdx @@ -0,0 +1,35 @@ +Pass the options to `UseSentry` in a callback: + +```csharp {filename:Program.cs} +var builder = Host.CreateApplicationBuilder(args); +builder.UseSentry(options => +{ + options.Dsn = "___PUBLIC_DSN___"; + options.MaxBreadcrumbs = 50; + options.Debug = true; + options.SendDefaultPii = true; +}); +``` + +You can also set them in the `Sentry` section of `appsettings.json`: + +```json {filename:appsettings.json} +{ + "Sentry": { + "Dsn": "___PUBLIC_DSN___", + "MaxBreadcrumbs": 50, + "Debug": true, + "SendDefaultPii": true + } +} +``` + +`UseSentry` applies the configuration first and then runs the callback, so a value set in the callback wins. + + + +After you have configured Sentry in your code, you can also configure the +[MSBuild setup](/platforms/dotnet/configuration/msbuild/) for your project. While this step is optional, +it can greatly improve your Sentry experience. + + diff --git a/platform-includes/configuration/config-intro/dotnet.nlog.mdx b/platform-includes/configuration/config-intro/dotnet.nlog.mdx deleted file mode 100644 index fcde9145aad18..0000000000000 --- a/platform-includes/configuration/config-intro/dotnet.nlog.mdx +++ /dev/null @@ -1,87 +0,0 @@ - - -For more information on how to dynamically set event data via `NLog.config`, see NLog's [layout renderer documentation](https://nlog-project.org/config/?tab=layout-renderers). - - - -You can configure the Sentry NLog target via `NLog.config` or by code as follows: - - -```xml {tabTitle:NLog.config} - - - - - - - - - - - - - - - - - - - -``` - -```csharp -using NLog; -using Sentry.NLog; - -LogManager.Configuration.AddSentry(o => -{ - // Optionally specify a separate format for message - o.Layout = "${message}"; - // Optionally specify a separate format for breadcrumbs - o.BreadcrumbLayout = "${logger}: ${message}"; - - // Debug and higher are stored as breadcrumbs (default is Info) - o.MinimumBreadcrumbLevel = LogLevel.Debug; - - // Error and higher is sent as event (default is Error) - o.MinimumEventLevel = LogLevel.Error; - - // Send the logger name as a tag - o.AddTag("logger", "${logger}"); - - // All Sentry Options are accessible here. -}); -``` - -```fsharp -open NLog -open Sentry.NLog - -LogManager.Configuration.AddSentry( - fun o -> - // Optionally specify a separate format for message - o.Layout <- "${message}" - // Optionally specify a separate format for breadcrumbs - o.BreadcrumbLayout <- "${logger}: ${message}" - - // Debug and higher are stored as breadcrumbs (default is Info) - o.MinimumBreadcrumbLevel <- LogLevel.Debug - - // Error and higher is sent as event (default is Error) - o.MinimumEventLevel <- LogLevel.Error - - // Send the logger name as a tag - o.AddTag("logger", "${logger}") - - // All Sentry Options are accessible here. -) -``` diff --git a/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx b/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx index 346787f21dac8..205b0cf88aa54 100644 --- a/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx +++ b/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx @@ -15,7 +15,7 @@ For more information on how to dynamically set event tags via `NLog.config`, see - + @@ -29,7 +29,6 @@ For more information on how to dynamically set event tags via `NLog.config`, see ```csharp LogManager.Configuration.AddSentry(options => { - options.Dsn = "___PUBLIC_DSN___"; // Tags configured on the target can use NLog layouts options.AddTag("logger", "${logger}"); }); @@ -38,7 +37,6 @@ LogManager.Configuration.AddSentry(options => ```fsharp LogManager.Configuration.AddSentry( fun options -> - options.Dsn <- "___PUBLIC_DSN___" // Tags configured on the target can use NLog layouts options.AddTag("logger", "${logger}") ) |> ignore diff --git a/platform-includes/enriching-events/set-user/dotnet.nlog.mdx b/platform-includes/enriching-events/set-user/dotnet.nlog.mdx index 28ec6343db210..5a0a64254a568 100644 --- a/platform-includes/enriching-events/set-user/dotnet.nlog.mdx +++ b/platform-includes/enriching-events/set-user/dotnet.nlog.mdx @@ -15,7 +15,7 @@ - + @@ -29,7 +29,7 @@ ```csharp SentrySdk.ConfigureScope(scope => { - scope.User = new User + scope.User = new SentryUser { Email = "john.doe@example.com" }; @@ -39,7 +39,7 @@ SentrySdk.ConfigureScope(scope => ```fsharp SentrySdk.ConfigureScope( fun scope -> - scope.User <- User(Email = "john.doe@example.com") + scope.User <- SentryUser(Email = "john.doe@example.com") () ) ``` diff --git a/platform-includes/logs/integrations/dotnet.mdx b/platform-includes/logs/integrations/dotnet.mdx index 59ccbcc7930f4..ec150ea6469a3 100644 --- a/platform-includes/logs/integrations/dotnet.mdx +++ b/platform-includes/logs/integrations/dotnet.mdx @@ -2,6 +2,7 @@ Available integrations: