diff --git a/docs/cli/crons.mdx b/docs/cli/crons.mdx index 45fcb47e2b6cc8..dd285d4cf2074a 100644 --- a/docs/cli/crons.mdx +++ b/docs/cli/crons.mdx @@ -23,7 +23,6 @@ To begin monitoring your recurring, scheduled job: The Sentry CLI uses your Monitor's project DSN to authorize check-ins. To set it up, export the `SENTRY_DSN` environment variable: - ```bash export SENTRY_DSN=___PUBLIC_DSN___ @@ -31,7 +30,6 @@ export SENTRY_DSN=___PUBLIC_DSN___ Alternatively, you can add it to your `~/.sentryclirc` config: - ```ini {filename:~/.sentryclirc} [auth] diff --git a/docs/cli/metrics.mdx b/docs/cli/metrics.mdx index 8da83248016341..f4c2f48eed966a 100644 --- a/docs/cli/metrics.mdx +++ b/docs/cli/metrics.mdx @@ -13,7 +13,6 @@ Learn more about [Metrics](/product/explore/metrics). The Sentry CLI uses your project's DSN to authorize sending metrics. To set it up, export the `SENTRY_DSN` environment variable: - ```bash export SENTRY_DSN=___PUBLIC_DSN___ ``` diff --git a/docs/cli/send-event.mdx b/docs/cli/send-event.mdx index 47ef0b4f1d0ca1..18f7532dc05994 100644 --- a/docs/cli/send-event.mdx +++ b/docs/cli/send-event.mdx @@ -6,7 +6,6 @@ description: "Learn how Sentry's command line interface can be used for sending The `sentry-cli` tool can also be used for sending events. If you want to use it, you need to export the `SENTRY_DSN` environment variable and point it to the DSN of a project of yours: - ```bash export SENTRY_DSN='___PUBLIC_DSN___' @@ -103,7 +102,6 @@ The limitations for this are: Usage: - ```bash #!/bin/bash diff --git a/docs/platforms/android/configuration/gradle.mdx b/docs/platforms/android/configuration/gradle.mdx index b5364ae85d35b8..c833a338e32f1b 100644 --- a/docs/platforms/android/configuration/gradle.mdx +++ b/docs/platforms/android/configuration/gradle.mdx @@ -53,7 +53,6 @@ export SENTRY_AUTH_TOKEN=___ORG_AUTH_TOKEN___ We expose the following configuration values directly in your `app/build.gradle`: - ````groovy import io.sentry.android.gradle.extensions.InstrumentationFeature diff --git a/docs/platforms/android/configuration/manual-init.mdx b/docs/platforms/android/configuration/manual-init.mdx index 25a22ee5d3e395..1a789ec974f7d9 100644 --- a/docs/platforms/android/configuration/manual-init.mdx +++ b/docs/platforms/android/configuration/manual-init.mdx @@ -60,7 +60,6 @@ The SDK can catch errors and crashes only after you've initialized it. So, we re Configuration options will be loaded from the manifest so that you don't need to have the static properties in your code. In the `init` method, you can provide a callback that will modify the configuration and also register new options. - ```java import io.sentry.SentryLevel; diff --git a/docs/platforms/android/index.mdx b/docs/platforms/android/index.mdx index d793539ab6b416..9aaf0410419abb 100644 --- a/docs/platforms/android/index.mdx +++ b/docs/platforms/android/index.mdx @@ -64,7 +64,6 @@ The wizard will prompt you to log in to Sentry. It'll then automatically do the Configuration is done via the application `AndroidManifest.xml`. Here's an example config which should get you started: - ```xml {filename:AndroidManifest.xml} {"onboardingOptions": {"performance": "4-5", "profiling": "6-7"}} diff --git a/docs/platforms/android/manual-setup/index.mdx b/docs/platforms/android/manual-setup/index.mdx index 01e54d188757cc..a77232c6a67f9c 100644 --- a/docs/platforms/android/manual-setup/index.mdx +++ b/docs/platforms/android/manual-setup/index.mdx @@ -30,7 +30,6 @@ Version `{{@inject packages.version('sentry.java.android.gradle-plugin', '3.0.0' Configuration is done via the application `AndroidManifest.xml`. Here's an example config which should get you started: - ```xml {filename:AndroidManifest.xml} diff --git a/docs/platforms/android/migration/index.mdx b/docs/platforms/android/migration/index.mdx index 362300bf27a8c1..c24b4c1cf0c17b 100644 --- a/docs/platforms/android/migration/index.mdx +++ b/docs/platforms/android/migration/index.mdx @@ -430,7 +430,6 @@ The file `sentry.properties` used by the previous version of the SDK has been di Example of the configuration in the Manifest: - ```xml @@ -461,7 +460,6 @@ To initialize the SDK manually: - Initialize the SDK directly in your application: - ```java SentryAndroid.init(this, options -> { diff --git a/docs/platforms/android/profiling/index.mdx b/docs/platforms/android/profiling/index.mdx index 11a52845381420..f9196139bc3060 100644 --- a/docs/platforms/android/profiling/index.mdx +++ b/docs/platforms/android/profiling/index.mdx @@ -35,7 +35,6 @@ App start profiling is available starting in SDK version `7.3.0`. In `AndroidManifest.xml`: - ```xml diff --git a/docs/platforms/android/session-replay/index.mdx b/docs/platforms/android/session-replay/index.mdx index 472bce46ece26b..1c4557ffcb00a9 100644 --- a/docs/platforms/android/session-replay/index.mdx +++ b/docs/platforms/android/session-replay/index.mdx @@ -72,7 +72,6 @@ SentryAndroid.init(context) { options -> ``` - ## Verify diff --git a/docs/platforms/apple/common/configuration/app-hangs.mdx b/docs/platforms/apple/common/configuration/app-hangs.mdx index 1be4f26683507b..08b5ec03c7196d 100644 --- a/docs/platforms/apple/common/configuration/app-hangs.mdx +++ b/docs/platforms/apple/common/configuration/app-hangs.mdx @@ -30,7 +30,6 @@ Because the app hang detection integration uses SentryCrashIntegration to captur You can filter and modify app hang events in `beforeSend` by checking the event exception type: - ```swift {tabTitle:Swift} import Sentry @@ -62,7 +61,6 @@ SentrySDK.start { options in Starting with version 8.0.0, this feature has been enabled by default. To disable it: - ```swift {tabTitle:Swift} import Sentry @@ -85,7 +83,6 @@ SentrySDK.start { options in You can change the timeout by changing the `appHangTimeoutInterval` option: - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/common/configuration/http-client-errors.mdx b/docs/platforms/apple/common/configuration/http-client-errors.mdx index df2c67c85d6df4..c237ab5c8542ca 100644 --- a/docs/platforms/apple/common/configuration/http-client-errors.mdx +++ b/docs/platforms/apple/common/configuration/http-client-errors.mdx @@ -8,7 +8,6 @@ Once enabled, this feature automatically captures HTTP client errors, like bad r Since 8.0.0, this feature has been enabled by default. To disable it: - ```swift {tabTitle:Swift} import Sentry @@ -30,7 +29,6 @@ SentrySDK.start { options in By default, only HTTP client errors with a response code between `500` and `599` are captured as error events, but you can change this behavior by setting the `failedRequestStatusCodes` option: - ```swift {tabTitle:Swift} import Sentry @@ -55,7 +53,6 @@ SentrySDK.start { options in HTTP client errors from every target (`.*` regular expression) are automatically captured, but you can change this behavior by setting the `failedRequestTargets` option with either a regular expression or a plain `String`. A plain string must contain at least one of the items from the list. Plain strings don't have to be full matches, meaning the URL of a request is matched when it contains a string provided through the option: - ```swift {tabTitle:Swift} import Sentry @@ -83,7 +80,6 @@ These events are searchable and you can set alerts on them if you use the `http. The captured error event can be customized or dropped with a `beforeSend`: - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/common/configuration/metric-kit.mdx b/docs/platforms/apple/common/configuration/metric-kit.mdx index e8d6f2fc5ab306..2fd5973997c22d 100644 --- a/docs/platforms/apple/common/configuration/metric-kit.mdx +++ b/docs/platforms/apple/common/configuration/metric-kit.mdx @@ -15,7 +15,6 @@ You can identify MetricKit events by looking at the `mx_hang_diagnostic`, `mx_cp Enable this feature by setting the `enableMetricKit` option to `true`: - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/common/configuration/options.mdx b/docs/platforms/apple/common/configuration/options.mdx index f639dacc81c220..e3e87dc5c1242f 100644 --- a/docs/platforms/apple/common/configuration/options.mdx +++ b/docs/platforms/apple/common/configuration/options.mdx @@ -142,7 +142,6 @@ This option can be overridden using A block that configures the initial scope when starting the SDK. - ```swift import Sentry diff --git a/docs/platforms/apple/common/configuration/out-of-memory.mdx b/docs/platforms/apple/common/configuration/out-of-memory.mdx index 75cf3749de7b69..b7077ebd78b613 100644 --- a/docs/platforms/apple/common/configuration/out-of-memory.mdx +++ b/docs/platforms/apple/common/configuration/out-of-memory.mdx @@ -8,7 +8,6 @@ We renamed this integration to ```swift {tabTitle:Swift} import Sentry @@ -192,7 +191,6 @@ This version uses the [envelope endpoint](https://develop.sentry.dev/sdk/envelop We removed the [deprecated SDK inits](https://github.com/getsentry/sentry-cocoa/blob/5.2.2/Sources/Sentry/include/SentrySDK.h#L35-L47). The recommended way to initialize Sentry is now: - ```swift {tabTitle:Swift} import Sentry @@ -318,7 +316,6 @@ The samples below illustrate how the SDK works: Example in 4.x: - ```swift {tabTitle:Swift} do { @@ -341,7 +338,6 @@ if (nil != error) { Example in 5.x: - ```swift {tabTitle:Swift} SentrySDK.start(options: [ diff --git a/docs/platforms/apple/common/profiling/index.mdx b/docs/platforms/apple/common/profiling/index.mdx index be58fe0d9ce2b1..eab36525ce4a6e 100644 --- a/docs/platforms/apple/common/profiling/index.mdx +++ b/docs/platforms/apple/common/profiling/index.mdx @@ -19,7 +19,6 @@ notSupported: Profiling depends on Sentry’s Tracing product being enabled beforehand. To enable tracing in the SDK: - ```swift {tabTitle:Swift} import Sentry @@ -51,7 +50,6 @@ iOS profiling is available starting in SDK version `8.12.0`. - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx index d291b00213ed92..76c65a980dd455 100644 --- a/docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx +++ b/docs/platforms/apple/common/tracing/instrumentation/automatic-instrumentation.mdx @@ -31,7 +31,6 @@ The SDK creates spans to provide insight into the time consumed by each of the m To disable the `UIViewController` Tracing: - ```swift {tabTitle:Swift} import Sentry @@ -134,7 +133,6 @@ You can filter for different app start types in [Discover](/product/explore/disc To enable prewarmed app start tracing: - ```swift {tabTitle:Swift} import Sentry @@ -172,7 +170,6 @@ Network Tracking is enabled by default once you set To disable the HTTP instrumentation: - ```swift {tabTitle:Swift} import Sentry @@ -202,7 +199,6 @@ Sentry adds an extra header with the trace id in the outgoing HTTP requests to c You can set the `tracePropagationTarget` option to filter which requests Sentry adds the extra header to. For example, to ensure that only your app backend will receive the trace id. - ```swift {tabTitle:Swift} import Sentry @@ -232,7 +228,6 @@ The Sentry SDK adds spans for file I/O operations to ongoing transactions bound Since 8.0.0, this feature has been enabled by default. To disable it: - ```swift {tabTitle:Swift} import Sentry @@ -268,7 +263,6 @@ SentrySDK.start { options in The Sentry SDK adds spans for Core Data operations to ongoing transactions bound to the scope. Currently, the SDK supports fetch and save operations with [NSManagedObjectContext](https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext). Since 8.0.0, this feature has been enabled by default. To disable it: - ```swift {tabTitle:Swift} import Sentry @@ -298,7 +292,6 @@ SentrySDK.start { options in User interaction tracing, once enabled, captures transactions for clicks. This feature is unavailable for SwiftUI. Since 8.0.0, this feature has been enabled by default. To disable it: - ```swift {tabTitle:Swift} import Sentry @@ -383,7 +376,6 @@ Since Cocoa SDK version 8.33.0, the SDK doesn't create [time to initial display _Time to full display is disabled by default, but you can enable it by setting:_ - ```swift {tabTitle:Swift} import Sentry @@ -441,7 +433,6 @@ This change will be the default in the next major version. You can opt out of all automatic instrumentations using the options: - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/common/usage/in-app-frames/index.mdx b/docs/platforms/apple/common/usage/in-app-frames/index.mdx index 80157b9b33eab3..122df331f16a30 100644 --- a/docs/platforms/apple/common/usage/in-app-frames/index.mdx +++ b/docs/platforms/apple/common/usage/in-app-frames/index.mdx @@ -15,7 +15,6 @@ If you're not familiar with these terms, you can learn more: If you use dynamic frameworks such as Sentry, the Sentry SDK will mark them as `not inApp`. If you have a private framework that should be marked as `inApp`, use the SentryOptions [`inAppInclude`](/platforms/apple/configuration/options/#in-app-include) or [`inAppExclude`](/platforms/apple/configuration/options/#in-app-exclude). - ```swift {tabTitle:Swift} import Sentry diff --git a/docs/platforms/apple/guides/ios/manual-setup.mdx b/docs/platforms/apple/guides/ios/manual-setup.mdx index fbfb928364a1c8..b7b6426983a97a 100644 --- a/docs/platforms/apple/guides/ios/manual-setup.mdx +++ b/docs/platforms/apple/guides/ios/manual-setup.mdx @@ -27,7 +27,6 @@ Then run `pod install`. We recommend initializing the SDK on the main thread as soon as possible – in your AppDelegate `application:didFinishLaunchingWithOptions` method, for example: - ```swift {tabTitle:Swift} import Sentry // Make sure you import Sentry @@ -67,7 +66,6 @@ func application(_ application: UIApplication, If you're using SwiftUI and your app doesn't implement an app delegate, initialize the SDK within the [App conformer's initializer](): - ```swift import Sentry diff --git a/docs/platforms/apple/guides/ios/session-replay/index.mdx b/docs/platforms/apple/guides/ios/session-replay/index.mdx index 33431f33cd5e30..620fc28b88bc8f 100644 --- a/docs/platforms/apple/guides/ios/session-replay/index.mdx +++ b/docs/platforms/apple/guides/ios/session-replay/index.mdx @@ -51,7 +51,6 @@ SentrySDK.start(configureOptions: { options in }) ``` - ## Verify diff --git a/docs/platforms/dart/index.mdx b/docs/platforms/dart/index.mdx index 72e7e7c3235448..ce68a6968e154e 100644 --- a/docs/platforms/dart/index.mdx +++ b/docs/platforms/dart/index.mdx @@ -43,7 +43,6 @@ dependencies: To capture all errors, initialize the Sentry Dart SDK as soon as possible. - ```dart {"onboardingOptions": {"performance": "6-8"}} import 'package:sentry/sentry.dart'; diff --git a/docs/platforms/dart/integrations/dio.mdx b/docs/platforms/dart/integrations/dio.mdx index 9f183d3d5f715d..a6ecebed271cdb 100644 --- a/docs/platforms/dart/integrations/dio.mdx +++ b/docs/platforms/dart/integrations/dio.mdx @@ -21,7 +21,6 @@ dependencies: Configuration should happen as early as possible in your application's lifecycle. - ```dart import 'package:sentry_dio/sentry_dio.dart'; @@ -58,7 +57,6 @@ final response = await dio.get('https://wrong-url.dev/'); This is an opt-out feature. The following example shows how to disable it: - ```dart import 'package:sentry/sentry.dart'; diff --git a/docs/platforms/dart/integrations/http-integration.mdx b/docs/platforms/dart/integrations/http-integration.mdx index 50001dce4548f3..ff09c2b5f6ea1b 100644 --- a/docs/platforms/dart/integrations/http-integration.mdx +++ b/docs/platforms/dart/integrations/http-integration.mdx @@ -23,7 +23,6 @@ var uriResponse = await client.post('https://example.com/whatsit/create', This is an opt-out feature. The following example shows how to disable it: - ```dart import 'package:sentry/sentry.dart'; diff --git a/docs/platforms/dart/integrations/logging.mdx b/docs/platforms/dart/integrations/logging.mdx index 2493dc68949faa..2524be3fbd20f2 100644 --- a/docs/platforms/dart/integrations/logging.mdx +++ b/docs/platforms/dart/integrations/logging.mdx @@ -25,7 +25,6 @@ dependencies: Configuration should happen as early as possible in your application's lifecycle. - ```dart import 'package:sentry_logging/sentry_logging.dart'; diff --git a/docs/platforms/dotnet/common/configuration/msbuild.mdx b/docs/platforms/dotnet/common/configuration/msbuild.mdx index 992a5d3c647cea..00b8bc645dcf2e 100644 --- a/docs/platforms/dotnet/common/configuration/msbuild.mdx +++ b/docs/platforms/dotnet/common/configuration/msbuild.mdx @@ -85,7 +85,6 @@ can slow down your development workflow. Alternatively, you could control this using any MSBuild property or environment variable you like. For example, if you only want these features enabled in a GitHub Actions CI workflow, you could use `Condition="'$(GITHUB_ACTIONS)' == 'true'"`. - ```xml @@ -124,7 +123,6 @@ if you only want these features enabled in a GitHub Actions CI workflow, you cou Alternatively, they could be passed as parameters when building your project. For example: - ```shell dotnet build YourProject.csproj -c Release -p:SentryOrg=___ORG_SLUG___ -p:SentryProject=___PROJECT_SLUG___ -p:SentryUploadSymbols=true -p:SentryUploadSources=true diff --git a/docs/platforms/dotnet/common/legacy-sdk.mdx b/docs/platforms/dotnet/common/legacy-sdk.mdx index 006624327724ac..fad03297652383 100644 --- a/docs/platforms/dotnet/common/legacy-sdk.mdx +++ b/docs/platforms/dotnet/common/legacy-sdk.mdx @@ -18,7 +18,6 @@ A [NuGet Package](https://www.nuget.org/packages/SharpRaven) is available for Sh Instantiate the client with your DSN: - ```csharp var ravenClient = new RavenClient("___PUBLIC_DSN___"); @@ -82,7 +81,6 @@ You can install the [SharpRaven.Nancy](https://www.nuget.org/packages/SharpRaven The only thing you have to do is provide a DSN, either by registering an instance of the `Dsn` class in your container: - ```csharp protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) @@ -167,4 +165,4 @@ ravenClient.BeforeSend = requester => // or replace it entirely if you want. return requester; } -``` \ No newline at end of file +``` diff --git a/docs/platforms/dotnet/common/migration/index.mdx b/docs/platforms/dotnet/common/migration/index.mdx index a0fa0ee6140ad1..7777f2fcf955ba 100644 --- a/docs/platforms/dotnet/common/migration/index.mdx +++ b/docs/platforms/dotnet/common/migration/index.mdx @@ -396,7 +396,6 @@ If your project is targeting .NET Framework, it will need to be using at least v Changed how to initialize Sentry: - ```csharp using Sentry; @@ -413,7 +412,6 @@ SentrySdk.Init(o => For ASP.NET (classic) integration, add `Sentry.AspNet` package and initialize it by calling `o.AddAspNet()`: - ```csharp using Sentry; @@ -452,7 +450,6 @@ await SentrySdk.FlushAsync(TimeSpan.FromSeconds(2)); You can close the SDK, which will also flush the event queue, by invoking the `IDisposable` returned by `SentrySdk.Init(...)`: - ```csharp var sentryInitialization = SentrySdk.Init("___PUBLIC_DSN___"); diff --git a/docs/platforms/dotnet/guides/aspnet/index.mdx b/docs/platforms/dotnet/guides/aspnet/index.mdx index bf46ba69e82256..f93a2b74e013c1 100644 --- a/docs/platforms/dotnet/guides/aspnet/index.mdx +++ b/docs/platforms/dotnet/guides/aspnet/index.mdx @@ -33,7 +33,6 @@ as well as your logs as breadcrumbs. The logging integrations also capture event You configure the SDK in the `Global.asax.cs`: - ```csharp {"onboardingOptions": {"performance": "21-24, 34-43"}} using System; @@ -91,7 +90,6 @@ public class MvcApplication : HttpApplication 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. - ```csharp options.AddAspNet(); diff --git a/docs/platforms/dotnet/guides/aspnet/tracing/included-instrumentation.mdx b/docs/platforms/dotnet/guides/aspnet/tracing/included-instrumentation.mdx index 362f48bfdb21b5..f24e3ddbfe10fd 100644 --- a/docs/platforms/dotnet/guides/aspnet/tracing/included-instrumentation.mdx +++ b/docs/platforms/dotnet/guides/aspnet/tracing/included-instrumentation.mdx @@ -12,7 +12,6 @@ Capturing transactions requires that you first set ASP.NET integration, once enabled, captures each incoming HTTP request and turns it into a transaction with the help of a custom middleware. To enable tracing on ASP.NET, you need to update your `Global.asax.cs` file like this: - ```csharp using System; diff --git a/docs/platforms/dotnet/guides/aspnet/troubleshooting.mdx b/docs/platforms/dotnet/guides/aspnet/troubleshooting.mdx index b35de2a282666c..b6f2b9a66f44cf 100644 --- a/docs/platforms/dotnet/guides/aspnet/troubleshooting.mdx +++ b/docs/platforms/dotnet/guides/aspnet/troubleshooting.mdx @@ -65,7 +65,6 @@ You can find more information about the problem [in this GitHub issue](https://g This happens because the `scope` from `requests` will be different from the one executed during the execution of Application_Start. To apply `Tags` globally, it's recommended that you set them in `SentryOptions`, as shown in the example below: - ```csharp SentrySdk.Init(options => diff --git a/docs/platforms/dotnet/guides/aspnetcore/index.mdx b/docs/platforms/dotnet/guides/aspnetcore/index.mdx index b09fb55653d332..3acd8572a4e97f 100644 --- a/docs/platforms/dotnet/guides/aspnetcore/index.mdx +++ b/docs/platforms/dotnet/guides/aspnetcore/index.mdx @@ -68,7 +68,6 @@ The framework takes configuration settings from `appsettings.json`, environment An example of some of the options that can be configured via `appsettings.json`: - ```json {filename:appsettings.json} {"onboardingOptions": {"performance": "10"}} "Sentry": { @@ -256,7 +255,6 @@ A tunnel is an HTTP endpoint that acts as a proxy between Sentry and your applic - Add the web app by calling `UseSentryTunneling();` on `IApplicationBuilder`. - In the client-side JavaScript configuration, ensure the tunnel option is used: - ```javascript Sentry.init({ diff --git a/docs/platforms/dotnet/guides/aws-lambda/index.mdx b/docs/platforms/dotnet/guides/aws-lambda/index.mdx index 2ce0a0f6f447d2..1b7a4eaf3ab6e0 100644 --- a/docs/platforms/dotnet/guides/aws-lambda/index.mdx +++ b/docs/platforms/dotnet/guides/aws-lambda/index.mdx @@ -34,7 +34,6 @@ All `ASP.NET Core` configurations are valid here. But one configuration in parti `FlushOnCompletedRequest` ensures all events are flushed out. This is because the general ASP.NET Core hooks for when the process is exiting are not guaranteed to run in a serverless environment. This setting ensures that no event is lost if AWS recycles the process. - ```csharp {"onboardingOptions": {"performance": "12-14"}} public class LambdaEntryPoint : Amazon.Lambda.AspNetCoreServer.APIGatewayProxyFunction diff --git a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx index 9cc0c096d9816c..95d9c34c1345cf 100644 --- a/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx +++ b/docs/platforms/dotnet/guides/azure-functions-worker/index.mdx @@ -33,7 +33,6 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens Sentry integration with Azure Functions is done by calling `.UseSentry()` and specifying the options, for example: - diff --git a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx index f8adef2a37c6d1..8a6042c222052a 100644 --- a/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx +++ b/docs/platforms/dotnet/guides/blazor-webassembly/index.mdx @@ -31,7 +31,6 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens Sentry integration with Blazor WebAssembly is done by calling `.UseSentry()` and specifying the options, for example: - ```csharp diff --git a/docs/platforms/dotnet/guides/extensions-logging/index.mdx b/docs/platforms/dotnet/guides/extensions-logging/index.mdx index bc8b1758cefbf7..4fb36bfd3ad3ad 100644 --- a/docs/platforms/dotnet/guides/extensions-logging/index.mdx +++ b/docs/platforms/dotnet/guides/extensions-logging/index.mdx @@ -81,7 +81,6 @@ With this approach, options like `Dsn`, `SendDefaultPii`, `MinimumBreadcrumbLeve Example using `appsettings.json`: - ```json { @@ -103,7 +102,6 @@ Above we set the application wide minimum log level to `Debug`. Sentry specific #### Through `ILoggerFactory` - ```csharp using (var loggerFactory = new LoggerFactory() diff --git a/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx b/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx index b13b58a7fccdea..790e9de7f9a50a 100644 --- a/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx +++ b/docs/platforms/dotnet/guides/google-cloud-functions/index.mdx @@ -64,7 +64,6 @@ using the assembly method `FunctionsStartup` to include the type `SentryStartup` For example: - ```json {filename:appsettings.json} "Sentry": { diff --git a/docs/platforms/dotnet/guides/log4net/index.mdx b/docs/platforms/dotnet/guides/log4net/index.mdx index 256d930d703b63..5c6d087f1f0ea3 100644 --- a/docs/platforms/dotnet/guides/log4net/index.mdx +++ b/docs/platforms/dotnet/guides/log4net/index.mdx @@ -27,7 +27,6 @@ This package extends `Sentry` main SDK. That means besides the log4net `Appender Once the log4net integration package is installed in your project, you can modify your configuration file to add the appender. 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} diff --git a/docs/platforms/dotnet/guides/maui/index.mdx b/docs/platforms/dotnet/guides/maui/index.mdx index 551be2b2f97f70..1bd9c89bbd912e 100644 --- a/docs/platforms/dotnet/guides/maui/index.mdx +++ b/docs/platforms/dotnet/guides/maui/index.mdx @@ -44,7 +44,6 @@ This package extends [Sentry.Extensions.Logging](/platforms/dotnet/guides/extens In your `MauiProgram.cs` file, call `UseSentry` on your `MauiAppBuilder`, and include any options you would like to set. The `Dsn` is the only required parameter. - ```csharp {"onboardingOptions": {"performance": "19-22"}} public static MauiApp CreateMauiApp() 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 a2c22022257f8c..ff09d773c7064a 100644 --- a/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx +++ b/docs/platforms/dotnet/guides/nlog/configuration/advanced-configuration-example.mdx @@ -12,7 +12,6 @@ For more information on how to dynamically set event data via `NLog.config`, see The SDK can be configured via `NLog.config` XML file: - ```xml {tabTitle:NLog.config} diff --git a/docs/platforms/dotnet/guides/nlog/index.mdx b/docs/platforms/dotnet/guides/nlog/index.mdx index 2ba2501a3298ce..93edc6653f5250 100644 --- a/docs/platforms/dotnet/guides/nlog/index.mdx +++ b/docs/platforms/dotnet/guides/nlog/index.mdx @@ -74,7 +74,6 @@ LogManager.Configuration 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 LogManager.Configuration = new LoggingConfiguration(); @@ -98,7 +97,6 @@ Two log levels are used to configure this integration (see options below). One w The SDK can also be configured via `NLog.config` XML file: - ```xml {tabTitle:NLog.config} diff --git a/docs/platforms/dotnet/guides/serilog/index.mdx b/docs/platforms/dotnet/guides/serilog/index.mdx index f9d90c6a520545..19563e98f00e8c 100644 --- a/docs/platforms/dotnet/guides/serilog/index.mdx +++ b/docs/platforms/dotnet/guides/serilog/index.mdx @@ -57,7 +57,6 @@ 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: - ```csharp Log.Logger = new LoggerConfiguration() diff --git a/docs/platforms/dotnet/guides/uwp/index.mdx b/docs/platforms/dotnet/guides/uwp/index.mdx index 9324767f0d428c..2deb090284fc33 100644 --- a/docs/platforms/dotnet/guides/uwp/index.mdx +++ b/docs/platforms/dotnet/guides/uwp/index.mdx @@ -27,7 +27,6 @@ The SDK should be initialized in the constructor of your application class (usua - ```csharp {"onboardingOptions": {"performance": "18-21"}} using Sentry; diff --git a/docs/platforms/dotnet/guides/winforms/index.mdx b/docs/platforms/dotnet/guides/winforms/index.mdx index 08dc47238fa6c2..86420eb403a96a 100644 --- a/docs/platforms/dotnet/guides/winforms/index.mdx +++ b/docs/platforms/dotnet/guides/winforms/index.mdx @@ -29,7 +29,6 @@ You should also set `Application.SetUnhandledExceptionMode(UnhandledExceptionMod A complete example of the recommended startup is as follows: - ```csharp {"onboardingOptions": {"performance": "32-35"}} using System; @@ -100,7 +99,6 @@ First, modify the settings on the project properties page as follows: Then, add the following file as `Program.vb`: - ```vb Imports Sentry @@ -165,7 +163,6 @@ Once you have the file created: See the following complete example: - ```vb Imports Microsoft.VisualBasic.ApplicationServices diff --git a/docs/platforms/dotnet/guides/winui/index.mdx b/docs/platforms/dotnet/guides/winui/index.mdx index b84ccf647662f6..5d2b60a719d7e9 100644 --- a/docs/platforms/dotnet/guides/winui/index.mdx +++ b/docs/platforms/dotnet/guides/winui/index.mdx @@ -27,7 +27,6 @@ Do not initialize the SDK in the `OnLaunched` event of the application or the `H - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). @@ -80,7 +79,6 @@ Do not initialize the SDK in the `OnLaunched` event of the application or the `H - ```csharp // Add these to your existing using statements. diff --git a/docs/platforms/dotnet/guides/wpf/index.mdx b/docs/platforms/dotnet/guides/wpf/index.mdx index d8241ed80460fd..10f67a71770f06 100644 --- a/docs/platforms/dotnet/guides/wpf/index.mdx +++ b/docs/platforms/dotnet/guides/wpf/index.mdx @@ -29,7 +29,6 @@ The SDK should be initialized in the constructor of your application class (usua The SDK automatically handles `AppDomain.UnhandledException`. On WPF, for production apps (when no debugger is attached), WPF catches exception to show the dialog to the user. You can also configure your app to capture those exceptions before the dialog shows up: - ```csharp {"onboardingOptions": {"performance": "15-18"}} using System.Windows; diff --git a/docs/platforms/dotnet/index.mdx b/docs/platforms/dotnet/index.mdx index f7cd063e227cde..0f7af156b5c491 100644 --- a/docs/platforms/dotnet/index.mdx +++ b/docs/platforms/dotnet/index.mdx @@ -69,7 +69,6 @@ Install the **NuGet** package to add the Sentry dependency: To capture all errors, even the one during the startup of your application, you should initialize the Sentry .NET SDK as soon as possible. - ```csharp {"onboardingOptions": {"performance": "6-7", "profiling": "8-9"}} SentrySdk.Init(options => diff --git a/docs/platforms/flutter/index.mdx b/docs/platforms/flutter/index.mdx index 1c2913233880d9..6b8772ae93e5f8 100644 --- a/docs/platforms/flutter/index.mdx +++ b/docs/platforms/flutter/index.mdx @@ -46,7 +46,6 @@ dependencies: Configuration should happen as early as possible in your application's lifecycle. - ```dart {"onboardingOptions": {"performance": "8-10", "profiling": "11-14"}} import 'package:flutter/widgets.dart'; diff --git a/docs/platforms/flutter/migration.mdx b/docs/platforms/flutter/migration.mdx index c948be3d37605d..4bdee57be05f8e 100644 --- a/docs/platforms/flutter/migration.mdx +++ b/docs/platforms/flutter/migration.mdx @@ -45,7 +45,6 @@ You may remove `android:extractNativeLibs="true"` meta-data in the `AndroidManif A random generated installationId replaces [Settings.Secure.ANDROID_ID](https://developer.android.com/reference/android/provider/Settings.Secure#ANDROID_ID), which has been removed. This may affect the number of unique users displayed on the the Issues page and Alerts. If you always set a custom user using Sentry.setUser(customUser), the behavior has not changed. While you don't have to make any update, if you want to maintain the old behavior, use the following code snippet. It makes use of the [device_info_plus](https://pub.dev/packages/device_info_plus) plugin: - ```dart import 'package:flutter/foundation.dart'; diff --git a/docs/platforms/flutter/native-init.mdx b/docs/platforms/flutter/native-init.mdx index cb34fb16036971..73e15df76c89fc 100644 --- a/docs/platforms/flutter/native-init.mdx +++ b/docs/platforms/flutter/native-init.mdx @@ -8,7 +8,6 @@ By default, the Flutter SDK initializes the native SDK underneath the `init` met To do this, set [autoInitializeNativeSdk](/platforms/flutter/configuration/options/#autoInitializeNativeSdk) to `false` in the init options: - ```dart import 'package:flutter/widgets.dart'; diff --git a/docs/platforms/flutter/profiling/index.mdx b/docs/platforms/flutter/profiling/index.mdx index 8081117d32eea9..74fcb42a6144f7 100644 --- a/docs/platforms/flutter/profiling/index.mdx +++ b/docs/platforms/flutter/profiling/index.mdx @@ -19,7 +19,6 @@ Flutter Profiling alpha is available for **iOS** and **macOS** since SDK version Profiling depends on Sentry’s Tracing product being enabled beforehand. To enable tracing in the SDK: - ```dart {diff} SentryFlutter.init( @@ -38,7 +37,6 @@ Check out the tracing setup documentation ```dart {diff} SentryFlutter.init( diff --git a/docs/platforms/go/common/configuration/options.mdx b/docs/platforms/go/common/configuration/options.mdx index 9882bcdbd28358..8a72cf82b5cea3 100644 --- a/docs/platforms/go/common/configuration/options.mdx +++ b/docs/platforms/go/common/configuration/options.mdx @@ -130,7 +130,6 @@ type ClientOptions struct { By default, TLS uses the host's root CA set. If you don't have `ca-certificates` (which should be your go-to way of fixing the issue of the missing certificates) and want to use `gocertifi` instead, you can provide pre-loaded cert files as one of the options to the `sentry.Init` call: - ```go package main diff --git a/docs/platforms/go/common/configuration/transports.mdx b/docs/platforms/go/common/configuration/transports.mdx index f010c6cbf6e5ef..48ae921d6aff90 100644 --- a/docs/platforms/go/common/configuration/transports.mdx +++ b/docs/platforms/go/common/configuration/transports.mdx @@ -12,7 +12,6 @@ The Sentry Go SDK itself, provides two built-in transports. `HTTPTransport`, whi To configure transport, provide an instance of `sentry.Transport` interface to `ClientOptions` - ```go package main diff --git a/docs/platforms/go/common/migration.mdx b/docs/platforms/go/common/migration.mdx index 46c63939b801f9..c10d0e0bc0b5ae 100644 --- a/docs/platforms/go/common/migration.mdx +++ b/docs/platforms/go/common/migration.mdx @@ -24,7 +24,6 @@ go get github.com/getsentry/sentry-go raven-go - ```go import "github.com/getsentry/raven-go" @@ -68,7 +67,6 @@ SetIncludePaths() sentry-go - ```go sentry.Init(sentry.ClientOptions{ @@ -89,7 +87,6 @@ Available options: see [Configuration](/platforms/go/configuration/options/) sec By default, TLS uses the host's root CA set. If you don't have `ca-certificates` (which should be your go-to way of fixing the missing certificates issue) and want to use `gocertifi` instead, you can provide pre-loaded cert files as one of the options to `sentry.Init` call: - ```go package main diff --git a/docs/platforms/go/common/profiling/index.mdx b/docs/platforms/go/common/profiling/index.mdx index e79ae1654915f3..d6771461816f48 100644 --- a/docs/platforms/go/common/profiling/index.mdx +++ b/docs/platforms/go/common/profiling/index.mdx @@ -12,7 +12,6 @@ sidebar_order: 5000 To enable profiling, set the `ProfilesSampleRate`: - ```go {diff} err := sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/common/usage/panics.mdx b/docs/platforms/go/common/usage/panics.mdx index 819e64da8afd17..cd95525f113777 100644 --- a/docs/platforms/go/common/usage/panics.mdx +++ b/docs/platforms/go/common/usage/panics.mdx @@ -46,7 +46,6 @@ The first one being extracting the `Hub` instance from the context and using it And the second feature, an access to the `context.Context` itself inside the `beforeSend` method, which can be used to extract any additional information about what happened during the panic: - ```go type contextKey int diff --git a/docs/platforms/go/guides/echo/index.mdx b/docs/platforms/go/guides/echo/index.mdx index 2438fc530a006f..1c27ffb2d184f1 100644 --- a/docs/platforms/go/guides/echo/index.mdx +++ b/docs/platforms/go/guides/echo/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/echo - ```go {"onboardingOptions": {"performance": "14-17"}} import ( @@ -136,7 +135,6 @@ app.Logger.Fatal(app.Start(":3000")) ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/fasthttp/index.mdx b/docs/platforms/go/guides/fasthttp/index.mdx index c69396959667e5..a5fa11c17af5fa 100644 --- a/docs/platforms/go/guides/fasthttp/index.mdx +++ b/docs/platforms/go/guides/fasthttp/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/fasthttp - ```go {"onboardingOptions": {"performance": "12-16"}} import ( @@ -141,7 +140,6 @@ if err := fasthttp.ListenAndServe(":3000", sentryHandler.Handle(fastHTTPHandler) ### Accessing Context in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/gin/index.mdx b/docs/platforms/go/guides/gin/index.mdx index 820a3df5aa3ada..f35253137aef6b 100644 --- a/docs/platforms/go/guides/gin/index.mdx +++ b/docs/platforms/go/guides/gin/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/gin - ```go {"onboardingOptions": {"performance": "13-17"}} import ( @@ -128,7 +127,6 @@ app.Run(":3000") ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/http/index.mdx b/docs/platforms/go/guides/http/index.mdx index d8495c01045e18..a8beaaeca9f4e9 100644 --- a/docs/platforms/go/guides/http/index.mdx +++ b/docs/platforms/go/guides/http/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/http - ```go {"onboardingOptions": {"performance": "12-16"}} import ( @@ -137,7 +136,6 @@ if err := http.ListenAndServe(":3000", nil); err != nil { ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/iris/index.mdx b/docs/platforms/go/guides/iris/index.mdx index 3447200d590087..9fbed145bbb963 100644 --- a/docs/platforms/go/guides/iris/index.mdx +++ b/docs/platforms/go/guides/iris/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/iris - ```go {"onboardingOptions": {"performance": "12-16"}} import ( @@ -126,7 +125,6 @@ app.Run(iris.Addr(":3000")) ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/martini/index.mdx b/docs/platforms/go/guides/martini/index.mdx index 8db5a467cbd7d5..f1c2df72ba19de 100644 --- a/docs/platforms/go/guides/martini/index.mdx +++ b/docs/platforms/go/guides/martini/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/martini - ```go {"onboardingOptions": {"performance": "12-16"}} import ( @@ -124,7 +123,6 @@ app.Run() ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/guides/negroni/index.mdx b/docs/platforms/go/guides/negroni/index.mdx index fa4003e016a57a..33921ba34806a4 100644 --- a/docs/platforms/go/guides/negroni/index.mdx +++ b/docs/platforms/go/guides/negroni/index.mdx @@ -28,7 +28,6 @@ go get github.com/getsentry/sentry-go/negroni - ```go {"onboardingOptions": {"performance": "13-17"}} import ( @@ -134,7 +133,6 @@ http.ListenAndServe(":3000", app) ### Accessing Request in `BeforeSend` callback - ```go sentry.Init(sentry.ClientOptions{ diff --git a/docs/platforms/go/legacy-sdk/config.mdx b/docs/platforms/go/legacy-sdk/config.mdx index 247592116c9ce8..17200713e4904a 100644 --- a/docs/platforms/go/legacy-sdk/config.mdx +++ b/docs/platforms/go/legacy-sdk/config.mdx @@ -24,7 +24,6 @@ and the Sentry Go SDKs can pick this up from an environment variable (`SENTRY_DS When set to an empty string, SDK won't send any events to Sentry, and all `Capture*` methods will effectively act as no-ops. - ```go raven.SetDSN("___PUBLIC_DSN___") diff --git a/docs/platforms/go/legacy-sdk/index.mdx b/docs/platforms/go/legacy-sdk/index.mdx index 8a7360a82e7508..e33f6cd259fd85 100644 --- a/docs/platforms/go/legacy-sdk/index.mdx +++ b/docs/platforms/go/legacy-sdk/index.mdx @@ -36,7 +36,6 @@ go get github.com/getsentry/raven-go To use `raven-go`, you’ll need to import the `raven` package, then initialize your DSN globally. If you specify the `SENTRY_DSN` environment variable, this will be done automatically for you. The release and environment can also be specified in the environment variables `SENTRY_RELEASE` and `SENTRY_ENVIRONMENT` respectively. More on this in [Configuration](/platforms/go/legacy-sdk/config/) section. - ```go package main diff --git a/docs/platforms/go/legacy-sdk/integrations.mdx b/docs/platforms/go/legacy-sdk/integrations.mdx index 6c0d803c64e15b..064b943a943e09 100644 --- a/docs/platforms/go/legacy-sdk/integrations.mdx +++ b/docs/platforms/go/legacy-sdk/integrations.mdx @@ -33,7 +33,6 @@ go get github.com/getsentry/raven-go Make sure that you’ve set configured `raven` with your DSN, typically inside the `init()` in your `main` package is a good place. - ```go package main diff --git a/docs/platforms/java/common/configuration/index.mdx b/docs/platforms/java/common/configuration/index.mdx index 208466b8e9b4e2..5c3f2d52d55ae5 100644 --- a/docs/platforms/java/common/configuration/index.mdx +++ b/docs/platforms/java/common/configuration/index.mdx @@ -10,7 +10,6 @@ The DSN is the first and most important thing to configure because it tells the In a properties file on your filesystem or classpath (defaults to `sentry.properties`): - ```text {tabTitle:Properties File} {filename:sentry.properties} dsn=___PUBLIC_DSN___ @@ -30,7 +29,6 @@ SENTRY_DSN=___PUBLIC_DSN___ java -jar app.jar In code: - ```java {tabTitle:Java} import io.sentry.Sentry; diff --git a/docs/platforms/java/common/legacy/configuration/index.mdx b/docs/platforms/java/common/legacy/configuration/index.mdx index 2da2acdf7b27e2..8c1ff5b76b71cd 100644 --- a/docs/platforms/java/common/legacy/configuration/index.mdx +++ b/docs/platforms/java/common/legacy/configuration/index.mdx @@ -16,7 +16,6 @@ The DSN is the first and most important thing to configure because it tells the In a properties file on your filesystem or classpath (defaults to `sentry.properties`): - ```text {tabTitle:Properties File} {filename:sentry.properties} dsn=___PUBLIC_DSN___ @@ -36,7 +35,6 @@ SENTRY_DSN=___PUBLIC_DSN___ java -jar app.jar In code: - ```java import io.sentry.Sentry; @@ -88,7 +86,6 @@ SENTRY_SAMPLE_RATE=0.75 java -jar app.jar The DSN itself can also be configured directly in code: - ```java import io.sentry.Sentry; diff --git a/docs/platforms/java/common/legacy/usage.mdx b/docs/platforms/java/common/legacy/usage.mdx index 770ab0272468de..c50e628f742494 100644 --- a/docs/platforms/java/common/legacy/usage.mdx +++ b/docs/platforms/java/common/legacy/usage.mdx @@ -27,7 +27,6 @@ For other dependency managers see the [central Maven repository](https://search. To report an event manually you need to initialize a `SentryClient`. It is recommended that you use the static API via the `Sentry` class, but you can also construct and manage your own `SentryClient` instance. An example of each style is shown below: - ```java import io.sentry.context.Context; diff --git a/docs/platforms/java/guides/jul/usage/advanced-usage.mdx b/docs/platforms/java/guides/jul/usage/advanced-usage.mdx index f90a74297cad23..51c129b1ef24af 100644 --- a/docs/platforms/java/guides/jul/usage/advanced-usage.mdx +++ b/docs/platforms/java/guides/jul/usage/advanced-usage.mdx @@ -160,7 +160,6 @@ class MyClass { Starting with Sentry version 6.0.0 and up, you can define a list of `MDC tags` that will be viewable as `Tags` in the Sentry UI. `MDC Tags` not in this list will be viewable as `Context Data`. To define tags, add a `context-tags` entry with the tags as comma-separated items to the `sentry.properties` file. - ```properties {tabTitle:Properties} dsn=___PUBLIC_DSN___ diff --git a/docs/platforms/java/guides/log4j2/advanced_usage.mdx b/docs/platforms/java/guides/log4j2/advanced_usage.mdx index 86ea9d9cf8e37b..4a642de1bf5e79 100644 --- a/docs/platforms/java/guides/log4j2/advanced_usage.mdx +++ b/docs/platforms/java/guides/log4j2/advanced_usage.mdx @@ -143,7 +143,6 @@ class MyClass { Starting with Sentry version 6.0.0 and up, you can define a list of `MDC tags` that will be viewable as `Tags` in the Sentry UI. `MDC Tags` not in this list will be viewable as `Context Data`. To define tags, add a `contextTags` attribute to the `` tag in your `log4j2.xml` with the tags as comma-separated items. - ```xml {tabTitle:XML} ```xml diff --git a/docs/platforms/java/guides/logback/usage/advanced-usage.mdx b/docs/platforms/java/guides/logback/usage/advanced-usage.mdx index 538f1820c20011..683c4ec9f97433 100644 --- a/docs/platforms/java/guides/logback/usage/advanced-usage.mdx +++ b/docs/platforms/java/guides/logback/usage/advanced-usage.mdx @@ -142,7 +142,6 @@ class MyClass { Starting with Sentry version 6.0.0 and up, you can define a list of `MDC tags` that will be viewable as `Tags` in the Sentry UI. `MDC Tags` not in this list will be viewable as `Context Data`. To define a tag, add a `` entry inside the `` of the Sentry appender configuration in `logback.xml` - ```xml {tabTitle:XML} diff --git a/docs/platforms/java/guides/spring/advanced-usage.mdx b/docs/platforms/java/guides/spring/advanced-usage.mdx index f0d3deb2a9a4a6..d186f0d8023fc0 100644 --- a/docs/platforms/java/guides/spring/advanced-usage.mdx +++ b/docs/platforms/java/guides/spring/advanced-usage.mdx @@ -12,7 +12,6 @@ To record the user's IP address and `Principal#name` as the username so you can 1. Set the personal information flag on `@EnableSentry` to `true`. - ```Java {tabTitle:Java (Spring 5)} import org.springframework.context.annotation.Configuration; diff --git a/docs/platforms/java/usage.mdx b/docs/platforms/java/usage.mdx index 59e4fa3f4708a5..43fa4886ea33a4 100644 --- a/docs/platforms/java/usage.mdx +++ b/docs/platforms/java/usage.mdx @@ -32,7 +32,6 @@ For other dependency managers see the [central Maven repository](https://search. When Sentry is used in manual way, configuration options must be passed to a static `Sentry#init` method: - ```java {tabTitle:Java} import io.sentry.Sentry; @@ -151,7 +150,6 @@ Find more configuration options in the [Configuration](/platforms/java/configura To report an event manually you need to initialize a `Sentry` class. It is recommended that you use the static API via the `Sentry` class, but you can also construct and manage your own `IHub` instance. An example of each style is shown below: - ```java import io.sentry.IHub; @@ -347,7 +345,6 @@ class MyClass { For more complex messages, you’ll need to build an `SentryEvent` object: - ```java import io.sentry.Sentry; diff --git a/docs/platforms/javascript/common/best-practices/multiple-sentry-instances.mdx b/docs/platforms/javascript/common/best-practices/multiple-sentry-instances.mdx index 7fc7f87c2f52fc..86a626d857d0b1 100644 --- a/docs/platforms/javascript/common/best-practices/multiple-sentry-instances.mdx +++ b/docs/platforms/javascript/common/best-practices/multiple-sentry-instances.mdx @@ -34,7 +34,6 @@ inside of it. To ensure you don't conflict with your parent application, you sho In this example we use `BrowserClient` from `@sentry/browser` but it's also applicable to `NodeClient` from `@sentry/node`. - ```javascript import { @@ -79,7 +78,6 @@ Integrations are set up on the `Client`. If you need to deal with multiple clien We do not recommend doing this if you are using Sentry in a browser extension or in similar scenarios. If you can't avoid using global integrations (e.g. in a micro frontend application), here is a working example of how to use multiple clients with multiple scopes running global integrations. - ```javascript import * as Sentry from "@sentry/browser"; diff --git a/docs/platforms/javascript/common/best-practices/sentry-testkit.mdx b/docs/platforms/javascript/common/best-practices/sentry-testkit.mdx index 62960690e885a8..025d7360b3fce8 100644 --- a/docs/platforms/javascript/common/best-practices/sentry-testkit.mdx +++ b/docs/platforms/javascript/common/best-practices/sentry-testkit.mdx @@ -31,7 +31,6 @@ pnpm add sentry-testkit --save-dev ### Using in tests - ```javascript import sentryTestkit from "sentry-testkit"; diff --git a/docs/platforms/javascript/common/best-practices/shared-environments.mdx b/docs/platforms/javascript/common/best-practices/shared-environments.mdx index ec3c996e9d2a16..0a1573273e450f 100644 --- a/docs/platforms/javascript/common/best-practices/shared-environments.mdx +++ b/docs/platforms/javascript/common/best-practices/shared-environments.mdx @@ -49,7 +49,6 @@ For such scenarios, you have to set up a client manually as seen in the example In addition, you should also avoid adding any integrations that use global state, like `Breadcrumbs` or `GlobalHandlers`. Furthermore, some default integrations that use the global state have to be filtered as in the example below. As a rule of thumb, it's best to avoid using any integrations and to rely on manual capture of errors only in such scenarios. - ```javascript import { diff --git a/docs/platforms/javascript/common/best-practices/web-workers.mdx b/docs/platforms/javascript/common/best-practices/web-workers.mdx index 3f4fa295bc47ce..a7940b422b4353 100644 --- a/docs/platforms/javascript/common/best-practices/web-workers.mdx +++ b/docs/platforms/javascript/common/best-practices/web-workers.mdx @@ -48,7 +48,6 @@ pnpm add @sentry/browser Then you can use it: - ```javascript {filename:index.js} import * as Sentry from "@sentry/browser"; @@ -86,7 +85,6 @@ self.onmessage = (message) => { #### Usage With Worker-Level Initialization - ```javascript {filename:worker.js} import * as Sentry from "@sentry/browser"; diff --git a/docs/platforms/javascript/common/configuration/integrations/index.mdx b/docs/platforms/javascript/common/configuration/integrations/index.mdx index 0803567ec831ef..4a1787503e10da 100644 --- a/docs/platforms/javascript/common/configuration/integrations/index.mdx +++ b/docs/platforms/javascript/common/configuration/integrations/index.mdx @@ -20,7 +20,6 @@ To disable system integrations, set `defaultIntegrations: false` when calling `i To override their settings, provide a new instance with your config to the `integrations` option. For example, to turn off browser capturing console calls: - ```javascript Sentry.init({ diff --git a/docs/platforms/javascript/common/configuration/options.mdx b/docs/platforms/javascript/common/configuration/options.mdx index 73187f50e79614..c956efdf831e6a 100644 --- a/docs/platforms/javascript/common/configuration/options.mdx +++ b/docs/platforms/javascript/common/configuration/options.mdx @@ -154,7 +154,6 @@ Data to be set to the initial scope. Initial scope can be defined either as an o Object: - ```javascript Sentry.init({ diff --git a/docs/platforms/javascript/common/crons/index.mdx b/docs/platforms/javascript/common/crons/index.mdx index 17bb31528595f6..45e6af9673486b 100644 --- a/docs/platforms/javascript/common/crons/index.mdx +++ b/docs/platforms/javascript/common/crons/index.mdx @@ -50,7 +50,6 @@ Optionally, you can skip the first step and [create or update (upsert) a monitor Check-in monitoring allows you to track a job's progress by completing two check-ins: one at the start of your job and another at the end of your job. This two-step process allows Sentry to notify you if your job didn't start when expected (missed) or if it exceeded its maximum runtime (failed). - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -75,7 +74,6 @@ Host: ___ORG_INGEST_DOMAIN___ If your job execution fails: - ```bash {tabTitle: cURL} # 🔴 Notify Sentry your job has failed: @@ -109,7 +107,6 @@ schedule or delete the monitor environment; otherwise, it will be marked as miss - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -128,7 +125,6 @@ curl "${SENTRY_CRONS}?environment=dev&status=ok" Sentry enables the automatic creation or update of a monitor (upsert) through the check-in payload. This can be useful if you have many scheduled tasks or need to create them dynamically. - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -215,7 +211,6 @@ If this happens, you have to provide a stable check-in ID for your execution wit Usage example: - ```bash {tabTitle: cURL} CHECK_IN_ID="$(uuidgen)" @@ -236,7 +231,6 @@ curl "${SENTRY_CRONS}?check_in_id=${CHECK_IN_ID}&status=ok" 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. - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -253,7 +247,6 @@ Host: ___ORG_INGEST_DOMAIN___ If your job execution fails: - ```bash {tabTitle: cURL} # 🔴 Notify Sentry your job has failed: diff --git a/docs/platforms/javascript/common/install/esm-without-import.mdx b/docs/platforms/javascript/common/install/esm-without-import.mdx index 10ca4f76334329..3e9364ec469cc6 100644 --- a/docs/platforms/javascript/common/install/esm-without-import.mdx +++ b/docs/platforms/javascript/common/install/esm-without-import.mdx @@ -28,7 +28,6 @@ Because of this, we recommend using this only if the `--import` flag is not an o You need to create a file named `instrument.mjs` that imports and initializes Sentry: - ```javascript {tabTitle:ESM} {filename: instrument.mjs} import * as Sentry from "@sentry/node"; diff --git a/docs/platforms/javascript/common/install/loader.mdx b/docs/platforms/javascript/common/install/loader.mdx index 9dae91369a5c3f..372f6042f30a6d 100644 --- a/docs/platforms/javascript/common/install/loader.mdx +++ b/docs/platforms/javascript/common/install/loader.mdx @@ -39,7 +39,6 @@ The Loader Script is the easiest way to initialize the Sentry SDK. The Loader Sc To use the loader, go in the Sentry UI to **Settings > Projects > (select project) > Client Keys (DSN)**, and then press the "Configure" button. Copy the script tag from the "JavaScript Loader" section and include it as the first script on your page. By including it first, you allow it to catch and buffer events from any subsequent scripts, while still ensuring the full SDK doesn't load until after everything else has run. - ```html @@ -78,7 +77,6 @@ If you intend to use Raven with Node, [raven-node](https://github.com/getsentry/ To use Raven with CommonJS imports: - ```javascript var Raven = require("raven-js"); @@ -89,7 +87,6 @@ Raven.config("___PUBLIC_DSN___").install(); To use Raven with ES2015 (ES6) imports: - ```javascript import Raven from "raven-js"; @@ -102,7 +99,6 @@ To load Sentry JS SDK asynchronously, you need to do two things. Provide global `SENTRY_SDK` variable with SDK’s URL (for example from our CDN), your DSN and SDK’s configuration. And place the snippet below as soon as possible in your HTML code. For example: - ```html @@ -78,7 +77,6 @@ Pre-built distributions of Raven.js and the Raven.js AngularJS plugin are availa ##### Bower - ```shell bower install raven-js --save @@ -95,7 +93,6 @@ bower install raven-js --save ##### npm - ```shell npm install raven-js --save @@ -120,7 +117,6 @@ Raven.addPlugin(Raven.Plugins.Angular, angular); Raven and the Raven AngularJS plugin can be loaded using a module loader like Browserify or webpack. - ```javascript var angular = require("angular"); @@ -213,7 +209,6 @@ System.config({ Then, in your main module file (where `@NgModule` is called, e.g. app.module.ts): - ```javascript import Raven = require('raven-js'); @@ -250,7 +245,6 @@ Once you’ve completed these two steps, you are done. Angular CLI now uses webpack to build instead of SystemJS. All you need to do is modify your main module file (where `@NgModule` is called, e.g. app.module.ts): - ```javascript import * as Raven from "raven-js"; @@ -298,7 +292,6 @@ Start by adding the `raven.js` script tag to your page. It should be loaded as e Next configure Raven.js to use your Sentry DSN: - ```javascript Raven.config("___PUBLIC_DSN___").install(); @@ -328,7 +321,6 @@ For convenience, our CDN serves a single, minified JavaScript file containing bo Example: - ```html @@ -349,7 +341,6 @@ Pre-built distributions of Raven.js and the Raven.js Ember plugin are available ##### Bower - ```shell bower install raven-js --save @@ -370,7 +361,6 @@ app.import("bower_components/raven-js/dist/plugins/ember.js"); ##### npm - ```shell npm install raven-js --save @@ -414,7 +404,6 @@ Start by adding the `raven.js` script tag to your page. It should be loaded as e Next configure Raven.js to use your Sentry DSN: - ```javascript Raven.config("___PUBLIC_DSN___").install(); @@ -512,7 +501,6 @@ For convenience, our CDN serves a single, minified JavaScript file containing bo Example: - ```html @@ -533,7 +521,6 @@ Both Raven.js and the Raven.js Vue plugin can be installed via npm and Bower. ##### npm - ```shell npm install raven-js --save @@ -550,7 +537,6 @@ npm install raven-js --save ##### Bower - ```shell bower install raven-js --save @@ -575,7 +561,6 @@ Raven.addPlugin(Raven.Plugins.Vue, Vue); In your main application file, import and configure both Raven.js and the Raven.js Vue plugin as follows: - ```javascript import Vue from "vue"; @@ -618,7 +603,6 @@ require("raven-js/plugins/react-native")(Raven); Now we need to set up Raven.js to use your Sentry DSN: - ```javascript Raven.config("___PUBLIC_DSN___", { release: RELEASE_ID }).install(); diff --git a/docs/platforms/javascript/legacy-sdk/usage.mdx b/docs/platforms/javascript/legacy-sdk/usage.mdx index 2a2870d7c5e1de..da0386126944e4 100644 --- a/docs/platforms/javascript/legacy-sdk/usage.mdx +++ b/docs/platforms/javascript/legacy-sdk/usage.mdx @@ -203,7 +203,6 @@ To learn more about what types of data can be collected via breadcrumbs, see the Note that you can also disable automatic breadcrumb collection entirely or disable specific collectors: - ```javascript Raven.config("___PUBLIC_DSN___", { diff --git a/docs/platforms/kotlin-multiplatform/initialization-strategies.mdx b/docs/platforms/kotlin-multiplatform/initialization-strategies.mdx index 0cc61f09e38697..a2f65d20b660fd 100644 --- a/docs/platforms/kotlin-multiplatform/initialization-strategies.mdx +++ b/docs/platforms/kotlin-multiplatform/initialization-strategies.mdx @@ -104,7 +104,6 @@ Using a shared initializer provides a single source of truth for your SDK's conf To initialize the SDK, create a Kotlin file in your `commonMain` (such as `AppSetup.kt` or whatever you decide to call it), and write an initialization function. You'll then be able to call it in an early lifecycle stage in your platforms. - ```kotlin {filename:AppSetup.kt} import io.sentry.kotlin.multiplatform.Sentry @@ -138,7 +137,6 @@ expect fun initializeSentry() ### androidMain - ```kotlin {filename:androidMain/AppSetup.kt} import io.sentry.kotlin.multiplatform.Sentry @@ -154,7 +152,6 @@ actual fun initializeSentry() { ### iosMain - ```kotlin {filename:iosMain/AppSetup.kt} import io.sentry.kotlin.multiplatform.Sentry diff --git a/docs/platforms/php/common/integrations/index.mdx b/docs/platforms/php/common/integrations/index.mdx index 2139ab179090d1..d7a95891c6881e 100644 --- a/docs/platforms/php/common/integrations/index.mdx +++ b/docs/platforms/php/common/integrations/index.mdx @@ -78,7 +78,6 @@ You can customize the list of integration without disabling the default integrat In the example below, all integrations are enabled except the `ExceptionListenerIntegration`. - ```php \Sentry\init([ diff --git a/docs/platforms/php/common/profiling/index.mdx b/docs/platforms/php/common/profiling/index.mdx index d306e122faa5ff..0d3f374ccdad16 100644 --- a/docs/platforms/php/common/profiling/index.mdx +++ b/docs/platforms/php/common/profiling/index.mdx @@ -64,7 +64,6 @@ Sentry's tracing product has to be enabled in order for Profiling to work. To begin capturing profiling data, you first need to start a transaction. Check out the performance setup and custom instrumentation documentation for more detailed information. - ```php \Sentry\init([ @@ -75,7 +74,6 @@ Check out the performance setup and ## Enabling Profiling - ```php \Sentry\init([ diff --git a/docs/platforms/php/guides/laravel/index.mdx b/docs/platforms/php/guides/laravel/index.mdx index 5ab257f9889d6e..61024dd2ccb504 100644 --- a/docs/platforms/php/guides/laravel/index.mdx +++ b/docs/platforms/php/guides/laravel/index.mdx @@ -50,7 +50,6 @@ Alternatively, you can configure Sentry in your [Laravel Log Channel](usage/#log Configure the Sentry DSN with this command: - ```shell php artisan sentry:publish --dsn=___PUBLIC_DSN___ @@ -58,7 +57,6 @@ php artisan sentry:publish --dsn=___PUBLIC_DSN___ It creates the config file (`config/sentry.php`) and adds the `DSN` to your `.env` file. - ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/docs/platforms/php/guides/laravel/other-versions/laravel4.mdx b/docs/platforms/php/guides/laravel/other-versions/laravel4.mdx index 8ecdbac065ee6a..b3ff03a0be7edf 100644 --- a/docs/platforms/php/guides/laravel/other-versions/laravel4.mdx +++ b/docs/platforms/php/guides/laravel/other-versions/laravel4.mdx @@ -45,7 +45,6 @@ php artisan config:publish sentry/sentry-laravel Add your DSN to `config/sentry.php`: - ```php {filename:config/sentry.php} ```shell php artisan sentry:publish --dsn=___PUBLIC_DSN___ @@ -60,7 +59,6 @@ php artisan sentry:publish --dsn=___PUBLIC_DSN___ It creates the config file (`config/sentry.php`) and adds the `DSN` to your `.env` file. - ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/docs/platforms/php/guides/laravel/other-versions/laravel6-7.mdx b/docs/platforms/php/guides/laravel/other-versions/laravel6-7.mdx index 17061d0beaa7f8..6146f7635b7f4b 100644 --- a/docs/platforms/php/guides/laravel/other-versions/laravel6-7.mdx +++ b/docs/platforms/php/guides/laravel/other-versions/laravel6-7.mdx @@ -46,7 +46,6 @@ public function report(Exception $exception) Configure the Sentry DSN with this command: - ```shell php artisan sentry:publish --dsn=___PUBLIC_DSN___ @@ -54,7 +53,6 @@ php artisan sentry:publish --dsn=___PUBLIC_DSN___ It creates the config file (`config/sentry.php`) and adds the `DSN` to your `.env` file. - ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/docs/platforms/php/guides/laravel/other-versions/laravel8-10.mdx b/docs/platforms/php/guides/laravel/other-versions/laravel8-10.mdx index a49c09b157d4d4..cdd139d20eeb2a 100644 --- a/docs/platforms/php/guides/laravel/other-versions/laravel8-10.mdx +++ b/docs/platforms/php/guides/laravel/other-versions/laravel8-10.mdx @@ -39,7 +39,6 @@ Alternatively, you can configure Sentry in your [Laravel Log Channel](/platforms Configure the Sentry DSN with this command: - ```shell php artisan sentry:publish --dsn=___PUBLIC_DSN___ @@ -47,7 +46,6 @@ php artisan sentry:publish --dsn=___PUBLIC_DSN___ It creates the config file (`config/sentry.php`) and adds the `DSN` to your `.env` file. - ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/docs/platforms/php/guides/laravel/other-versions/lumen.mdx b/docs/platforms/php/guides/laravel/other-versions/lumen.mdx index cddf0292f66687..a2951246a575de 100644 --- a/docs/platforms/php/guides/laravel/other-versions/lumen.mdx +++ b/docs/platforms/php/guides/laravel/other-versions/lumen.mdx @@ -51,7 +51,6 @@ cp vendor/sentry/sentry-laravel/config/sentry.php config/sentry.php Afterwards, add your DSN to `.env`: - ```shell {filename:.env} SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ diff --git a/docs/platforms/php/guides/symfony/configuration/symfony-options.mdx b/docs/platforms/php/guides/symfony/configuration/symfony-options.mdx index add7e2b453e445..0c4ba4e6e63791 100644 --- a/docs/platforms/php/guides/symfony/configuration/symfony-options.mdx +++ b/docs/platforms/php/guides/symfony/configuration/symfony-options.mdx @@ -8,7 +8,6 @@ In addition to the [configuration available in the PHP SDK](../options/), there All configuration for Symfony is done in `config/packages/sentry.yaml`. - {/* */} ```yaml {filename:config/packages/sentry.yaml} @@ -66,7 +65,7 @@ sentry: max_request_body_size: "medium" class_serializers: App\User: "App\\Sentry\\Serializer\\UserSerializer" - + ``` The DSN option is the only required option: it sets the Sentry DSN, and so reports all events to the related project. If it's diff --git a/docs/platforms/php/guides/symfony/index.mdx b/docs/platforms/php/guides/symfony/index.mdx index 3170539b0e0de5..b1552dfc824f2d 100644 --- a/docs/platforms/php/guides/symfony/index.mdx +++ b/docs/platforms/php/guides/symfony/index.mdx @@ -21,7 +21,6 @@ composer require sentry/sentry-symfony Add your DSN to your `.env` file: - ```plain {filename:.env} ###> sentry/sentry-symfony ### diff --git a/docs/platforms/php/index.mdx b/docs/platforms/php/index.mdx index cb556bd7ffa52b..4507355acbd788 100644 --- a/docs/platforms/php/index.mdx +++ b/docs/platforms/php/index.mdx @@ -48,7 +48,6 @@ The Excimer PHP extension supports PHP 7.2 and up. Excimer requires Linux or mac To capture all errors, even the one during the startup of your application, you should initialize the Sentry PHP SDK as soon as possible. - ```php {"onboardingOptions": {"performance": "3-4", "profiling": "5-6"}} \Sentry\init([ diff --git a/docs/platforms/php/legacy-sdk/index.mdx b/docs/platforms/php/legacy-sdk/index.mdx index 8d291cdb5b387e..2e00019e7a9839 100644 --- a/docs/platforms/php/legacy-sdk/index.mdx +++ b/docs/platforms/php/legacy-sdk/index.mdx @@ -50,7 +50,6 @@ Alternatively you can manually install it: The most important part is the creation of the raven client. Create it once and reference it from anywhere you want to interface with Sentry: - ```php $client = new Raven_Client('___PUBLIC_DSN___'); diff --git a/docs/platforms/php/legacy-sdk/integrations.mdx b/docs/platforms/php/legacy-sdk/integrations.mdx index 9ddd0ab0f124a3..5d3163177b7459 100644 --- a/docs/platforms/php/legacy-sdk/integrations.mdx +++ b/docs/platforms/php/legacy-sdk/integrations.mdx @@ -60,7 +60,6 @@ php artisan vendor:publish --provider="Sentry\SentryLaravel\SentryLaravelService Add your DSN to `.env`: - ```bash SENTRY_LARAVEL_DSN=___PUBLIC_DSN___ @@ -102,7 +101,6 @@ class Handler extends ExceptionHandler Next, create `resources/views/errors/500.blade.php`, and embed the feedback code: - ```html
@@ -163,7 +161,6 @@ php artisan config:publish sentry/sentry-laravel Add your DSN to `config/sentry.php`: - ```php ```php ```php 'dsn' => '___PUBLIC_DSN___', @@ -334,7 +329,6 @@ Defaults to `true`. Monolog supports Sentry out of the box, so you’ll just need to configure a handler: - ```php $client = new Raven_Client('___PUBLIC_DSN___'); @@ -373,7 +367,6 @@ $monolog->pushProcessor(function ($record) { Sentry provides a breadcrumb handler to automatically send logs along as crumbs: - ```php $client = new Raven_Client('___PUBLIC_DSN___'); @@ -422,7 +415,6 @@ public function registerBundles() Add your DSN to `app/config/config.yml`: - ```yaml sentry: diff --git a/docs/platforms/php/legacy-sdk/usage.mdx b/docs/platforms/php/legacy-sdk/usage.mdx index 2446db3c84fa2b..64f9d84e1df1c1 100644 --- a/docs/platforms/php/legacy-sdk/usage.mdx +++ b/docs/platforms/php/legacy-sdk/usage.mdx @@ -20,7 +20,6 @@ Using Sentry with PHP is straightforward. After installation of the library you The most important part is the creation of the raven client. Create it once and reference it from anywhere you want to interface with Sentry: - ```php $sentryClient = new Raven_Client('___PUBLIC_DSN___'); @@ -173,7 +172,6 @@ $sentryClient->getLastEventID(); To enable user feedback for crash reports, you will need to create an error handler which is aware of the last event ID. - ```php ```html @@ -279,7 +276,6 @@ if (!$my_file) { The PHP client includes a simple helper script to test your connection and credentials with the Sentry master server: - ```bash bin/sentry test ___PUBLIC_DSN___ diff --git a/docs/platforms/python/index.mdx b/docs/platforms/python/index.mdx index 1d9c2970b4293c..16785f9a8394c9 100644 --- a/docs/platforms/python/index.mdx +++ b/docs/platforms/python/index.mdx @@ -36,7 +36,6 @@ pip install --upgrade sentry-sdk Configuration should happen as early as possible in your application's lifecycle. - ```python {"onboardingOptions": {"performance": "5-7", "profiling": "8-11"}} diff --git a/docs/platforms/python/integrations/airflow/index.mdx b/docs/platforms/python/integrations/airflow/index.mdx index 48e93306c7fdd7..d1286882c23a2e 100644 --- a/docs/platforms/python/integrations/airflow/index.mdx +++ b/docs/platforms/python/integrations/airflow/index.mdx @@ -15,7 +15,6 @@ pip install 'apache-airflow[sentry]' Then, add your Sentry DSN to your configuration file (ex. `airflow.cfg`) under the `[sentry]` field. - ```ini {filename:airflow.cfg} [sentry] diff --git a/docs/platforms/python/integrations/asgi/index.mdx b/docs/platforms/python/integrations/asgi/index.mdx index 6e5b15e36f7fd6..2ca7e8dad29107 100644 --- a/docs/platforms/python/integrations/asgi/index.mdx +++ b/docs/platforms/python/integrations/asgi/index.mdx @@ -19,7 +19,6 @@ pip install --upgrade 'sentry-sdk' ## Configure - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/asyncio/index.mdx b/docs/platforms/python/integrations/asyncio/index.mdx index 3df6b799bc3fce..ce26b64093ff3c 100644 --- a/docs/platforms/python/integrations/asyncio/index.mdx +++ b/docs/platforms/python/integrations/asyncio/index.mdx @@ -15,7 +15,6 @@ pip install --upgrade 'sentry-sdk' Add `AsyncioIntegration()` to your list of `integrations`, enable tracing and be sure to call `sentry_sdk.init()` at the beginning of your async loop: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/aws-lambda/container-image/index.mdx b/docs/platforms/python/integrations/aws-lambda/container-image/index.mdx index 2cb954176d78d0..bfc82f2cf1e305 100644 --- a/docs/platforms/python/integrations/aws-lambda/container-image/index.mdx +++ b/docs/platforms/python/integrations/aws-lambda/container-image/index.mdx @@ -43,7 +43,6 @@ Next, set the following environment variables in AWS: Alternatively, you can also set the environment variables in your Dockerfile. Values set in AWS override the values in a Dockerfile if both are provided. - ```docker {tabTitle: Dockerfile} ENV SENTRY_INITIAL_HANDLER="" diff --git a/docs/platforms/python/integrations/aws-lambda/manual-instrumentation/index.mdx b/docs/platforms/python/integrations/aws-lambda/manual-instrumentation/index.mdx index eb991a29530fae..df211dc279f26d 100644 --- a/docs/platforms/python/integrations/aws-lambda/manual-instrumentation/index.mdx +++ b/docs/platforms/python/integrations/aws-lambda/manual-instrumentation/index.mdx @@ -31,7 +31,6 @@ pip install --target ./package --upgrade sentry-sdk Here's how to use the AWS Lambda integration for the Python SDK: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/beam/index.mdx b/docs/platforms/python/integrations/beam/index.mdx index db210ad44ab66a..6f1e4971993d52 100644 --- a/docs/platforms/python/integrations/beam/index.mdx +++ b/docs/platforms/python/integrations/beam/index.mdx @@ -11,7 +11,6 @@ A Beam version of 2.12 or later is required. Add `BeamIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/celery/crons.mdx b/docs/platforms/python/integrations/celery/crons.mdx index a6aa7b6e3d72ea..6c4181452ec7ce 100644 --- a/docs/platforms/python/integrations/celery/crons.mdx +++ b/docs/platforms/python/integrations/celery/crons.mdx @@ -40,7 +40,6 @@ Next, we need to initialize Sentry. Where to do this depends on how you run beat Make sure to also set `monitor_beat_tasks=True` in `CeleryIntegration`. - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). @@ -99,7 +98,6 @@ You don't need to create Cron Monitors for your tasks on Sentry.io, we'll do it You can exclude Celery Beat tasks from being auto-instrumented. To do this, add a list of tasks you want to exclude as option `exclude_beat_tasks` when creating `CeleryIntegration`. The list can contain simple strings with the full task name, as specified in the Celery Beat schedule, or regular expressions to match multiple tasks. - ```python sentry_sdk.init( diff --git a/docs/platforms/python/integrations/cloudresourcecontext/index.mdx b/docs/platforms/python/integrations/cloudresourcecontext/index.mdx index bf93e477c8a054..afeea531557d8d 100644 --- a/docs/platforms/python/integrations/cloudresourcecontext/index.mdx +++ b/docs/platforms/python/integrations/cloudresourcecontext/index.mdx @@ -17,7 +17,6 @@ pip install --upgrade 'sentry-sdk' Add `CloudResourceContextIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/django/index.mdx b/docs/platforms/python/integrations/django/index.mdx index 0f46aa55e4ded3..5e16739a1a3cc8 100644 --- a/docs/platforms/python/integrations/django/index.mdx +++ b/docs/platforms/python/integrations/django/index.mdx @@ -25,7 +25,6 @@ pip install --upgrade 'sentry-sdk[django]' To configure the Sentry SDK, initialize it in your `settings.py` file: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below. diff --git a/docs/platforms/python/integrations/dramatiq/index.mdx b/docs/platforms/python/integrations/dramatiq/index.mdx index c1e96a88359a46..2c0181695de98c 100644 --- a/docs/platforms/python/integrations/dramatiq/index.mdx +++ b/docs/platforms/python/integrations/dramatiq/index.mdx @@ -24,7 +24,6 @@ pip install --upgrade sentry-sdk Add `DramatiqIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/gcp-functions/index.mdx b/docs/platforms/python/integrations/gcp-functions/index.mdx index 1210f034b1fa0d..1681bc684eef23 100644 --- a/docs/platforms/python/integrations/gcp-functions/index.mdx +++ b/docs/platforms/python/integrations/gcp-functions/index.mdx @@ -23,7 +23,6 @@ Limited Sentry support is available on newer Python runtimes by directly enablin You can use the Google Cloud Functions integration for the Python SDK like this: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below. diff --git a/docs/platforms/python/integrations/gnu_backtrace/index.mdx b/docs/platforms/python/integrations/gnu_backtrace/index.mdx index 3eba40e06367e4..38fca9de1df963 100644 --- a/docs/platforms/python/integrations/gnu_backtrace/index.mdx +++ b/docs/platforms/python/integrations/gnu_backtrace/index.mdx @@ -19,7 +19,6 @@ pip install --upgrade 'sentry-sdk' Add `GnuBacktraceIntegration()` to your `integrations` list: - ```python import sentry_sdk diff --git a/docs/platforms/python/integrations/grpc/index.mdx b/docs/platforms/python/integrations/grpc/index.mdx index 5308117e4ee4de..9dcc37069ab340 100644 --- a/docs/platforms/python/integrations/grpc/index.mdx +++ b/docs/platforms/python/integrations/grpc/index.mdx @@ -22,7 +22,6 @@ Add `GRPCIntegration()` to your `integrations` list, and enable tracing. This will add appropriate intercepters to your server/client to capture errors and performance data. - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/langchain/index.mdx b/docs/platforms/python/integrations/langchain/index.mdx index 2de1d33188a263..61a1051a7cf51b 100644 --- a/docs/platforms/python/integrations/langchain/index.mdx +++ b/docs/platforms/python/integrations/langchain/index.mdx @@ -30,7 +30,6 @@ If you have the `langchain` package in your dependencies, the Langchain integrat An additional dependency, `tiktoken`, is required to be installed if you want to calculate token usage for streaming chat responses. - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/litestar/index.mdx b/docs/platforms/python/integrations/litestar/index.mdx index bee08e38203685..ed80f35c63e9fa 100644 --- a/docs/platforms/python/integrations/litestar/index.mdx +++ b/docs/platforms/python/integrations/litestar/index.mdx @@ -17,7 +17,6 @@ pip install --upgrade 'sentry-sdk[litestar]' uvicorn Add `LitestarIntegration()` to your `integrations` list: - ```python import sentry_sdk diff --git a/docs/platforms/python/integrations/loguru/index.mdx b/docs/platforms/python/integrations/loguru/index.mdx index 82f2b4724f1dc7..878a31984726db 100644 --- a/docs/platforms/python/integrations/loguru/index.mdx +++ b/docs/platforms/python/integrations/loguru/index.mdx @@ -19,7 +19,6 @@ pip install --upgrade 'sentry-sdk[loguru]' If you have the `loguru` package in your dependencies, the Loguru integration will be enabled automatically when you initialize the Sentry SDK. - ```python import sentry_sdk diff --git a/docs/platforms/python/integrations/pure_eval/index.mdx b/docs/platforms/python/integrations/pure_eval/index.mdx index d2de3f8ae7bf0f..ae5e72f391af92 100644 --- a/docs/platforms/python/integrations/pure_eval/index.mdx +++ b/docs/platforms/python/integrations/pure_eval/index.mdx @@ -17,7 +17,6 @@ pip install --upgrade 'sentry-sdk[pure_eval]' Add `PureEvalIntegration()` to your `integrations` list: - ```python import sentry_sdk diff --git a/docs/platforms/python/integrations/ray/index.mdx b/docs/platforms/python/integrations/ray/index.mdx index 75352b1f0d0c8f..bef4855b8bfa93 100644 --- a/docs/platforms/python/integrations/ray/index.mdx +++ b/docs/platforms/python/integrations/ray/index.mdx @@ -17,7 +17,6 @@ pip install --upgrade sentry-sdk Add `RayIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). @@ -98,4 +97,3 @@ Running this will create an error event (`ZeroDivisionError`) that will be sent - Ray: 2.34+ - Python: 3.8+ - diff --git a/docs/platforms/python/integrations/rq/index.mdx b/docs/platforms/python/integrations/rq/index.mdx index 7c457aadc5eb75..74267737c4200a 100644 --- a/docs/platforms/python/integrations/rq/index.mdx +++ b/docs/platforms/python/integrations/rq/index.mdx @@ -19,7 +19,6 @@ If you have the `rq` package in your dependencies, the RQ integration will be en Create a file called `mysettings.py` with the following content: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). @@ -63,7 +62,6 @@ Generally, make sure that the **call to `init` is loaded on worker startup**, an In addition, make sure that **`init` is called only once** in your app. For example, if you have a `Flask` app and a worker that depends on the app, we recommend only initializing Sentry once. Note that because the Flask integration is enabled automatically, you don't need to change the configuration shown above. - ```python {filename:app.py} {"onboardingOptions": {"performance": "6-8", "profiling": "9-12"}} # app.py diff --git a/docs/platforms/python/integrations/sanic/index.mdx b/docs/platforms/python/integrations/sanic/index.mdx index a8696750d3ebfd..82174266027aaa 100644 --- a/docs/platforms/python/integrations/sanic/index.mdx +++ b/docs/platforms/python/integrations/sanic/index.mdx @@ -27,7 +27,6 @@ To ensure that errors occuring in background tasks get reported to Sentry, we al The example below demonstrates the simplest recommended setup. - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/serverless/index.mdx b/docs/platforms/python/integrations/serverless/index.mdx index 1ce16aa9fbb736..f9c47bb28068f1 100644 --- a/docs/platforms/python/integrations/serverless/index.mdx +++ b/docs/platforms/python/integrations/serverless/index.mdx @@ -24,7 +24,6 @@ pip install --upgrade 'sentry-sdk' Apply the `serverless_function` decorator to each function that might throw errors: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/socket/index.mdx b/docs/platforms/python/integrations/socket/index.mdx index 1ac7a338e58499..410d2547e02d94 100644 --- a/docs/platforms/python/integrations/socket/index.mdx +++ b/docs/platforms/python/integrations/socket/index.mdx @@ -17,7 +17,6 @@ pip install --upgrade 'sentry-sdk' Add `SocketIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/spark/index.mdx b/docs/platforms/python/integrations/spark/index.mdx index 78d3115fb88aae..65dcdaf7a28364 100644 --- a/docs/platforms/python/integrations/spark/index.mdx +++ b/docs/platforms/python/integrations/spark/index.mdx @@ -13,7 +13,6 @@ The Spark driver integration is supported for Spark 2 and above. To configure the SDK, initialize it with the integration before you create a `SparkContext` or `SparkSession`. - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). @@ -59,7 +58,6 @@ The spark worker integration is supported for Spark versions 2.4.x and 3.1.x. Create a file called `sentry-daemon.py` with the following content: - ```python {filename:sentry-daemon.py} {"onboardingOptions": {"performance": "8-10", "profiling": "11-14"}} import sentry_sdk diff --git a/docs/platforms/python/integrations/strawberry/index.mdx b/docs/platforms/python/integrations/strawberry/index.mdx index f9634457c33c8f..69c88db0bb1ff1 100644 --- a/docs/platforms/python/integrations/strawberry/index.mdx +++ b/docs/platforms/python/integrations/strawberry/index.mdx @@ -19,7 +19,6 @@ pip install --upgrade sentry-sdk Add `StrawberryIntegration()` to your `integrations` list: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/tryton/index.mdx b/docs/platforms/python/integrations/tryton/index.mdx index a72e4e517949d1..bb4d45c3bea43d 100644 --- a/docs/platforms/python/integrations/tryton/index.mdx +++ b/docs/platforms/python/integrations/tryton/index.mdx @@ -9,7 +9,6 @@ The Tryton integration adds support for the [Tryton Framework Server](https://ww To configure the SDK, initialize it with the integration in a custom `wsgi.py` script: - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/integrations/wsgi/index.mdx b/docs/platforms/python/integrations/wsgi/index.mdx index ca7421bb0858cf..912ca3809e44aa 100644 --- a/docs/platforms/python/integrations/wsgi/index.mdx +++ b/docs/platforms/python/integrations/wsgi/index.mdx @@ -18,7 +18,6 @@ pip install --upgrade 'sentry-sdk' ## Configure - In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/). You can also collect and analyze performance profiles from real users with [profiling](/product/explore/profiling/). diff --git a/docs/platforms/python/legacy-sdk/integrations.mdx b/docs/platforms/python/legacy-sdk/integrations.mdx index 82ec8baa0c402e..89925ef5766476 100644 --- a/docs/platforms/python/legacy-sdk/integrations.mdx +++ b/docs/platforms/python/legacy-sdk/integrations.mdx @@ -371,7 +371,6 @@ TEMPLATE_CONTEXT_PROCESSORS = ( By default Django will render `500.html`, so simply drop the following snippet into your template: - ```html diff --git a/docs/platforms/python/legacy-sdk/usage.mdx b/docs/platforms/python/legacy-sdk/usage.mdx index c1781414e98eaf..d9fa5fd0205a2f 100644 --- a/docs/platforms/python/legacy-sdk/usage.mdx +++ b/docs/platforms/python/legacy-sdk/usage.mdx @@ -100,7 +100,6 @@ raven test You should get something like the following, assuming you’re configured everything correctly: - ```bash raven test sync+___DSN___ diff --git a/docs/platforms/python/migration/1.x-to-2.x.mdx b/docs/platforms/python/migration/1.x-to-2.x.mdx index edef38ed0531e8..1d22b35e431b29 100644 --- a/docs/platforms/python/migration/1.x-to-2.x.mdx +++ b/docs/platforms/python/migration/1.x-to-2.x.mdx @@ -20,7 +20,6 @@ The deprecated `with_locals` and `request_bodies` options have been removed in f **These are all potential changes you need to apply to your init**: - ```python diff import sentry_sdk diff --git a/docs/platforms/python/migration/raven-to-sentry-sdk.mdx b/docs/platforms/python/migration/raven-to-sentry-sdk.mdx index 33bb76e2ad2624..a12fe2b9287cbb 100644 --- a/docs/platforms/python/migration/raven-to-sentry-sdk.mdx +++ b/docs/platforms/python/migration/raven-to-sentry-sdk.mdx @@ -12,7 +12,6 @@ The installation is now the same regardless of framework or library you integrat **Old**: - ```python import raven @@ -21,7 +20,6 @@ client = raven.Client("___PUBLIC_DSN___", release="1.3.0") **New**: - ```python import sentry_sdk diff --git a/docs/platforms/python/profiling/index.mdx b/docs/platforms/python/profiling/index.mdx index 05e3710cf79ddf..5a3ee12b813e88 100644 --- a/docs/platforms/python/profiling/index.mdx +++ b/docs/platforms/python/profiling/index.mdx @@ -15,7 +15,6 @@ Python profiling is stable as of SDK version `1.18.0`. - ```python import sentry_sdk diff --git a/docs/platforms/python/profiling/troubleshooting/index.mdx b/docs/platforms/python/profiling/troubleshooting/index.mdx index 0b2feed1c7b23f..09bc08df9eb11e 100644 --- a/docs/platforms/python/profiling/troubleshooting/index.mdx +++ b/docs/platforms/python/profiling/troubleshooting/index.mdx @@ -16,7 +16,6 @@ If you don't see any profiling data in [sentry.io](https://sentry.io), you can t The feature was experimental prior to version `1.17.0`. To update your SDK to the latest version, remove `profiles_sample_rate` from `_experiments` and set it in the top-level options. - ```python sentry_sdk.init( diff --git a/docs/platforms/python/tracing/index.mdx b/docs/platforms/python/tracing/index.mdx index fe51ee828c5eb2..9ccfcbef5d0207 100644 --- a/docs/platforms/python/tracing/index.mdx +++ b/docs/platforms/python/tracing/index.mdx @@ -12,7 +12,6 @@ sidebar_order: 4000 To enable tracing in your application, adjust the `traces_sample_rate` based on the number of trace samples you want to send to Sentry by adding the highlighted code snippet below. (Setting a value of `1.0` will send 100% of your traces.) - ```python {diff} import sentry_sdk diff --git a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/index.mdx b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/index.mdx index df047c6142a060..0ae765af70b885 100644 --- a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/index.mdx +++ b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/index.mdx @@ -125,7 +125,6 @@ def eat_slice(slice): To avoid having custom performance instrumentation code scattered all over your code base, pass a parameter to your `sentry_sdk.init()` call. - ```python import sentry_sdk diff --git a/docs/platforms/react-native/index.mdx b/docs/platforms/react-native/index.mdx index 12e121ce6b043c..2d1ef4768d228d 100644 --- a/docs/platforms/react-native/index.mdx +++ b/docs/platforms/react-native/index.mdx @@ -64,7 +64,6 @@ If you're using Expo, [read our docs](/platforms/react-native/manual-setup/expo/ To capture all errors, initialize the Sentry React Native SDK as soon as possible. - ```javascript {filename:App.js} {"onboardingOptions": {"performance": "5-7", "profiling": "8-12"}} import * as Sentry from "@sentry/react-native"; diff --git a/docs/platforms/react-native/integrations/default.mdx b/docs/platforms/react-native/integrations/default.mdx index 420c62c089dc29..791a6ba0395908 100644 --- a/docs/platforms/react-native/integrations/default.mdx +++ b/docs/platforms/react-native/integrations/default.mdx @@ -184,7 +184,6 @@ To disable system integrations, set `defaultIntegrations: false` when calling `i To override their settings, provide a new instance with your config to the `integrations` option. For example, to turn off browser capturing console calls: - ```javascript Sentry.init({ @@ -213,4 +212,3 @@ Sentry.init({ }, }); ``` - diff --git a/docs/platforms/react-native/manual-setup/native-init.mdx b/docs/platforms/react-native/manual-setup/native-init.mdx index ebce046f2aa81b..f2ae5781bbd97d 100644 --- a/docs/platforms/react-native/manual-setup/native-init.mdx +++ b/docs/platforms/react-native/manual-setup/native-init.mdx @@ -8,7 +8,6 @@ By default, the React Native SDK initializes the native SDK underneath the `init To do this, set [autoInitializeNativeSdk](/platforms/react-native/configuration/options/#autoInitializeNativeSdk) to `false` in the init options: - ```javascript Sentry.init({ diff --git a/docs/platforms/react-native/session-replay/index.mdx b/docs/platforms/react-native/session-replay/index.mdx index 515ac86f66d487..374063cb5c1605 100644 --- a/docs/platforms/react-native/session-replay/index.mdx +++ b/docs/platforms/react-native/session-replay/index.mdx @@ -58,7 +58,6 @@ Sentry.init({ }); ``` - ## Verify diff --git a/docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx b/docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx index 4ebb98b6657ac5..3d4b21c104f457 100644 --- a/docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx +++ b/docs/platforms/react-native/tracing/instrumentation/automatic-instrumentation.mdx @@ -104,7 +104,6 @@ The tracing integration creates a child span for every `XMLHttpRequest` or `fetc To configure the automatic performance instrumentation, you will need to add the `ReactNativeTracing` integration yourself. We provide many options by default, so for the majority of apps you won't need to configure the integration yourself. - ```javascript import * as Sentry from "@sentry/react-native"; @@ -122,7 +121,6 @@ For all possible options, see [ReactNativeTracingOptions](https://github.com/get You can use `beforeNavigate` to modify the transaction from routing instrumentation before the transaction is created. If you prefer not to send the transaction, set `sampled = false`. - ```javascript Sentry.init({ @@ -249,7 +247,6 @@ When bundling for production, React Native will minify class and function names If you want to use tracing without our automatic instrumentation, you can disable it by setting `enableAutoPerformanceTracing` in your Sentry options and removing the `ReactNativeTracing` integration, if you added it: - ```javascript import * as Sentry from "@sentry/react-native"; diff --git a/docs/platforms/react-native/troubleshooting/index.mdx b/docs/platforms/react-native/troubleshooting/index.mdx index 71400e2ef20045..11ab0b0d78465b 100644 --- a/docs/platforms/react-native/troubleshooting/index.mdx +++ b/docs/platforms/react-native/troubleshooting/index.mdx @@ -33,7 +33,6 @@ By default we will patch the global `Promise` instance to ensure it matches exac If you use a polyfilling library that patches the global `Promise` instance, you'll need to make sure you run the polyfill **after** `Sentry.init` is called. - ```javascript import allSettled from "promise.allsettled"; diff --git a/docs/platforms/ruby/common/profiling/index.mdx b/docs/platforms/ruby/common/profiling/index.mdx index f1b5b90544aee2..55284b3ef7b983 100644 --- a/docs/platforms/ruby/common/profiling/index.mdx +++ b/docs/platforms/ruby/common/profiling/index.mdx @@ -28,7 +28,6 @@ gem 'sentry-ruby' Then, make sure both `traces_sample_rate` and `profiles_sample_rate` are set and non-zero in your Sentry initializer. - ```ruby # config/initializers/sentry.rb diff --git a/docs/platforms/rust/guides/actix-web/index.mdx b/docs/platforms/rust/guides/actix-web/index.mdx index 6c827dc638267d..e40def6731138f 100644 --- a/docs/platforms/rust/guides/actix-web/index.mdx +++ b/docs/platforms/rust/guides/actix-web/index.mdx @@ -22,7 +22,6 @@ sentry-actix = "{{@inject packages.version('sentry.rust') }}" And your Rust code: - ```rust {filename:main.rs} use std::io; diff --git a/docs/platforms/rust/index.mdx b/docs/platforms/rust/index.mdx index 2b6979a542b6e9..2244e745f18449 100644 --- a/docs/platforms/rust/index.mdx +++ b/docs/platforms/rust/index.mdx @@ -32,7 +32,6 @@ The most convenient way to use this library is the `sentry::init` function, whic The `sentry::init` function returns a guard that when dropped, will flush Events that weren't yet sent to Sentry. It has a two-second deadline, so application shutdown may be slightly delayed as a result. Be sure to keep the guard or you won't be able to send events. - ```rust {filename:main.rs} let _guard = sentry::init(("___PUBLIC_DSN___", sentry::ClientOptions { @@ -84,7 +83,6 @@ tokio::runtime::Builder::new_multi_thread() The quickest way to verify Sentry in your Rust application is to cause a panic: - ```rust {filename:main.rs} fn main() { diff --git a/docs/platforms/unity/configuration/event-debouncing/index.mdx b/docs/platforms/unity/configuration/event-debouncing/index.mdx index 4263006973c320..beab2938c55140 100644 --- a/docs/platforms/unity/configuration/event-debouncing/index.mdx +++ b/docs/platforms/unity/configuration/event-debouncing/index.mdx @@ -14,7 +14,6 @@ The time that needs to pass after an event has been triggered to be captured aga - `LogType.Warning` - one second - `LogType.Error`, `LogType.Exception`, `LogType.Assert` and actual exceptions - one second - ```csharp using UnityEngine; diff --git a/docs/platforms/unity/migration/index.mdx b/docs/platforms/unity/migration/index.mdx index fac7e5f9209d55..6f786f71ee014a 100644 --- a/docs/platforms/unity/migration/index.mdx +++ b/docs/platforms/unity/migration/index.mdx @@ -49,7 +49,6 @@ The updated Sentry Unity SDK requires Unity version 2019.4 or higher with .NET S - 1. Remove the old `Sentry.cs` and `SentrySdk.cs` files from your project. 2. Remove the old initialization code `gameObject.AddComponent().Dsn = "___PUBLIC_DSN___";`. diff --git a/docs/platforms/unreal/index.mdx b/docs/platforms/unreal/index.mdx index 525897f0c8b25b..aef52db801ba01 100644 --- a/docs/platforms/unreal/index.mdx +++ b/docs/platforms/unreal/index.mdx @@ -77,7 +77,6 @@ PublicDependencyModuleNames.AddRange(new string[] { ..., "Sentry" }); The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) of your project: - ``` ___PUBLIC_DSN___ diff --git a/docs/product/crons/getting-started/http/index.mdx b/docs/product/crons/getting-started/http/index.mdx index 2cb8b2b6b89ae2..b96ab0b4737c53 100644 --- a/docs/product/crons/getting-started/http/index.mdx +++ b/docs/product/crons/getting-started/http/index.mdx @@ -19,7 +19,6 @@ Optionally, you can skip the first step and [create or update (upsert) a monitor Check-in monitoring allows you to track a job's progress by completing two check-ins: one at the start of your job and another at the end of your job. This two-step process allows Sentry to notify you if your job didn't start when expected (missed) or if it exceeded its maximum runtime (failed). - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -44,7 +43,6 @@ Host: ___ORG_INGEST_DOMAIN___ If your job execution fails: - ```bash {tabTitle: cURL} # 🔴 Notify Sentry your job has failed: @@ -78,7 +76,6 @@ schedule or delete the monitor environment; otherwise, it will be marked as miss - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -97,7 +94,6 @@ curl "${SENTRY_CRONS}?environment=dev&status=ok" Sentry enables the automatic creation or update of a monitor (upsert) through the check-in payload. This can be useful if you have many scheduled tasks or need to create them dynamically. - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -186,7 +182,6 @@ If this happens, you have to provide a stable check-in ID for your execution wit Usage example: - ```bash {tabTitle: cURL} CHECK_IN_ID="$(uuidgen)" @@ -207,7 +202,6 @@ curl "${SENTRY_CRONS}?check_in_id=${CHECK_IN_ID}&status=ok" 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. - ```bash {tabTitle: cURL} SENTRY_INGEST="https://___ORG_INGEST_DOMAIN___" @@ -224,7 +218,6 @@ Host: ___ORG_INGEST_DOMAIN___ If your job execution fails: - ```bash {tabTitle: cURL} # 🔴 Notify Sentry your job has failed: diff --git a/docs/product/sentry-basics/integrate-frontend/configure-scms.mdx b/docs/product/sentry-basics/integrate-frontend/configure-scms.mdx index 2db53bece9df3b..bdfb24f1a896e1 100644 --- a/docs/product/sentry-basics/integrate-frontend/configure-scms.mdx +++ b/docs/product/sentry-basics/integrate-frontend/configure-scms.mdx @@ -64,7 +64,6 @@ The Sentry webpack plugin can automatically configure release information and se 1. To start associating commits and releases, add the following lines of code to `webpack.config.js` in your Sentry webpack plugin config: - ```javascript {filename:webpack.config.js} sentryWebpackPlugin({ diff --git a/docs/product/sentry-basics/integrate-frontend/upload-source-maps.mdx b/docs/product/sentry-basics/integrate-frontend/upload-source-maps.mdx index 8d7292d4af5a7a..5c1d0eff4096f8 100644 --- a/docs/product/sentry-basics/integrate-frontend/upload-source-maps.mdx +++ b/docs/product/sentry-basics/integrate-frontend/upload-source-maps.mdx @@ -58,7 +58,6 @@ If your project has a different configuration, use the [Sentry Wizard](/platform 1. Open `webpack.config.js` and add the following lines to add the plugin configuration to webpack. - ```javascript {filename:webpack.config.js} const { sentryWebpackPlugin } = require("@sentry/webpack-plugin"); diff --git a/docs/security-legal-pii/security/security-policy-reporting.mdx b/docs/security-legal-pii/security/security-policy-reporting.mdx index 5cee98b8415425..b9a2e63d396394 100644 --- a/docs/security-legal-pii/security/security-policy-reporting.mdx +++ b/docs/security-legal-pii/security/security-policy-reporting.mdx @@ -14,7 +14,6 @@ The integration process consists of configuring the appropriate header with your To configure CSP reports in Sentry, you’ll need to send a header from your server describing your policy and specifying the authenticated Sentry endpoint: - ``` Content-Security-Policy: ...; @@ -32,7 +31,6 @@ Though the `report-to` directive is intended to replace the deprecated `report-u Alternatively, you can set up CSP reports to simply send reports rather than enforcing the policy: - ``` Content-Security-Policy-Report-Only: ...; @@ -52,7 +50,6 @@ For more information, see the article on [MDN](https://developer.mozilla.org/en- To configure reports in Sentry, you’ll need to configure the Expect-CT header from your server: - ``` Expect-CT: ..., report-uri="https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___" @@ -66,7 +63,6 @@ For more information, see the article on [MDN](https://developer.mozilla.org/en- To configure HPKP reports in Sentry, you’ll need to send a header from your server describing your policy and specify the authenticated Sentry endpoint: - ``` Public-Key-Pins: ...; report-uri="https://___ORG_INGEST_DOMAIN___/api/___PROJECT_ID___/security/?sentry_key=___PUBLIC_KEY___" diff --git a/includes/platforms/configuration/integrations/redux.mdx b/includes/platforms/configuration/integrations/redux.mdx index 3166ae15eba073..7dc8b82f8a31b5 100644 --- a/includes/platforms/configuration/integrations/redux.mdx +++ b/includes/platforms/configuration/integrations/redux.mdx @@ -19,8 +19,6 @@ Because Sentry uses a redux **enhancer**, you should pass it as indicated above By default, Sentry SDKs normalize any context to a depth of 3. You may want to increase this for sending Redux states by passing `normalizeDepth` to the `Sentry.init` call: - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/configuration/auto-session-tracking/apple.mdx b/platform-includes/configuration/auto-session-tracking/apple.mdx index b54f6c1bb9b013..b0726690786212 100644 --- a/platform-includes/configuration/auto-session-tracking/apple.mdx +++ b/platform-includes/configuration/auto-session-tracking/apple.mdx @@ -2,7 +2,6 @@ To benefit from the health data, you must use _at least_ version 5.0.0 of the Co By default, the session is terminated once the application is in the background for more than 30 seconds. You can change the time out with the option named `sessionTrackingIntervalMillis`. It takes the amount in milliseconds. For example, to configure it to be 60 seconds: - ```swift {tabTitle:Swift} import Sentry @@ -24,7 +23,6 @@ SentrySDK.start { options in If you'd like to opt out of this feature, you can do so using options: - ```swift {tabTitle:Swift} import Sentry diff --git a/platform-includes/configuration/auto-session-tracking/react-native.mdx b/platform-includes/configuration/auto-session-tracking/react-native.mdx index a9c76cc0c7e4ce..275b4cad64a3e1 100644 --- a/platform-includes/configuration/auto-session-tracking/react-native.mdx +++ b/platform-includes/configuration/auto-session-tracking/react-native.mdx @@ -12,7 +12,6 @@ Sentry.init({ The session terminates once the application is in the background for more than 30 seconds. To change the timeout, use the option `sessionTrackingIntervalMillis`. For example: - ```javascript import * as Sentry from "@sentry/react-native"; diff --git a/platform-includes/configuration/before-send-check-in/php.mdx b/platform-includes/configuration/before-send-check-in/php.mdx index 9abfd606df371a..4a7c759ae5931c 100644 --- a/platform-includes/configuration/before-send-check-in/php.mdx +++ b/platform-includes/configuration/before-send-check-in/php.mdx @@ -1,6 +1,5 @@ In PHP, a closure can be used to modify the event or return a completely new one. If you return `null`, the event will be discarded. - ```php \Sentry\init([ diff --git a/platform-includes/configuration/before-send-fingerprint/apple.mdx b/platform-includes/configuration/before-send-fingerprint/apple.mdx index 75532172413c77..56460e137f7c11 100644 --- a/platform-includes/configuration/before-send-fingerprint/apple.mdx +++ b/platform-includes/configuration/before-send-fingerprint/apple.mdx @@ -1,5 +1,3 @@ - - ```swift {tabTitle:Swift} import Sentry diff --git a/platform-includes/configuration/before-send-fingerprint/php.mdx b/platform-includes/configuration/before-send-fingerprint/php.mdx index 064dff2ed0685e..a2033eeef84672 100644 --- a/platform-includes/configuration/before-send-fingerprint/php.mdx +++ b/platform-includes/configuration/before-send-fingerprint/php.mdx @@ -1,5 +1,3 @@ - - ```php \Sentry\init([ 'dsn' => '___PUBLIC_DSN___', diff --git a/platform-includes/configuration/before-send-hint/php.mdx b/platform-includes/configuration/before-send-hint/php.mdx index 796556e0ce3244..0187875b82eeb2 100644 --- a/platform-includes/configuration/before-send-hint/php.mdx +++ b/platform-includes/configuration/before-send-hint/php.mdx @@ -1,5 +1,3 @@ - - ```php \Sentry\init([ 'dsn' => '___PUBLIC_DSN___', diff --git a/platform-includes/configuration/before-send-span/apple.mdx b/platform-includes/configuration/before-send-span/apple.mdx index c100c21c00909f..982be8de5844e0 100644 --- a/platform-includes/configuration/before-send-span/apple.mdx +++ b/platform-includes/configuration/before-send-span/apple.mdx @@ -1,5 +1,3 @@ - - ```swift {tabTitle:Swift} import Sentry diff --git a/platform-includes/configuration/before-send-span/javascript.mdx b/platform-includes/configuration/before-send-span/javascript.mdx index 7b60a0d7fb4b00..bcbba89531bec9 100644 --- a/platform-includes/configuration/before-send-span/javascript.mdx +++ b/platform-includes/configuration/before-send-span/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/configuration/before-send-transaction/javascript.mdx b/platform-includes/configuration/before-send-transaction/javascript.mdx index bb344dfc570f3c..f67628ea5193c6 100644 --- a/platform-includes/configuration/before-send-transaction/javascript.mdx +++ b/platform-includes/configuration/before-send-transaction/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/configuration/before-send-transaction/php.mdx b/platform-includes/configuration/before-send-transaction/php.mdx index 6361ed10b13ba6..e713190bda4eea 100644 --- a/platform-includes/configuration/before-send-transaction/php.mdx +++ b/platform-includes/configuration/before-send-transaction/php.mdx @@ -1,6 +1,5 @@ In PHP, a closure can be used to modify the event or return a completely new one. If you return `null`, the event will be discarded. - ```php \Sentry\init([ diff --git a/platform-includes/configuration/before-send/apple.mdx b/platform-includes/configuration/before-send/apple.mdx index 137a3d36083e76..f9fec2233fef3e 100644 --- a/platform-includes/configuration/before-send/apple.mdx +++ b/platform-includes/configuration/before-send/apple.mdx @@ -1,5 +1,3 @@ - - ```swift {tabTitle:Swift} import Sentry diff --git a/platform-includes/configuration/before-send/javascript.mdx b/platform-includes/configuration/before-send/javascript.mdx index dbe98307da92b4..67b19baefe5703 100644 --- a/platform-includes/configuration/before-send/javascript.mdx +++ b/platform-includes/configuration/before-send/javascript.mdx @@ -2,7 +2,6 @@ In JavaScript, you can use a function to modify the event or return a completely You can either return `null` or an event payload - no other return value (including `void`) is allowed. If you return `null`, the event will be discarded. - ```javascript Sentry.init({ diff --git a/platform-includes/configuration/before-send/php.mdx b/platform-includes/configuration/before-send/php.mdx index f7b87cbc9740ca..0cbf5b53318be1 100644 --- a/platform-includes/configuration/before-send/php.mdx +++ b/platform-includes/configuration/before-send/php.mdx @@ -1,6 +1,5 @@ In PHP, a closure can be used to modify the event or return a completely new one. If you return `null`, the event will be discarded. - ```php \Sentry\init([ diff --git a/platform-includes/configuration/capture-console/javascript.bun.mdx b/platform-includes/configuration/capture-console/javascript.bun.mdx index cb3cabe5fb4888..71f4c64f708f61 100644 --- a/platform-includes/configuration/capture-console/javascript.bun.mdx +++ b/platform-includes/configuration/capture-console/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/capture-console/javascript.cloudflare.mdx b/platform-includes/configuration/capture-console/javascript.cloudflare.mdx index ef5b410135a041..898de533c4494a 100644 --- a/platform-includes/configuration/capture-console/javascript.cloudflare.mdx +++ b/platform-includes/configuration/capture-console/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/capture-console/javascript.deno.mdx b/platform-includes/configuration/capture-console/javascript.deno.mdx index b867eae5e576e9..486148c8b7d61e 100644 --- a/platform-includes/configuration/capture-console/javascript.deno.mdx +++ b/platform-includes/configuration/capture-console/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/capture-console/javascript.mdx b/platform-includes/configuration/capture-console/javascript.mdx index 23b4c5b98f14f9..38ab80d757c115 100644 --- a/platform-includes/configuration/capture-console/javascript.mdx +++ b/platform-includes/configuration/capture-console/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/capture-console/javascript.node.mdx b/platform-includes/configuration/capture-console/javascript.node.mdx index df1cfbac007c45..bf46f3a30beff0 100644 --- a/platform-includes/configuration/capture-console/javascript.node.mdx +++ b/platform-includes/configuration/capture-console/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/config-intro/android.mdx b/platform-includes/configuration/config-intro/android.mdx index 40f070801e1baf..e09f0579939d6d 100644 --- a/platform-includes/configuration/config-intro/android.mdx +++ b/platform-includes/configuration/config-intro/android.mdx @@ -1,6 +1,5 @@ Options on Android can be set by setting the values on the `AndroidManifest.xml` file: - ```xml diff --git a/platform-includes/configuration/config-intro/apple.mdx b/platform-includes/configuration/config-intro/apple.mdx index 56f543c6543875..6bdfe05da1a949 100644 --- a/platform-includes/configuration/config-intro/apple.mdx +++ b/platform-includes/configuration/config-intro/apple.mdx @@ -1,5 +1,3 @@ - - ```swift {tabTitle:Swift} import Sentry // Make sure you import Sentry diff --git a/platform-includes/configuration/config-intro/dart.mdx b/platform-includes/configuration/config-intro/dart.mdx index 093a19b50b25e4..89f4b18084edf7 100644 --- a/platform-includes/configuration/config-intro/dart.mdx +++ b/platform-includes/configuration/config-intro/dart.mdx @@ -1,6 +1,5 @@ Options are passed to the `Sentry.init` method: - ```dart import 'package:sentry/sentry.dart'; diff --git a/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx b/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx index dff6564f4f2186..0a9c63fdebfded 100644 --- a/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx +++ b/platform-includes/configuration/config-intro/dotnet.aspnetcore.mdx @@ -3,7 +3,6 @@ pass the option object along for modifications: ASP.NET Core 2.x: - ```csharp public static IWebHost BuildWebHost(string[] args) => @@ -19,7 +18,6 @@ public static IWebHost BuildWebHost(string[] args) => ASP.NET Core 3.0: - ```csharp public static IHostBuilder CreateHostBuilder(string[] args) => @@ -38,7 +36,6 @@ public static IHostBuilder CreateHostBuilder(string[] args) => Additionally, you can set your options on `appsettings.json` when using `UseSentry()`: - ```json {filename:appsettings.json} "Sentry": { diff --git a/platform-includes/configuration/config-intro/dotnet.google-cloud-functions.mdx b/platform-includes/configuration/config-intro/dotnet.google-cloud-functions.mdx index c133df07818b19..2f80bbb1c94df3 100644 --- a/platform-includes/configuration/config-intro/dotnet.google-cloud-functions.mdx +++ b/platform-includes/configuration/config-intro/dotnet.google-cloud-functions.mdx @@ -19,7 +19,6 @@ With that in mind, you'll be able to configure your options using two options: u See both methods below: - ```json {tabTitle:appsettings.json} "Sentry": { diff --git a/platform-includes/configuration/config-intro/dotnet.mdx b/platform-includes/configuration/config-intro/dotnet.mdx index 3e947961daad3a..278a0942e3caf7 100644 --- a/platform-includes/configuration/config-intro/dotnet.mdx +++ b/platform-includes/configuration/config-intro/dotnet.mdx @@ -1,6 +1,5 @@ For example, initialize with `SentrySdk.Init` in your `Program.cs` file: - ```csharp using Sentry; diff --git a/platform-includes/configuration/config-intro/dotnet.nlog.mdx b/platform-includes/configuration/config-intro/dotnet.nlog.mdx index 8c024e8d17f809..7f406b6e56b6b4 100644 --- a/platform-includes/configuration/config-intro/dotnet.nlog.mdx +++ b/platform-includes/configuration/config-intro/dotnet.nlog.mdx @@ -6,7 +6,6 @@ For more information on how to dynamically set event data via `NLog.config`, see You can configure the Sentry NLog target via `NLog.config` or by code as follows: - ```xml {tabTitle:NLog.config} diff --git a/platform-includes/configuration/config-intro/dotnet.xamarin.mdx b/platform-includes/configuration/config-intro/dotnet.xamarin.mdx index 63f0d204aacdc9..5d163c086343a8 100644 --- a/platform-includes/configuration/config-intro/dotnet.xamarin.mdx +++ b/platform-includes/configuration/config-intro/dotnet.xamarin.mdx @@ -1,7 +1,6 @@ Options can be set by passing a callback to the `Init()` method which will pass the option object along for modifications: - ```csharp using Sentry; diff --git a/platform-includes/configuration/config-intro/elixir.mdx b/platform-includes/configuration/config-intro/elixir.mdx index 002ec231d56917..e8771f78b8c46e 100644 --- a/platform-includes/configuration/config-intro/elixir.mdx +++ b/platform-includes/configuration/config-intro/elixir.mdx @@ -2,7 +2,6 @@ In Elixir, configuration is handled using the standard Elixir configuration ([`C Add configuration to the `:sentry` application in the your config file. - ```elixir {filename:config/prod.exs} config :sentry, diff --git a/platform-includes/configuration/config-intro/flutter.mdx b/platform-includes/configuration/config-intro/flutter.mdx index 4725d928a4d09a..bad6291ac1e2f3 100644 --- a/platform-includes/configuration/config-intro/flutter.mdx +++ b/platform-includes/configuration/config-intro/flutter.mdx @@ -1,6 +1,5 @@ Options are passed to the `SentryFlutter.init` method: - ```dart import 'package:flutter/widgets.dart'; diff --git a/platform-includes/configuration/config-intro/go.mdx b/platform-includes/configuration/config-intro/go.mdx index 2b0d5378278090..e8bd7cf3b2dec3 100644 --- a/platform-includes/configuration/config-intro/go.mdx +++ b/platform-includes/configuration/config-intro/go.mdx @@ -1,6 +1,5 @@ Options are passed to the `Init()` method as an instance of `sentry.ClientOptions`: - ```go sentry.Init(sentry.ClientOptions{ diff --git a/platform-includes/configuration/config-intro/java.mdx b/platform-includes/configuration/config-intro/java.mdx index 8d79d31084fced..d28481fb8845dc 100644 --- a/platform-includes/configuration/config-intro/java.mdx +++ b/platform-includes/configuration/config-intro/java.mdx @@ -1,7 +1,6 @@ Options can be set by passing a callback to the `init()` method which will pass the option object along for modifications: - ```java {tabTitle:Java} import io.sentry.Sentry; diff --git a/platform-includes/configuration/config-intro/java.spring-boot.mdx b/platform-includes/configuration/config-intro/java.spring-boot.mdx index 8bd4ea8032287c..161cb699979a6e 100644 --- a/platform-includes/configuration/config-intro/java.spring-boot.mdx +++ b/platform-includes/configuration/config-intro/java.spring-boot.mdx @@ -1,6 +1,5 @@ Basic options properties can be set in `application.properties` using `sentry` prefix: - ```properties {tabTitle: application.properties} sentry.dsn=___PUBLIC_DSN___ diff --git a/platform-includes/configuration/config-intro/javascript.ember.mdx b/platform-includes/configuration/config-intro/javascript.ember.mdx index 13993c59735e4c..948333d7f5069c 100644 --- a/platform-includes/configuration/config-intro/javascript.ember.mdx +++ b/platform-includes/configuration/config-intro/javascript.ember.mdx @@ -1,6 +1,5 @@ Options are passed to `sentry` inside your environment: - ```javascript import * as Sentry from "@sentry/ember"; diff --git a/platform-includes/configuration/config-intro/javascript.mdx b/platform-includes/configuration/config-intro/javascript.mdx index bbe590c1893262..0e2fff204fde7f 100644 --- a/platform-includes/configuration/config-intro/javascript.mdx +++ b/platform-includes/configuration/config-intro/javascript.mdx @@ -1,6 +1,5 @@ Options are passed to the `init()` function as object: - ```javascript Sentry.init({ diff --git a/platform-includes/configuration/config-intro/kotlin-multiplatform.mdx b/platform-includes/configuration/config-intro/kotlin-multiplatform.mdx index e00a4854105277..f7c394b0274c42 100644 --- a/platform-includes/configuration/config-intro/kotlin-multiplatform.mdx +++ b/platform-includes/configuration/config-intro/kotlin-multiplatform.mdx @@ -1,5 +1,3 @@ - - ```kotlin import io.sentry.kotlin.multiplatform.Sentry diff --git a/platform-includes/configuration/config-intro/native.mdx b/platform-includes/configuration/config-intro/native.mdx index 14e6fad84b6e9c..58b79b31e10ba0 100644 --- a/platform-includes/configuration/config-intro/native.mdx +++ b/platform-includes/configuration/config-intro/native.mdx @@ -2,7 +2,6 @@ Options are passed into `sentry_init` as a pointer to an options object created via `sentry_options_new()`. There are functions that allow to set all options individually. - ```c #include diff --git a/platform-includes/configuration/config-intro/php.mdx b/platform-includes/configuration/config-intro/php.mdx index 8a0d378efe3fde..5106cbc1e4cf19 100644 --- a/platform-includes/configuration/config-intro/php.mdx +++ b/platform-includes/configuration/config-intro/php.mdx @@ -1,6 +1,5 @@ Options are passed to the `init()` method as an array: - ```php \Sentry\init([ diff --git a/platform-includes/configuration/config-intro/powershell.mdx b/platform-includes/configuration/config-intro/powershell.mdx index d4cc800452a93f..e03ce3699d6fa6 100644 --- a/platform-includes/configuration/config-intro/powershell.mdx +++ b/platform-includes/configuration/config-intro/powershell.mdx @@ -1,6 +1,5 @@ For example, initialize with `Start-Sentry` in your PowerShell script: - ```powershell Start-Sentry { diff --git a/platform-includes/configuration/config-intro/python.mdx b/platform-includes/configuration/config-intro/python.mdx index 0874c7b09aef66..c873dcdbb658a9 100644 --- a/platform-includes/configuration/config-intro/python.mdx +++ b/platform-includes/configuration/config-intro/python.mdx @@ -1,6 +1,5 @@ Options are passed to the `init()` function as optional keyword arguments: - ```python import sentry_sdk diff --git a/platform-includes/configuration/config-intro/ruby.mdx b/platform-includes/configuration/config-intro/ruby.mdx index 9f6011e2528936..4ef54d3d9a93c5 100644 --- a/platform-includes/configuration/config-intro/ruby.mdx +++ b/platform-includes/configuration/config-intro/ruby.mdx @@ -1,6 +1,5 @@ Options are passed as attributes to the `config` object within the `init` block: - ```ruby Sentry.init do |config| diff --git a/platform-includes/configuration/config-intro/rust.mdx b/platform-includes/configuration/config-intro/rust.mdx index 58e9aacc59729a..a45cf71d5232a5 100644 --- a/platform-includes/configuration/config-intro/rust.mdx +++ b/platform-includes/configuration/config-intro/rust.mdx @@ -2,7 +2,6 @@ Options are passed to the `init()` function as tuple where the first argument is Additionally, the `release_name` macro automatically generates the expected release based on the cargo metadata. - ```rust let _guard = sentry::init(("___PUBLIC_DSN___", sentry::ClientOptions { diff --git a/platform-includes/configuration/contextlines/javascript.bun.mdx b/platform-includes/configuration/contextlines/javascript.bun.mdx index 97932da7b8b575..90b5db874851ae 100644 --- a/platform-includes/configuration/contextlines/javascript.bun.mdx +++ b/platform-includes/configuration/contextlines/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/contextlines/javascript.cloudflare.mdx b/platform-includes/configuration/contextlines/javascript.cloudflare.mdx index 38786e350aaf0c..966c34237406c9 100644 --- a/platform-includes/configuration/contextlines/javascript.cloudflare.mdx +++ b/platform-includes/configuration/contextlines/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/contextlines/javascript.deno.mdx b/platform-includes/configuration/contextlines/javascript.deno.mdx index a50ca2e8b9ae7e..1008061bccb53a 100644 --- a/platform-includes/configuration/contextlines/javascript.deno.mdx +++ b/platform-includes/configuration/contextlines/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/contextlines/javascript.mdx b/platform-includes/configuration/contextlines/javascript.mdx index 62f7a233340b31..36ac8d1107c339 100644 --- a/platform-includes/configuration/contextlines/javascript.mdx +++ b/platform-includes/configuration/contextlines/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/contextlines/javascript.node.mdx b/platform-includes/configuration/contextlines/javascript.node.mdx index bcbd9a0cfb6693..b7c9fc1d52c75e 100644 --- a/platform-includes/configuration/contextlines/javascript.node.mdx +++ b/platform-includes/configuration/contextlines/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/debug/javascript.bun.mdx b/platform-includes/configuration/debug/javascript.bun.mdx index 2a5e5d92129c62..e0cc58ee3fb6fc 100644 --- a/platform-includes/configuration/debug/javascript.bun.mdx +++ b/platform-includes/configuration/debug/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/debug/javascript.cloudflare.mdx b/platform-includes/configuration/debug/javascript.cloudflare.mdx index 1aa3e7001119e4..2b224acf703443 100644 --- a/platform-includes/configuration/debug/javascript.cloudflare.mdx +++ b/platform-includes/configuration/debug/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/debug/javascript.deno.mdx b/platform-includes/configuration/debug/javascript.deno.mdx index 64ed8250b85fc6..e21afcbd59e8ec 100644 --- a/platform-includes/configuration/debug/javascript.deno.mdx +++ b/platform-includes/configuration/debug/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/debug/javascript.mdx b/platform-includes/configuration/debug/javascript.mdx index 28cef1c7cf2321..2e92a3dfd75747 100644 --- a/platform-includes/configuration/debug/javascript.mdx +++ b/platform-includes/configuration/debug/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/debug/javascript.node.mdx b/platform-includes/configuration/debug/javascript.node.mdx index 0c432dca1e359d..89d8d149e9c07f 100644 --- a/platform-includes/configuration/debug/javascript.node.mdx +++ b/platform-includes/configuration/debug/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/dedupe/javascript.bun.mdx b/platform-includes/configuration/dedupe/javascript.bun.mdx index 7eb7a67423a94f..29520810f89914 100644 --- a/platform-includes/configuration/dedupe/javascript.bun.mdx +++ b/platform-includes/configuration/dedupe/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/dedupe/javascript.cloudflare.mdx b/platform-includes/configuration/dedupe/javascript.cloudflare.mdx index 36832ac0b43683..41bc95696fc0de 100644 --- a/platform-includes/configuration/dedupe/javascript.cloudflare.mdx +++ b/platform-includes/configuration/dedupe/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/dedupe/javascript.deno.mdx b/platform-includes/configuration/dedupe/javascript.deno.mdx index 6eacb782d8420f..a553dc41557493 100644 --- a/platform-includes/configuration/dedupe/javascript.deno.mdx +++ b/platform-includes/configuration/dedupe/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/dedupe/javascript.mdx b/platform-includes/configuration/dedupe/javascript.mdx index 7ca5037c78f6c0..5e9db0474bd9bf 100644 --- a/platform-includes/configuration/dedupe/javascript.mdx +++ b/platform-includes/configuration/dedupe/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/dedupe/javascript.node.mdx b/platform-includes/configuration/dedupe/javascript.node.mdx index e8c37c082408fd..f5260f4ca8c359 100644 --- a/platform-includes/configuration/dedupe/javascript.node.mdx +++ b/platform-includes/configuration/dedupe/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/dedupe/react-native.mdx b/platform-includes/configuration/dedupe/react-native.mdx index acfb5b59662a89..b3dbb5464a8f00 100644 --- a/platform-includes/configuration/dedupe/react-native.mdx +++ b/platform-includes/configuration/dedupe/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; import { Dedupe as DedupeIntegration } from "@sentry/integrations"; diff --git a/platform-includes/configuration/diagnostic-logger/dotnet.mdx b/platform-includes/configuration/diagnostic-logger/dotnet.mdx index 790d3d9564fced..9596719dd6de01 100644 --- a/platform-includes/configuration/diagnostic-logger/dotnet.mdx +++ b/platform-includes/configuration/diagnostic-logger/dotnet.mdx @@ -1,6 +1,5 @@ Sentry's SDK includes its own internal logger to report diagnostics that may be useful when troubleshooting your Sentry configuration. To enable logging, set the `Debug` option to `true`: - ```csharp options => diff --git a/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.mdx b/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.mdx index aa6eb3816ea81f..fdce52fcec63a7 100644 --- a/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.mdx +++ b/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.node.mdx b/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.node.mdx index b08d0035dd3984..b92613cc2f0f65 100644 --- a/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.node.mdx +++ b/platform-includes/configuration/enable-pluggable-integrations-lazy/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/enable-pluggable-integrations/javascript.mdx b/platform-includes/configuration/enable-pluggable-integrations/javascript.mdx index 00fe4a5182d546..8081cb4145d263 100644 --- a/platform-includes/configuration/enable-pluggable-integrations/javascript.mdx +++ b/platform-includes/configuration/enable-pluggable-integrations/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/enable-pluggable-integrations/javascript.node.mdx b/platform-includes/configuration/enable-pluggable-integrations/javascript.node.mdx index 8de59aaeef0fcb..e10d63e286eda6 100644 --- a/platform-includes/configuration/enable-pluggable-integrations/javascript.node.mdx +++ b/platform-includes/configuration/enable-pluggable-integrations/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/enable-pluggable-integrations/react-native.mdx b/platform-includes/configuration/enable-pluggable-integrations/react-native.mdx index acfb5b59662a89..b3dbb5464a8f00 100644 --- a/platform-includes/configuration/enable-pluggable-integrations/react-native.mdx +++ b/platform-includes/configuration/enable-pluggable-integrations/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; import { Dedupe as DedupeIntegration } from "@sentry/integrations"; diff --git a/platform-includes/configuration/extra-error-data/javascript.bun.mdx b/platform-includes/configuration/extra-error-data/javascript.bun.mdx index 43800e789627d9..2be84d8cb9a008 100644 --- a/platform-includes/configuration/extra-error-data/javascript.bun.mdx +++ b/platform-includes/configuration/extra-error-data/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/extra-error-data/javascript.cloudflare.mdx b/platform-includes/configuration/extra-error-data/javascript.cloudflare.mdx index 471980eaafd183..3566c2b80a8976 100644 --- a/platform-includes/configuration/extra-error-data/javascript.cloudflare.mdx +++ b/platform-includes/configuration/extra-error-data/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/extra-error-data/javascript.deno.mdx b/platform-includes/configuration/extra-error-data/javascript.deno.mdx index 0741bcce2c928d..c8fe550fb0216f 100644 --- a/platform-includes/configuration/extra-error-data/javascript.deno.mdx +++ b/platform-includes/configuration/extra-error-data/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/extra-error-data/javascript.mdx b/platform-includes/configuration/extra-error-data/javascript.mdx index 9d6b15a78f0009..24efdd84f9b482 100644 --- a/platform-includes/configuration/extra-error-data/javascript.mdx +++ b/platform-includes/configuration/extra-error-data/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/extra-error-data/javascript.node.mdx b/platform-includes/configuration/extra-error-data/javascript.node.mdx index 98a979e4e89637..3abc090a19e069 100644 --- a/platform-includes/configuration/extra-error-data/javascript.node.mdx +++ b/platform-includes/configuration/extra-error-data/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/http-client/javascript.mdx b/platform-includes/configuration/http-client/javascript.mdx index 882f81926bac3d..ebb3b5674cb788 100644 --- a/platform-includes/configuration/http-client/javascript.mdx +++ b/platform-includes/configuration/http-client/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/http-client/react-native.mdx b/platform-includes/configuration/http-client/react-native.mdx index 2b3ec155955c49..dbbb871e276587 100644 --- a/platform-includes/configuration/http-client/react-native.mdx +++ b/platform-includes/configuration/http-client/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; import { HttpClient as HttpClientIntegration } from "@sentry/integrations"; diff --git a/platform-includes/configuration/ignore-errors/javascript.mdx b/platform-includes/configuration/ignore-errors/javascript.mdx index 6b067619837e9b..1d8238f7a664bc 100644 --- a/platform-includes/configuration/ignore-errors/javascript.mdx +++ b/platform-includes/configuration/ignore-errors/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/configuration/ignore-transactions/javascript.mdx b/platform-includes/configuration/ignore-transactions/javascript.mdx index f3f9be564fbb1d..1aa8541e847198 100644 --- a/platform-includes/configuration/ignore-transactions/javascript.mdx +++ b/platform-includes/configuration/ignore-transactions/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/configuration/module-metadata/javascript.mdx b/platform-includes/configuration/module-metadata/javascript.mdx index 18bc92c8746ecb..cc48c275471bce 100644 --- a/platform-includes/configuration/module-metadata/javascript.mdx +++ b/platform-includes/configuration/module-metadata/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/offline/javascript.mdx b/platform-includes/configuration/offline/javascript.mdx index 5511772b1c6090..a4bbddeced2a5f 100644 --- a/platform-includes/configuration/offline/javascript.mdx +++ b/platform-includes/configuration/offline/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/reporting-observer/javascript.mdx b/platform-includes/configuration/reporting-observer/javascript.mdx index 745f538d6d56dc..42a02ebaf2c4f1 100644 --- a/platform-includes/configuration/reporting-observer/javascript.mdx +++ b/platform-includes/configuration/reporting-observer/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/requestdata/javascript.mdx b/platform-includes/configuration/requestdata/javascript.mdx index e37352545c3329..3d2b7c3926658f 100644 --- a/platform-includes/configuration/requestdata/javascript.mdx +++ b/platform-includes/configuration/requestdata/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/rewrite-frames/javascript.bun.mdx b/platform-includes/configuration/rewrite-frames/javascript.bun.mdx index cc8e7956030393..ea96d3c1ba0441 100644 --- a/platform-includes/configuration/rewrite-frames/javascript.bun.mdx +++ b/platform-includes/configuration/rewrite-frames/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/rewrite-frames/javascript.cloudflare.mdx b/platform-includes/configuration/rewrite-frames/javascript.cloudflare.mdx index 04e437f43ec876..6d7da1a86beb9e 100644 --- a/platform-includes/configuration/rewrite-frames/javascript.cloudflare.mdx +++ b/platform-includes/configuration/rewrite-frames/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/rewrite-frames/javascript.deno.mdx b/platform-includes/configuration/rewrite-frames/javascript.deno.mdx index e961b8face7c43..cd62766b818bf5 100644 --- a/platform-includes/configuration/rewrite-frames/javascript.deno.mdx +++ b/platform-includes/configuration/rewrite-frames/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/rewrite-frames/javascript.mdx b/platform-includes/configuration/rewrite-frames/javascript.mdx index f164a732f62209..b23fabcac227aa 100644 --- a/platform-includes/configuration/rewrite-frames/javascript.mdx +++ b/platform-includes/configuration/rewrite-frames/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/rewrite-frames/javascript.node.mdx b/platform-includes/configuration/rewrite-frames/javascript.node.mdx index d7cc8ac93be058..a174fabb3d3df9 100644 --- a/platform-includes/configuration/rewrite-frames/javascript.node.mdx +++ b/platform-includes/configuration/rewrite-frames/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/configuration/rewrite-frames/react-native.mdx b/platform-includes/configuration/rewrite-frames/react-native.mdx index 8abb00d9338996..556fad6b45af5d 100644 --- a/platform-includes/configuration/rewrite-frames/react-native.mdx +++ b/platform-includes/configuration/rewrite-frames/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; import { RewriteFrames as RewriteFramesIntegration } from "@sentry/integrations"; diff --git a/platform-includes/configuration/sample-rate/php.mdx b/platform-includes/configuration/sample-rate/php.mdx index 9183133cea0d6c..d7aba232193054 100644 --- a/platform-includes/configuration/sample-rate/php.mdx +++ b/platform-includes/configuration/sample-rate/php.mdx @@ -1,5 +1,3 @@ - - ```php \Sentry\init([ 'dsn' => '___PUBLIC_DSN___', diff --git a/platform-includes/configuration/sessiontiming/javascript.bun.mdx b/platform-includes/configuration/sessiontiming/javascript.bun.mdx index 9c734574b6ac26..addb51dfd1c01a 100644 --- a/platform-includes/configuration/sessiontiming/javascript.bun.mdx +++ b/platform-includes/configuration/sessiontiming/javascript.bun.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/bun"; diff --git a/platform-includes/configuration/sessiontiming/javascript.cloudflare.mdx b/platform-includes/configuration/sessiontiming/javascript.cloudflare.mdx index c3437412f4c49c..758f13b3a2faee 100644 --- a/platform-includes/configuration/sessiontiming/javascript.cloudflare.mdx +++ b/platform-includes/configuration/sessiontiming/javascript.cloudflare.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/cloudflare"; diff --git a/platform-includes/configuration/sessiontiming/javascript.deno.mdx b/platform-includes/configuration/sessiontiming/javascript.deno.mdx index f11532b9343dad..6fd7a94f10a13d 100644 --- a/platform-includes/configuration/sessiontiming/javascript.deno.mdx +++ b/platform-includes/configuration/sessiontiming/javascript.deno.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "https://deno.land/x/sentry/index.mjs"; diff --git a/platform-includes/configuration/sessiontiming/javascript.mdx b/platform-includes/configuration/sessiontiming/javascript.mdx index 94f63d87faeae9..f1be3f324826c1 100644 --- a/platform-includes/configuration/sessiontiming/javascript.mdx +++ b/platform-includes/configuration/sessiontiming/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/configuration/sessiontiming/javascript.node.mdx b/platform-includes/configuration/sessiontiming/javascript.node.mdx index 29b9c44e37f5ae..5ac254f7398b36 100644 --- a/platform-includes/configuration/sessiontiming/javascript.node.mdx +++ b/platform-includes/configuration/sessiontiming/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle: JavaScript} import * as Sentry from "@sentry/node"; diff --git a/platform-includes/distributed-tracing/how-to-use/javascript.node.mdx b/platform-includes/distributed-tracing/how-to-use/javascript.node.mdx index 3b61052cb6309b..1bd53fe1f439b9 100644 --- a/platform-includes/distributed-tracing/how-to-use/javascript.node.mdx +++ b/platform-includes/distributed-tracing/how-to-use/javascript.node.mdx @@ -1,6 +1,5 @@ In version `8.0.0` and above of the Sentry Node SDK, distributed tracing will work out of the box. - ```javascript Sentry.init({ diff --git a/platform-includes/distributed-tracing/limiting-traces/flutter.mdx b/platform-includes/distributed-tracing/limiting-traces/flutter.mdx index ea5501f83323b3..cf6b9c020d9628 100644 --- a/platform-includes/distributed-tracing/limiting-traces/flutter.mdx +++ b/platform-includes/distributed-tracing/limiting-traces/flutter.mdx @@ -1,5 +1,3 @@ - - ```dart await SentryFlutter.init((options) { options.dsn = '___PUBLIC_DSN___'; diff --git a/platform-includes/distributed-tracing/limiting-traces/javascript.mdx b/platform-includes/distributed-tracing/limiting-traces/javascript.mdx index 42070022db8510..b0a61b75fddcb2 100644 --- a/platform-includes/distributed-tracing/limiting-traces/javascript.mdx +++ b/platform-includes/distributed-tracing/limiting-traces/javascript.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/distributed-tracing/limiting-traces/javascript.node.mdx b/platform-includes/distributed-tracing/limiting-traces/javascript.node.mdx index 03a4468787e58a..26fdcd42348e81 100644 --- a/platform-includes/distributed-tracing/limiting-traces/javascript.node.mdx +++ b/platform-includes/distributed-tracing/limiting-traces/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", diff --git a/platform-includes/distributed-tracing/limiting-traces/python.mdx b/platform-includes/distributed-tracing/limiting-traces/python.mdx index a487b356131458..63e189d10cd0eb 100644 --- a/platform-includes/distributed-tracing/limiting-traces/python.mdx +++ b/platform-includes/distributed-tracing/limiting-traces/python.mdx @@ -1,5 +1,3 @@ - - ```python import sentry_sdk diff --git a/platform-includes/distributed-tracing/limiting-traces/ruby.mdx b/platform-includes/distributed-tracing/limiting-traces/ruby.mdx index 50955cbe628db4..1641398f5e97f8 100644 --- a/platform-includes/distributed-tracing/limiting-traces/ruby.mdx +++ b/platform-includes/distributed-tracing/limiting-traces/ruby.mdx @@ -1,5 +1,3 @@ - - ```ruby Sentry.init do |config| config.dsn = '___PUBLIC_DSN___' diff --git a/platform-includes/enriching-events/add-attachment/javascript.mdx b/platform-includes/enriching-events/add-attachment/javascript.mdx index e421f2b60fc8bc..7b6c3cf4ab8a05 100644 --- a/platform-includes/enriching-events/add-attachment/javascript.mdx +++ b/platform-includes/enriching-events/add-attachment/javascript.mdx @@ -33,7 +33,6 @@ It's possible to add, remove, or modify attachments before an event is sent by w the hook or a global event processor. - ```javascript Sentry.init({ diff --git a/platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx b/platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx index 59f6ae19c82063..d9e120946dcf44 100644 --- a/platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx +++ b/platform-includes/enriching-events/attach-screenshots/dotnet.maui.mdx @@ -1,5 +1,3 @@ - - ```csharp var builder = MauiApp.CreateBuilder() .UseMauiApp() diff --git a/platform-includes/enriching-events/attach-screenshots/dotnet.xamarin.mdx b/platform-includes/enriching-events/attach-screenshots/dotnet.xamarin.mdx index 24d81cfda68536..14395e80f60d77 100644 --- a/platform-includes/enriching-events/attach-screenshots/dotnet.xamarin.mdx +++ b/platform-includes/enriching-events/attach-screenshots/dotnet.xamarin.mdx @@ -1,5 +1,3 @@ - - ```csharp SentryXamarin.Init(options => { diff --git a/platform-includes/enriching-events/attach-screenshots/flutter.mdx b/platform-includes/enriching-events/attach-screenshots/flutter.mdx index 7b93104106298c..df8e38da76cebf 100644 --- a/platform-includes/enriching-events/attach-screenshots/flutter.mdx +++ b/platform-includes/enriching-events/attach-screenshots/flutter.mdx @@ -1,5 +1,3 @@ - - ```dart import 'package:flutter/widgets.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; @@ -48,4 +46,3 @@ Future main() async { ); } ``` - diff --git a/platform-includes/enriching-events/attach-screenshots/javascript.electron.mdx b/platform-includes/enriching-events/attach-screenshots/javascript.electron.mdx index 131cea08a0658c..c33b463df89719 100644 --- a/platform-includes/enriching-events/attach-screenshots/javascript.electron.mdx +++ b/platform-includes/enriching-events/attach-screenshots/javascript.electron.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/electron/main"; diff --git a/platform-includes/enriching-events/attach-screenshots/react-native.mdx b/platform-includes/enriching-events/attach-screenshots/react-native.mdx index a7e9ce6ca13373..fa89b768c6a38e 100644 --- a/platform-includes/enriching-events/attach-screenshots/react-native.mdx +++ b/platform-includes/enriching-events/attach-screenshots/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; diff --git a/platform-includes/enriching-events/attach-viewhierarchy/flutter.mdx b/platform-includes/enriching-events/attach-viewhierarchy/flutter.mdx index ba39da8b90c0c7..260f182eb14bb0 100644 --- a/platform-includes/enriching-events/attach-viewhierarchy/flutter.mdx +++ b/platform-includes/enriching-events/attach-viewhierarchy/flutter.mdx @@ -1,5 +1,3 @@ - - ```dart import 'package:flutter/widgets.dart'; import 'package:sentry_flutter/sentry_flutter.dart'; diff --git a/platform-includes/enriching-events/attach-viewhierarchy/kotlin-multiplatform.mdx b/platform-includes/enriching-events/attach-viewhierarchy/kotlin-multiplatform.mdx index d3b1b3af367165..0b33a1c91cf710 100644 --- a/platform-includes/enriching-events/attach-viewhierarchy/kotlin-multiplatform.mdx +++ b/platform-includes/enriching-events/attach-viewhierarchy/kotlin-multiplatform.mdx @@ -4,7 +4,6 @@ Currently only available on iOS and Android. - ```kotlin import io.sentry.kotlin.multiplatform.sentry diff --git a/platform-includes/enriching-events/attach-viewhierarchy/react-native.mdx b/platform-includes/enriching-events/attach-viewhierarchy/react-native.mdx index 30cb4d2252afc7..735f8ae46dc806 100644 --- a/platform-includes/enriching-events/attach-viewhierarchy/react-native.mdx +++ b/platform-includes/enriching-events/attach-viewhierarchy/react-native.mdx @@ -1,5 +1,3 @@ - - ```javascript import * as Sentry from "@sentry/react-native"; diff --git a/platform-includes/enriching-events/breadcrumbs/before-breadcrumb/php.mdx b/platform-includes/enriching-events/breadcrumbs/before-breadcrumb/php.mdx index 8c090a4ba8b6c1..ec8d7ab0759cf3 100644 --- a/platform-includes/enriching-events/breadcrumbs/before-breadcrumb/php.mdx +++ b/platform-includes/enriching-events/breadcrumbs/before-breadcrumb/php.mdx @@ -1,5 +1,3 @@ - - ```php \Sentry\init([ 'dsn' => '___PUBLIC_DSN___', diff --git a/platform-includes/enriching-events/scopes/configure-scope/react-native.mdx b/platform-includes/enriching-events/scopes/configure-scope/react-native.mdx index 59794f7e59e830..a9a4e3d158028c 100644 --- a/platform-includes/enriching-events/scopes/configure-scope/react-native.mdx +++ b/platform-includes/enriching-events/scopes/configure-scope/react-native.mdx @@ -12,7 +12,6 @@ Sentry.configureScope(function (scope) { If you want to set context data in the JS layer and then receive that context data when a native (C/C++) crash happens, you need to synchronize the JS `Scope` with the native `Scope`. This feature was introduced in version `2.0.0` of the React-Native SDK and requires an opt-in: - ```javascript {filename:App.js} import * as Sentry from "@sentry/react-native"; diff --git a/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx b/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx index 8e29f4149a44a2..09acba1e9a7acf 100644 --- a/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx +++ b/platform-includes/enriching-events/set-tag/dotnet.nlog.mdx @@ -4,7 +4,6 @@ For more information on how to dynamically set event tags via `NLog.config`, see - ```xml {tabTitle:NLog.config} diff --git a/platform-includes/enriching-events/set-user/dotnet.nlog.mdx b/platform-includes/enriching-events/set-user/dotnet.nlog.mdx index 7589ff1028091a..38fadff9ab0fea 100644 --- a/platform-includes/enriching-events/set-user/dotnet.nlog.mdx +++ b/platform-includes/enriching-events/set-user/dotnet.nlog.mdx @@ -5,7 +5,6 @@ - ```xml {tabTitle:NLog.config} diff --git a/platform-includes/getting-started-config/apple.mdx b/platform-includes/getting-started-config/apple.mdx index 20f6c505b9c03e..0ff00452ca3e24 100644 --- a/platform-includes/getting-started-config/apple.mdx +++ b/platform-includes/getting-started-config/apple.mdx @@ -1,6 +1,5 @@ We recommend initializing the SDK on the main thread as soon as possible, such as in your AppDelegate `application:didFinishLaunchingWithOptions` method: - ```swift {tabTitle:Swift} import Sentry // Make sure you import Sentry @@ -40,7 +39,6 @@ func application(_ application: UIApplication, When using SwiftUI and your app doesn't implement an app delegate, initialize the SDK within the [App conformer's initializer](): - ```swift import Sentry diff --git a/platform-includes/getting-started-config/dotnet.aspnetcore.mdx b/platform-includes/getting-started-config/dotnet.aspnetcore.mdx index 9b21dac73351a6..0cc970cf4a90c2 100644 --- a/platform-includes/getting-started-config/dotnet.aspnetcore.mdx +++ b/platform-includes/getting-started-config/dotnet.aspnetcore.mdx @@ -2,7 +2,6 @@ Add Sentry to `Program.cs` through the `WebHostBuilder`: ASP.NET Core 2.x: - ```csharp public static IWebHost BuildWebHost(string[] args) => @@ -20,7 +19,6 @@ let BuildWebHost args = ASP.NET Core 3.0: - ```csharp public static IHostBuilder CreateHostBuilder(string[] args) => diff --git a/platform-includes/getting-started-config/dotnet.mdx b/platform-includes/getting-started-config/dotnet.mdx index 3e947961daad3a..278a0942e3caf7 100644 --- a/platform-includes/getting-started-config/dotnet.mdx +++ b/platform-includes/getting-started-config/dotnet.mdx @@ -1,6 +1,5 @@ For example, initialize with `SentrySdk.Init` in your `Program.cs` file: - ```csharp using Sentry; diff --git a/platform-includes/getting-started-config/dotnet.xamarin.mdx b/platform-includes/getting-started-config/dotnet.xamarin.mdx index 744606729c53b2..85abdcfbdaf32d 100644 --- a/platform-includes/getting-started-config/dotnet.xamarin.mdx +++ b/platform-includes/getting-started-config/dotnet.xamarin.mdx @@ -1,7 +1,6 @@ You should initialize the SDK as early as possible, for an example, the start of OnCreate on MainActivity for Android, and, the top of FinishedLaunching on AppDelegate for iOS). - ```csharp using Sentry; diff --git a/platform-includes/getting-started-config/elixir.mdx b/platform-includes/getting-started-config/elixir.mdx index ede63a02aa0d61..2cda0307d545ba 100644 --- a/platform-includes/getting-started-config/elixir.mdx +++ b/platform-includes/getting-started-config/elixir.mdx @@ -1,6 +1,5 @@ Sentry has a range of configuration options, but most applications will have a configuration that looks like the following: - ```elixir {filename:config/config.exs} config :sentry, diff --git a/platform-includes/getting-started-config/go.mdx b/platform-includes/getting-started-config/go.mdx index f43b7766504604..b9f85f59879577 100644 --- a/platform-includes/getting-started-config/go.mdx +++ b/platform-includes/getting-started-config/go.mdx @@ -1,5 +1,3 @@ - - ```go package main diff --git a/platform-includes/getting-started-config/java.jul.mdx b/platform-includes/getting-started-config/java.jul.mdx index f740776cd05183..1f956cdbdd0960 100644 --- a/platform-includes/getting-started-config/java.jul.mdx +++ b/platform-includes/getting-started-config/java.jul.mdx @@ -29,7 +29,6 @@ java -Djava.util.logging.config.file=/path/to/app.properties MyClass Sentry reads the DSN from the system property `sentry.dsn`, environment variable `SENTRY_DSN` or the `dsn` property in `sentry.properties` file. [See the configuration page](/platforms/java/configuration/) for more details on external configuration. - ```properties {tabTitle:sentry.properties} dsn=___PUBLIC_DSN___ diff --git a/platform-includes/getting-started-config/java.log4j2.mdx b/platform-includes/getting-started-config/java.log4j2.mdx index 53caefef653a66..396370971bb928 100644 --- a/platform-includes/getting-started-config/java.log4j2.mdx +++ b/platform-includes/getting-started-config/java.log4j2.mdx @@ -6,7 +6,6 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se - ```xml @@ -33,7 +32,6 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se Note that **you need to configure your DSN** (client key) only if you wish to initialize the SDK through the log4j2 integration. If you're planning to use `Sentry.init` to provide configuration, such as by using the `beforeSend` callback, you **should not** provide the DSN in both `Sentry.init` and the appender configuration; just leave it out of the appender configuration in this case. - ```xml ```xml diff --git a/platform-includes/getting-started-config/java.logback.mdx b/platform-includes/getting-started-config/java.logback.mdx index 111beb3dfee060..3b2ea25cf2531d 100644 --- a/platform-includes/getting-started-config/java.logback.mdx +++ b/platform-includes/getting-started-config/java.logback.mdx @@ -6,7 +6,6 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se - ```xml @@ -38,7 +37,6 @@ The `ConsoleAppender` is provided only as an example of a non-Sentry appender se Note that **you need to configure your DSN** (client key). - ```xml @@ -66,7 +64,6 @@ Setting `minimumEventLevel` or `minimumBreadcrumbLevel` in `logback.xml` only af 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, `SentryAppender` needs to receive **all** log entries to decide what to keep as breadcrumb or sent as event. Set the `SentryAppender` log level configuration to a value lower than what is set for the `minimumBreadcrumbLevel` and `minimumEventLevel` so that `SentryAppender` receives these log messages. - ```xml diff --git a/platform-includes/getting-started-config/java.mdx b/platform-includes/getting-started-config/java.mdx index de098c38e00733..eed3df972814ff 100644 --- a/platform-includes/getting-started-config/java.mdx +++ b/platform-includes/getting-started-config/java.mdx @@ -1,5 +1,3 @@ - - ```java {tabTitle: Java} {"onboardingOptions": {"performance": "5-9"}} import io.sentry.Sentry; diff --git a/platform-includes/getting-started-config/java.servlet.mdx b/platform-includes/getting-started-config/java.servlet.mdx index a7e19cf80cfbc7..08df06899dc2ed 100644 --- a/platform-includes/getting-started-config/java.servlet.mdx +++ b/platform-includes/getting-started-config/java.servlet.mdx @@ -1,6 +1,5 @@ The following example configures a `SentryInitializer` servlet container initializer that initializes Sentry on application startup. - ```java package sentry.sample; @@ -40,7 +39,6 @@ class SentryInitializer : ServletContainerInitializer { Create a file in `src/main/resources/META-INF/services` named `javax.servlet.ServletContainerInitializer`, with a full name of your custom `SentryInitializer` class as a content: - ```properties sentry.sample.SentryInitializer diff --git a/platform-includes/getting-started-config/java.spring-boot.mdx b/platform-includes/getting-started-config/java.spring-boot.mdx index 6def7cf4ab72c3..29cc382c6ca0ab 100644 --- a/platform-includes/getting-started-config/java.spring-boot.mdx +++ b/platform-includes/getting-started-config/java.spring-boot.mdx @@ -2,7 +2,6 @@ Sentry's Spring Boot integration auto-configures `sentry.in-app-packages` proper Provide a `sentry.dsn` property using either `application.properties` or `application.yml`: - ```properties {filename:application.properties} {"onboardingOptions": {"performance": "2-6"}} sentry.dsn=___PUBLIC_DSN___ diff --git a/platform-includes/getting-started-config/java.spring.mdx b/platform-includes/getting-started-config/java.spring.mdx index e8f95851adc377..589b21fe2c9e34 100644 --- a/platform-includes/getting-started-config/java.spring.mdx +++ b/platform-includes/getting-started-config/java.spring.mdx @@ -1,6 +1,5 @@ The `sentry-spring` and `sentry-spring-jakarta` libraries provide an `@EnableSentry` annotation that registers all required Spring beans. `@EnableSentry` can be placed on any class annotated with [@Configuration](https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/context/annotation/Configuration.html) including the main entry class in Spring Boot applications annotated with [@SpringBootApplication](https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/autoconfigure/SpringBootApplication.html). - ```java {tabTitle:Java (Spring 5)} import io.sentry.spring.EnableSentry; @@ -46,7 +45,6 @@ Once this integration is configured you can _also_ use Sentry’s static API, [a By default, only unhandled exceptions are sent to Sentry. This behavior can be tuned through configuring the `exceptionResolverOrder` property. For example, setting it to `Ordered#HIGHEST_PRECEDENCE` ensures exceptions that have been handled by exception resolvers with higher order are sent to Sentry - including ones handled by `@ExceptionHandler` annotated methods. - ```java {tabTitle:Java (Spring 5)} import io.sentry.spring.EnableSentry; diff --git a/platform-includes/getting-started-config/javascript.angular.mdx b/platform-includes/getting-started-config/javascript.angular.mdx index 353f9666b33ab7..4b27bff6e35846 100644 --- a/platform-includes/getting-started-config/javascript.angular.mdx +++ b/platform-includes/getting-started-config/javascript.angular.mdx @@ -1,6 +1,5 @@ Once this is done, Sentry's Angular SDK captures all unhandled exceptions and transactions. - ```typescript {filename: main.ts} {3, 6-30} {"onboardingOptions": {"performance": "9-12, 17-24", "session-replay": "13-15, 25-29"}} import { enableProdMode } from "@angular/core"; diff --git a/platform-includes/getting-started-config/javascript.astro.mdx b/platform-includes/getting-started-config/javascript.astro.mdx index a29437fc18589a..ccec3814bd01d0 100644 --- a/platform-includes/getting-started-config/javascript.astro.mdx +++ b/platform-includes/getting-started-config/javascript.astro.mdx @@ -1,6 +1,5 @@ Get started by adding your DSN to your Astro config file (`astro.config.mjs`): - ```javascript {filename:astro.config.mjs} import { defineConfig } from "astro/config"; diff --git a/platform-includes/getting-started-config/javascript.aws-lambda.mdx b/platform-includes/getting-started-config/javascript.aws-lambda.mdx index 192d5a1bdde197..68c323ca6c7480 100644 --- a/platform-includes/getting-started-config/javascript.aws-lambda.mdx +++ b/platform-includes/getting-started-config/javascript.aws-lambda.mdx @@ -1,6 +1,3 @@ - - - ```javascript {tabTitle:async} {"onboardingOptions": {"performance": "9-13", "profiling": "2, 6-8, 14-16"}} const Sentry = require("@sentry/aws-serverless"); const { nodeProfilingIntegration } = require("@sentry/profiling-node"); diff --git a/platform-includes/getting-started-config/javascript.azure-functions.mdx b/platform-includes/getting-started-config/javascript.azure-functions.mdx index 8215a4801cb998..439aabe930f0b6 100644 --- a/platform-includes/getting-started-config/javascript.azure-functions.mdx +++ b/platform-includes/getting-started-config/javascript.azure-functions.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:async} {"onboardingOptions": {"performance": "9-13", "profiling": "2, 6-8, 14-16"}} const Sentry = require("@sentry/node"); const { nodeProfilingIntegration } = require("@sentry/profiling-node"); diff --git a/platform-includes/getting-started-config/javascript.bun.mdx b/platform-includes/getting-started-config/javascript.bun.mdx index 42161cfb94493f..5a1a32b4aeb3ec 100644 --- a/platform-includes/getting-started-config/javascript.bun.mdx +++ b/platform-includes/getting-started-config/javascript.bun.mdx @@ -1,5 +1,3 @@ - - Sentry should be initialized as early in your app as possible. It is essential that you call `Sentry.init` before you require any other modules in your application—otherwise, auto-instrumentation of these modules will _not_ work. Once this is done, Sentry's Bun SDK captures unhandled exceptions as well as tracing data for your application. @@ -12,7 +10,7 @@ import * as Sentry from "@sentry/bun"; // Ensure to call this before importing any other modules! Sentry.init({ dsn: "___PUBLIC_DSN___", - + // Add Performance Monitoring by setting tracesSampleRate // Set tracesSampleRate to 1.0 to capture 100% of transactions // We recommend adjusting this value in production diff --git a/platform-includes/getting-started-config/javascript.capacitor.mdx b/platform-includes/getting-started-config/javascript.capacitor.mdx index 71d5378f4a27cf..39cd6dab040152 100644 --- a/platform-includes/getting-started-config/javascript.capacitor.mdx +++ b/platform-includes/getting-started-config/javascript.capacitor.mdx @@ -1,6 +1,5 @@ Then forward the `init` method from the sibling Sentry SDK for the framework you use, such as Angular in this example: - ```typescript {tabTitle: Angular} {filename: app.module.ts} {"onboardingOptions": {"performance": "13-16, 21-28, 46-55", "session-replay": "17-19, 29-33"}} import * as Sentry from "@sentry/capacitor"; diff --git a/platform-includes/getting-started-config/javascript.cordova.mdx b/platform-includes/getting-started-config/javascript.cordova.mdx index 95dfd46e63e0ea..7c088d9c0eec92 100644 --- a/platform-includes/getting-started-config/javascript.cordova.mdx +++ b/platform-includes/getting-started-config/javascript.cordova.mdx @@ -1,6 +1,5 @@ You should `init` the SDK in the `deviceReady` function, to make sure the native integrations runs. - ```javascript onDeviceReady: function() { diff --git a/platform-includes/getting-started-config/javascript.electron.mdx b/platform-includes/getting-started-config/javascript.electron.mdx index e044e605e94930..6c2de34c830652 100644 --- a/platform-includes/getting-started-config/javascript.electron.mdx +++ b/platform-includes/getting-started-config/javascript.electron.mdx @@ -1,6 +1,5 @@ You should `init` the SDK in the `main` process and every `renderer` process you spawn. - In the Electron `main` process: diff --git a/platform-includes/getting-started-config/javascript.ember.mdx b/platform-includes/getting-started-config/javascript.ember.mdx index 9e2735071ad38d..1051bf69184b07 100644 --- a/platform-includes/getting-started-config/javascript.ember.mdx +++ b/platform-includes/getting-started-config/javascript.ember.mdx @@ -1,6 +1,5 @@ This snippet includes automatic instrumentation to monitor the performance of your application, which registers and configures the Tracing integration, including custom [Ember instrumentation](./configuration/ember-options/). - ```javascript {"onboardingOptions": {"performance": "11-15", "session-replay": "10, 16-20"}} import Application from "@ember/application"; diff --git a/platform-includes/getting-started-config/javascript.gcp-functions.mdx b/platform-includes/getting-started-config/javascript.gcp-functions.mdx index b251dd9825fbd9..c35abf43952646 100644 --- a/platform-includes/getting-started-config/javascript.gcp-functions.mdx +++ b/platform-includes/getting-started-config/javascript.gcp-functions.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:Http functions} {"onboardingOptions": {"performance": "9-13", "profiling": "2, 6-8, 14-16"}} const Sentry = require("@sentry/google-cloud-serverless"); const { nodeProfilingIntegration } = require("@sentry/profiling-node"); diff --git a/platform-includes/getting-started-config/javascript.mdx b/platform-includes/getting-started-config/javascript.mdx index 98c0bf4cfbc65e..2435056639ef9a 100644 --- a/platform-includes/getting-started-config/javascript.mdx +++ b/platform-includes/getting-started-config/javascript.mdx @@ -2,7 +2,6 @@ Once this is done, Sentry's JavaScript SDK will capture all unhandled exceptions Note, that configuration differs slightly depending on how you installed the Sentry SDK. Make sure to follow the instructions in the correct tab, depending on if you installed the Sentry SDK via NPM, using the Loader Script, or via CDN. - ```javascript {tabTitle:npm} import * as Sentry from "@sentry/browser"; diff --git a/platform-includes/getting-started-config/javascript.node.mdx b/platform-includes/getting-started-config/javascript.node.mdx index 1b26f4eab79b70..359e5087e7f6b7 100644 --- a/platform-includes/getting-started-config/javascript.node.mdx +++ b/platform-includes/getting-started-config/javascript.node.mdx @@ -1,5 +1,3 @@ - - ```javascript {tabTitle:CommonJS} {filename: instrument.js} {"onboardingOptions": {"performance": "11-14", "profiling": "2, 7-10, 15-18"}} const Sentry = require("@sentry/node"); const { nodeProfilingIntegration } = require("@sentry/profiling-node"); diff --git a/platform-includes/getting-started-config/javascript.nuxt.mdx b/platform-includes/getting-started-config/javascript.nuxt.mdx index 6d39e7586367d9..e9dc200e6be202 100644 --- a/platform-includes/getting-started-config/javascript.nuxt.mdx +++ b/platform-includes/getting-started-config/javascript.nuxt.mdx @@ -23,7 +23,6 @@ Adding this module enables the Sentry SDK in your Nuxt application. The Sentry N Add a `sentry.client.config.(js|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.(js|ts)} import * as Sentry from '@sentry/nuxt'; @@ -41,7 +40,6 @@ Sentry.init({ 1. Add an `instrument.server.mjs` file to your `public` folder. In this file, import and initialize Sentry, specifying any SDK options for the server: - ```javascript {filename:public/instrument.server.mjs} import * as Sentry from '@sentry/nuxt'; diff --git a/platform-includes/getting-started-config/javascript.react.mdx b/platform-includes/getting-started-config/javascript.react.mdx index 32b6458c301d66..c966b416171547 100644 --- a/platform-includes/getting-started-config/javascript.react.mdx +++ b/platform-includes/getting-started-config/javascript.react.mdx @@ -1,6 +1,5 @@ Sentry should be initialized as early as possible in your application. We recommend putting the Sentry initialization code into its own file and including that file as the first import in your application entry point as shown in the example below: - ```javascript {filename:instrument.js} {"onboardingOptions": {"performance": "3-8, 13-21, 24-30", "session-replay": "22, 31-35"}} import { useEffect } from "react"; diff --git a/platform-includes/getting-started-config/javascript.solid.mdx b/platform-includes/getting-started-config/javascript.solid.mdx index a8df18d06a3132..df77363e038d12 100644 --- a/platform-includes/getting-started-config/javascript.solid.mdx +++ b/platform-includes/getting-started-config/javascript.solid.mdx @@ -4,7 +4,6 @@ To use the SDK, initialize it in your Solid entry point before bootstrapping you We currently support Solid 1.8.4 and up. - ```javascript {filename: index.jsx} {"onboardingOptions": {"performance": "2, 12, 15-22", "session-replay": "13, 23-27"}} import * as Sentry from "@sentry/solid"; diff --git a/platform-includes/getting-started-config/javascript.solidstart.mdx b/platform-includes/getting-started-config/javascript.solidstart.mdx index 66368ab22d2a90..dc2f797109457a 100644 --- a/platform-includes/getting-started-config/javascript.solidstart.mdx +++ b/platform-includes/getting-started-config/javascript.solidstart.mdx @@ -2,7 +2,6 @@ Initialize the Sentry SDK in your `src/entry-client.tsx` file. If you're using Solid Router, add the `solidRouterBrowserTracingIntegration` to collect meaningful performance data about the health of your page loads and associated requests. - ```jsx {filename:src/entry-client.tsx} import * as Sentry from '@sentry/solidstart'; @@ -37,7 +36,6 @@ For example by placing it in the `public` folder. - ```javascript {filename:public/instrument.server.mjs} import * as Sentry from '@sentry/solidstart'; diff --git a/platform-includes/getting-started-config/javascript.svelte.mdx b/platform-includes/getting-started-config/javascript.svelte.mdx index 469e1ebce33811..622d617b277df9 100644 --- a/platform-includes/getting-started-config/javascript.svelte.mdx +++ b/platform-includes/getting-started-config/javascript.svelte.mdx @@ -1,6 +1,5 @@ To use the SDK, initialize it in your Svelte entry point before bootstrapping your app. In a typical Svelte project, that is your `main.js` or `main.ts` file. - ```javascript {filename: main.js} {"onboardingOptions": {"performance": "10, 13-20", "session-replay": "11, 21-25"}} import "./app.css"; diff --git a/platform-includes/getting-started-config/javascript.vue.mdx b/platform-includes/getting-started-config/javascript.vue.mdx index c729a4e3fb87b1..4c438f7eeb9456 100644 --- a/platform-includes/getting-started-config/javascript.vue.mdx +++ b/platform-includes/getting-started-config/javascript.vue.mdx @@ -2,7 +2,6 @@ To initialize Sentry in your Vue application, add the following code snippet to ### Vue 3 - ```javascript {filename:main.js} {"onboardingOptions": {"performance": "16, 19-26", "session-replay": "17, 27-31"}} import { createApp } from "vue"; @@ -44,7 +43,6 @@ app.mount("#app"); ### Vue 2 - ```javascript {filename:main.js} {"onboardingOptions": {"performance": "15, 18-25", "session-replay": "16, 26-30"}} import Vue from "vue"; diff --git a/platform-includes/getting-started-config/kotlin-multiplatform.mdx b/platform-includes/getting-started-config/kotlin-multiplatform.mdx index ca9ad0a2d01529..fb4faffb689e8b 100644 --- a/platform-includes/getting-started-config/kotlin-multiplatform.mdx +++ b/platform-includes/getting-started-config/kotlin-multiplatform.mdx @@ -1,5 +1,3 @@ - - ```kotlin import io.sentry.kotlin.multiplatform.Sentry diff --git a/platform-includes/getting-started-config/native.mdx b/platform-includes/getting-started-config/native.mdx index b693d5abf4d3a5..94773c2e8e6658 100644 --- a/platform-includes/getting-started-config/native.mdx +++ b/platform-includes/getting-started-config/native.mdx @@ -1,5 +1,3 @@ - - ```c #include diff --git a/platform-includes/getting-started-config/native.qt.mdx b/platform-includes/getting-started-config/native.qt.mdx index 871b38a527cf9c..171256d96bec78 100644 --- a/platform-includes/getting-started-config/native.qt.mdx +++ b/platform-includes/getting-started-config/native.qt.mdx @@ -1,5 +1,3 @@ - - ```cpp #include #include diff --git a/platform-includes/getting-started-config/php.mdx b/platform-includes/getting-started-config/php.mdx index d5de6900b091dd..20c6538d573f15 100644 --- a/platform-includes/getting-started-config/php.mdx +++ b/platform-includes/getting-started-config/php.mdx @@ -1,6 +1,5 @@ To capture all errors, even the one during the startup of your application, you should initialize the Sentry PHP SDK as soon as possible. - ```php \Sentry\init([ diff --git a/platform-includes/getting-started-config/powershell.mdx b/platform-includes/getting-started-config/powershell.mdx index b722fc0f799853..5af09201f96789 100644 --- a/platform-includes/getting-started-config/powershell.mdx +++ b/platform-includes/getting-started-config/powershell.mdx @@ -1,6 +1,5 @@ Once this is done, Sentry's PowerShell SDK can be used to capture errors. - ```powershell # You may need to import the module if you've just installed it. diff --git a/platform-includes/getting-started-config/ruby.mdx b/platform-includes/getting-started-config/ruby.mdx index 6b77f9ed1aea49..4f884595827462 100644 --- a/platform-includes/getting-started-config/ruby.mdx +++ b/platform-includes/getting-started-config/ruby.mdx @@ -1,5 +1,3 @@ - - ```ruby {"onboardingOptions": {"performance": "8-11", "profiling": "12-15"}} require 'sentry-ruby' diff --git a/platform-includes/getting-started-config/ruby.rack.mdx b/platform-includes/getting-started-config/ruby.rack.mdx index 9d338e83c588cc..730034a03162b6 100644 --- a/platform-includes/getting-started-config/ruby.rack.mdx +++ b/platform-includes/getting-started-config/ruby.rack.mdx @@ -2,7 +2,6 @@ Add `use Sentry::Rack::CaptureExceptions` to your `config.ru` or other rackup file: - ```ruby {filename:config.ru} {"onboardingOptions": {"performance": "8-11", "profiling": "12-15"}} require 'sentry-ruby' diff --git a/platform-includes/getting-started-config/ruby.rails.mdx b/platform-includes/getting-started-config/ruby.rails.mdx index d8a4976900ebc4..243c27bc4ebf8e 100644 --- a/platform-includes/getting-started-config/ruby.rails.mdx +++ b/platform-includes/getting-started-config/ruby.rails.mdx @@ -1,6 +1,5 @@ Initialize the SDK within your `config/initializers/sentry.rb`: - ```ruby {filename:config/initializers/sentry.rb} {"onboardingOptions": {"performance": "6-9", "profiling": "10-13"}} Sentry.init do |config| diff --git a/platform-includes/getting-started-config/rust.mdx b/platform-includes/getting-started-config/rust.mdx index d3c8edd76b5568..e941731e3432d8 100644 --- a/platform-includes/getting-started-config/rust.mdx +++ b/platform-includes/getting-started-config/rust.mdx @@ -1,6 +1,5 @@ `sentry.init()` will return you a guard that when freed, will prevent process exit until all events have been sent (within a timeout): - ```rust let _guard = sentry::init(("___PUBLIC_DSN___", sentry::ClientOptions { diff --git a/platform-includes/getting-started-config/unity.mdx b/platform-includes/getting-started-config/unity.mdx index ec3fb5ca24d540..8d7a9f678a2cc3 100644 --- a/platform-includes/getting-started-config/unity.mdx +++ b/platform-includes/getting-started-config/unity.mdx @@ -1,6 +1,5 @@ The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) to your project. - ``` ___PUBLIC_DSN___ diff --git a/platform-includes/getting-started-config/unreal.mdx b/platform-includes/getting-started-config/unreal.mdx index c7d4b31da28144..570807ec98d497 100644 --- a/platform-includes/getting-started-config/unreal.mdx +++ b/platform-includes/getting-started-config/unreal.mdx @@ -1,6 +1,5 @@ The minimum configuration required is the [DSN](/product/sentry-basics/dsn-explainer/) of your project: - ``` ___PUBLIC_DSN___ diff --git a/platform-includes/getting-started-install/javascript.mdx b/platform-includes/getting-started-install/javascript.mdx index 237e5471082c95..3334157abccef8 100644 --- a/platform-includes/getting-started-install/javascript.mdx +++ b/platform-includes/getting-started-install/javascript.mdx @@ -1,6 +1,5 @@ In order to get started using the Sentry JavaScript SDK, add the following code to the top of your application, before all other scripts: - ```html