diff --git a/docs/platforms/android/index.mdx b/docs/platforms/android/index.mdx index e4264395c361f..945e8ab4e7625 100644 --- a/docs/platforms/android/index.mdx +++ b/docs/platforms/android/index.mdx @@ -52,7 +52,7 @@ Sentry captures data by using an SDK within your application's runtime. These ar We recommend installing the SDK through our [Sentry Wizard](https://github.com/getsentry/sentry-wizard) by running one of the following commands inside your project directory: -```bash {tabTitle:brew} +```bash {tabTitle:brew} {mdExpandTabs} brew install getsentry/tools/sentry-wizard && sentry-wizard -i android ``` diff --git a/docs/platforms/android/integrations/spotlight/index.mdx b/docs/platforms/android/integrations/spotlight/index.mdx index 93018cf8290b8..8dfe6798e88fa 100644 --- a/docs/platforms/android/integrations/spotlight/index.mdx +++ b/docs/platforms/android/integrations/spotlight/index.mdx @@ -23,7 +23,7 @@ If you need Spotlight in all build types, use `implementation` instead of `debug ## Configure -```xml {tabTitle:XML} +```xml {tabTitle:XML} {mdExpandTabs} diff --git a/docs/platforms/android/session-replay/configuration.mdx b/docs/platforms/android/session-replay/configuration.mdx index cdc5d500ab56f..2134f040fd3b6 100644 --- a/docs/platforms/android/session-replay/configuration.mdx +++ b/docs/platforms/android/session-replay/configuration.mdx @@ -56,7 +56,7 @@ If you've configured `networkDetailAllowUrls` but don't see request/response bod Any URL matching the given pattern(s) will then be captured with additional details: -```kotlin {tabTitle:Kotlin} +```kotlin {tabTitle:Kotlin} {mdExpandTabs} SentryAndroid.init(this) { options -> options.sessionReplay.networkDetailAllowUrls = listOf("https://example.com") } diff --git a/docs/platforms/android/troubleshooting/index.mdx b/docs/platforms/android/troubleshooting/index.mdx index 8eeb5f69dd406..f3a6786fae980 100644 --- a/docs/platforms/android/troubleshooting/index.mdx +++ b/docs/platforms/android/troubleshooting/index.mdx @@ -34,7 +34,7 @@ android { The Sentry Android SDK may trigger ANRs or StrictMode violations due to minimal file I/O operations required for event processing and context collection. Since version `6.1.1` of the Sentry SDK for Android you can reduce violations by disabling additional context collection: -```xml {tabTitle:AndroidManifest.xml} +```xml {tabTitle:AndroidManifest.xml} {mdExpandTabs} diff --git a/docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx b/docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx index 9358ae0f1c0f4..659ba7dd345dd 100644 --- a/docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx +++ b/docs/platforms/dart/guides/flutter/enriching-events/viewhierarchy/index.mdx @@ -32,7 +32,7 @@ If you want to capture view hierarchies regardless of the debounce, you can igno -```dart {tabTitle: Respect debounce} {2-9} +```dart {tabTitle: Respect debounce} {mdExpandTabs} {2-9} await SentryFlutter.init((options) { options.beforeCaptureViewHierarchy = (event, hint, shouldDebounce) async { // If debounce is active, skip capturing diff --git a/docs/platforms/dart/guides/flutter/index.mdx b/docs/platforms/dart/guides/flutter/index.mdx index 2d8fb7e105637..d12c2a3c628ef 100644 --- a/docs/platforms/dart/guides/flutter/index.mdx +++ b/docs/platforms/dart/guides/flutter/index.mdx @@ -43,7 +43,7 @@ Sentry captures data by using an SDK within your application's runtime. These ar We recommend installing the SDK through our [Sentry Wizard](https://github.com/getsentry/sentry-wizard) by running one of the following commands inside your project directory: -```bash {tabTitle:brew} +```bash {tabTitle:brew} {mdExpandTabs} brew install getsentry/tools/sentry-wizard && sentry-wizard -i flutter ``` diff --git a/docs/platforms/dotnet/guides/aspnetcore/index.mdx b/docs/platforms/dotnet/guides/aspnetcore/index.mdx index b4afdaa7efb93..51b92ab1c2966 100644 --- a/docs/platforms/dotnet/guides/aspnetcore/index.mdx +++ b/docs/platforms/dotnet/guides/aspnetcore/index.mdx @@ -38,7 +38,7 @@ The simplest way to initialize Sentry in ASP.NET Core is by using the `UseSentry When configuring the SDK via the frameworks configuration system, it's possible to add the SDK by simply calling `UseSentry` without providing any further information. The SDK provides this as extension methods to support ASP.NET Core `2.X`, `3.X`, and `5.X` and later: -```csharp {tabTitle:WebApplication} +```csharp {tabTitle:WebApplication} {mdExpandTabs} var builder = WebApplication.CreateBuilder(args); builder.WebHost.UseSentry(); // Initialize Sentry ``` @@ -95,7 +95,7 @@ Setting `TracesSampleRate` to `1.0` in this example configures Sentry to capture It's also possible to bind properties to the SDK via environment variables, like: -```shell {tabTitle:Windows} +```shell {tabTitle:Windows} {mdExpandTabs} set Sentry__Debug=true ``` diff --git a/docs/platforms/godot/configuration/stack-traces.mdx b/docs/platforms/godot/configuration/stack-traces.mdx index add937fdccd6b..9674a51dc492d 100644 --- a/docs/platforms/godot/configuration/stack-traces.mdx +++ b/docs/platforms/godot/configuration/stack-traces.mdx @@ -20,7 +20,7 @@ Ensure you have a compatible C++ compiler. On Windows, for instance, you can use Here are a few ways to install the **SCons** build tool: -```PowerShell {tabTitle:Windows} +```PowerShell {tabTitle:Windows} {mdExpandTabs} # If you have `scoop` installed: scoop install scons ``` @@ -73,7 +73,7 @@ For Android compilation, Godot requires the Swappy frame pacing library. Downloa To compile the Godot export templates with debug symbols, run the following commands: -```bash {tabTitle:Windows/Linux} +```bash {tabTitle:Windows/Linux} {mdExpandTabs} scons target=template_release production=yes debug_symbols=yes separate_debug_symbols=yes ``` @@ -169,7 +169,7 @@ In order to get readable stack traces in Sentry, you also need to upload your de -```PowerShell {tabTitle:Windows} +```PowerShell {tabTitle:Windows} {mdExpandTabs} # On Windows, if you have `scoop` installed: scoop install sentry-cli ``` @@ -219,7 +219,7 @@ For iOS projects, you must export your project to a directory first, then run th You can also create the source bundles separately from the upload step by running: -```PowerShell {tabTitle:Windows} +```PowerShell {tabTitle:Windows} {mdExpandTabs} sentry-cli debug-files bundle-sources bin\godot.windows.template_release.x86_64.pdb sentry-cli debug-files bundle-sources bin\godot.windows.template_release.x86_64.console.pdb ``` diff --git a/docs/platforms/java/common/async/index.mdx b/docs/platforms/java/common/async/index.mdx index 78aeabd8734e4..30413d03fd78d 100644 --- a/docs/platforms/java/common/async/index.mdx +++ b/docs/platforms/java/common/async/index.mdx @@ -14,7 +14,7 @@ Sentry's SDK for Java stores the scope and the context in a thread-local variabl To propagate Sentry scope to Spring MVC methods returning a `Callable` or a `StreamingResponseBody`, a `ThreadPoolTaskExecutor` decorated with `SentryTaskDecorator` must be set on the `AsyncSupportConfigurer` through an implementation of `WebMvcConfigurer`: -```java {tabTitle:Java (Spring 5)} +```java {tabTitle:Java (Spring 5)} {mdExpandTabs} import org.springframework.context.annotation.Configuration; import org.springframework.core.task.AsyncTaskExecutor; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; @@ -168,7 +168,7 @@ class AsyncWebMvcConfiguration : WebMvcConfigurer { Alternatively, if there is a single bean of type `TaskDecorator` in the context, instead of custom `WebMvcConfigurer`, it is enough to create a `SentryTaskDecorator` bean. -```java {tabTitle:Java (Spring 5)} +```java {tabTitle:Java (Spring 5)} {mdExpandTabs} import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -264,7 +264,7 @@ class SentryConfig { To propagate Sentry scope to Spring `@Async` annotated methods, a custom `AsyncConfigurerSupport` must be configured to return a `ThreadPoolTaskExecutor` decorated with `SentryTaskDecorator`: -```java {tabTitle:Java (Spring 5)} +```java {tabTitle:Java (Spring 5)} {mdExpandTabs} import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.AsyncConfigurerSupport; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; diff --git a/docs/platforms/java/common/integrations/graphql.mdx b/docs/platforms/java/common/integrations/graphql.mdx index 2eef510186392..5e1d2c092326d 100644 --- a/docs/platforms/java/common/integrations/graphql.mdx +++ b/docs/platforms/java/common/integrations/graphql.mdx @@ -24,7 +24,7 @@ If you're using version 22 of `graphql-java`, please refer to -```typescript {tabTitle: App Config} {filename: main.ts} {5-48} +```typescript {tabTitle: App Config} {mdExpandTabs} {filename: main.ts} {5-48} import { bootstrapApplication } from "@angular/platform-browser"; import { appConfig } from "./app/app.config"; import { AppComponent } from "./app/app.component"; @@ -262,7 +262,7 @@ If your Angular app is configured for SSR, make sure that the Sentry providers a -```typescript {tabTitle: App Config (Angular 19+)} {filename: app.config.ts} {9, 14-25} +```typescript {tabTitle: App Config (Angular 19+)} {mdExpandTabs} {filename: app.config.ts} {9, 14-25} import { ApplicationConfig, ErrorHandler, diff --git a/docs/platforms/javascript/guides/aws-lambda/index.mdx b/docs/platforms/javascript/guides/aws-lambda/index.mdx index f144e28154afd..27d94b8d6422d 100644 --- a/docs/platforms/javascript/guides/aws-lambda/index.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/index.mdx @@ -39,7 +39,7 @@ After installing the SDK, you might want to configure some parameters. Besides t Once set up, verify that Sentry is reporting errors correctly by throwing a sample error in one of your functions: -```javascript {filename:index.js}{tabTitle:CommonJS}{2} +```javascript {filename:index.js}{tabTitle:CommonJS} {mdExpandTabs}{2} exports.handler = async (event, context) => { throw new Error("This is a test error"); }; diff --git a/docs/platforms/javascript/guides/capacitor/index.mdx b/docs/platforms/javascript/guides/capacitor/index.mdx index d4f0ab845d7aa..e7fa8c2588ce5 100644 --- a/docs/platforms/javascript/guides/capacitor/index.mdx +++ b/docs/platforms/javascript/guides/capacitor/index.mdx @@ -121,7 +121,7 @@ To verify that Sentry captures errors and creates issues in your Sentry project, -```javascript {tabTitle: Angular 12, 13, 14+} +```javascript {tabTitle: Angular 12, 13, 14+} {mdExpandTabs} @Component({ selector: "app-root", template: ` @@ -202,7 +202,7 @@ Then, open the page in a browser and click the button to trigger a frontend erro -```javascript {tabTitle: Angular 12, 13, 14+} +```javascript {tabTitle: Angular 12, 13, 14+} {mdExpandTabs} import * as Sentry from "@sentry/capacitor"; @Component({ diff --git a/docs/platforms/javascript/guides/elysia/index.mdx b/docs/platforms/javascript/guides/elysia/index.mdx index 3e854616aa895..8cdf34dd6b14b 100644 --- a/docs/platforms/javascript/guides/elysia/index.mdx +++ b/docs/platforms/javascript/guides/elysia/index.mdx @@ -52,7 +52,7 @@ Run the command for your runtime and preferred package manager to add the Sentry -```bash {tabTitle:Bun} +```bash {tabTitle:Bun} {mdExpandTabs} bun add @sentry/elysia ``` @@ -79,7 +79,7 @@ Call `Sentry.init()` before creating your Elysia app, then wrap the app with `Se -```javascript {tabTitle:Bun} {filename: index.ts} +```javascript {tabTitle:Bun} {mdExpandTabs} {filename: index.ts} import * as Sentry from "@sentry/elysia"; import { Elysia } from "elysia"; diff --git a/docs/platforms/javascript/guides/gcp-functions/index.mdx b/docs/platforms/javascript/guides/gcp-functions/index.mdx index 1f7967a396541..b6b393f7a62ff 100644 --- a/docs/platforms/javascript/guides/gcp-functions/index.mdx +++ b/docs/platforms/javascript/guides/gcp-functions/index.mdx @@ -88,7 +88,7 @@ Let's verify that Sentry captures errors and creates issues in your Sentry proje -```javascript {tabTitle:Http functions} +```javascript {tabTitle:Http functions} {mdExpandTabs} exports.helloHttp = Sentry.wrapHttpFunction((req, res) => { throw new Error("Sentry Test Error - This is intentional!"); }); @@ -123,7 +123,7 @@ To test tracing, wrap your code in a span: -```javascript {tabTitle:Http functions} +```javascript {tabTitle:Http functions} {mdExpandTabs} exports.helloHttp = Sentry.wrapHttpFunction(async (req, res) => { await Sentry.startSpan( { op: "test", name: "My First Test Transaction" }, diff --git a/docs/platforms/javascript/guides/hono/index.mdx b/docs/platforms/javascript/guides/hono/index.mdx index 99f86b83b2ea6..307b2bf8ecb45 100644 --- a/docs/platforms/javascript/guides/hono/index.mdx +++ b/docs/platforms/javascript/guides/hono/index.mdx @@ -73,7 +73,7 @@ The SDK needs a runtime-specific peer dependency. Install the one that matches y -```bash {tabTitle:Cloudflare Workers} +```bash {tabTitle:Cloudflare Workers} {mdExpandTabs} npm install @sentry/cloudflare ``` diff --git a/docs/platforms/javascript/guides/nextjs/index.mdx b/docs/platforms/javascript/guides/nextjs/index.mdx index c5a594ed3a87d..536b5ca3cb34d 100644 --- a/docs/platforms/javascript/guides/nextjs/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/index.mdx @@ -56,7 +56,7 @@ Next.js runs code in different environments. The wizard creates separate initial -```typescript {tabTitle:Client} {filename:instrumentation-client.ts} +```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} import * as Sentry from "@sentry/nextjs"; Sentry.init({ diff --git a/docs/platforms/javascript/guides/nextjs/logs/index.mdx b/docs/platforms/javascript/guides/nextjs/logs/index.mdx index 65f608df70d68..3fc934aa5c326 100644 --- a/docs/platforms/javascript/guides/nextjs/logs/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/logs/index.mdx @@ -29,7 +29,7 @@ Logs work across all Next.js runtimes: -```typescript {tabTitle:Client} {filename:instrumentation-client.ts} +```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} import * as Sentry from "@sentry/nextjs"; Sentry.init({ diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx index c1eab4244b2d0..6bed132469659 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx @@ -126,7 +126,7 @@ Create the following files in your application's root directory (or `src` folder -```typescript {tabTitle:Client} {filename:instrumentation-client.ts} +```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} import * as Sentry from "@sentry/nextjs"; Sentry.init({ diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx index fba8d1ecd212c..efeacffe3b688 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx @@ -150,7 +150,7 @@ Create the following files in your application's root directory (or `src` folder -```typescript {tabTitle:Client} {filename:sentry.client.config.ts} +```typescript {tabTitle:Client} {mdExpandTabs} {filename:sentry.client.config.ts} import * as Sentry from "@sentry/nextjs"; Sentry.init({ diff --git a/docs/platforms/javascript/guides/nextjs/tracing/index.mdx b/docs/platforms/javascript/guides/nextjs/tracing/index.mdx index 0544b175f90af..796215ac63554 100644 --- a/docs/platforms/javascript/guides/nextjs/tracing/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/tracing/index.mdx @@ -33,7 +33,7 @@ Add `tracesSampleRate` to your Sentry configuration in all three runtime files. -```typescript {tabTitle:Client} {filename:instrumentation-client.ts} +```typescript {tabTitle:Client} {mdExpandTabs} {filename:instrumentation-client.ts} import * as Sentry from "@sentry/nextjs"; Sentry.init({ diff --git a/docs/platforms/javascript/guides/nitro/index.mdx b/docs/platforms/javascript/guides/nitro/index.mdx index a4f10b515e56e..d634c4e8e626f 100644 --- a/docs/platforms/javascript/guides/nitro/index.mdx +++ b/docs/platforms/javascript/guides/nitro/index.mdx @@ -83,7 +83,7 @@ Wrap your Nitro config with `withSentryConfig` so the Sentry module is registere SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ ``` -```typescript {tabTitle:nitro.config.ts} {filename: nitro.config.ts} +```typescript {tabTitle:nitro.config.ts} {mdExpandTabs} {filename: nitro.config.ts} import { defineNitroConfig } from "nitro/config"; import { withSentryConfig } from "@sentry/nitro"; diff --git a/docs/platforms/javascript/guides/svelte/index.mdx b/docs/platforms/javascript/guides/svelte/index.mdx index 1a3cff5ee26de..0a425f3bdc2fc 100644 --- a/docs/platforms/javascript/guides/svelte/index.mdx +++ b/docs/platforms/javascript/guides/svelte/index.mdx @@ -67,7 +67,7 @@ To use the SDK, initialize it in your Svelte entry point before bootstrapping yo -```javascript {tabTitle: Svelte v5+} {filename: main.js} +```javascript {tabTitle: Svelte v5+} {mdExpandTabs} {filename: main.js} import { mount } from "svelte"; import "./app.css"; import App from "./App.svelte"; @@ -222,7 +222,7 @@ To verify that Sentry captures errors and creates issues in your Sentry project, -```jsx {tabTitle:Svelte v5+} {filename:SomeComponent.svelte} +```jsx {tabTitle:Svelte v5+} {mdExpandTabs} {filename:SomeComponent.svelte}