From 634cc82dd002884e838ada8125b4ff715a967986 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Tue, 28 May 2024 15:49:18 -0700 Subject: [PATCH] Fix guide --- docs/guides/ecosystem/sentry.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/guides/ecosystem/sentry.md b/docs/guides/ecosystem/sentry.md index ffdb3764b8d814..77714ad9eea9bd 100644 --- a/docs/guides/ecosystem/sentry.md +++ b/docs/guides/ecosystem/sentry.md @@ -18,12 +18,12 @@ bun add @sentry/bun Then, initialize the Sentry SDK with your Sentry DSN in your app's entry file. You can find your DSN in your Sentry project settings. -```JavaScript -import * as Sentry from '@sentry/bun'; +```js +import * as Sentry from "@sentry/bun"; // Ensure to call this before importing any other modules! Sentry.init({ - dsn: '__SENTRY_DSN__', + dsn: "__SENTRY_DSN__", // Add Performance Monitoring by setting tracesSampleRate // We recommend adjusting this value in production @@ -35,7 +35,7 @@ Sentry.init({ You can verify that Sentry is working by capturing a test error: -```JavaScript +```js setTimeout(() => { try { foo();