From 7459aadf861af1641872e758ab1bfbbeb9210143 Mon Sep 17 00:00:00 2001 From: serefyarar Date: Tue, 1 Oct 2024 23:19:24 -0400 Subject: [PATCH] Iterate --- web-app/src/app/global-error.tsx | 2 +- web-app/src/app/sentry-example-page/page.tsx | 4 ++-- web-app/src/instrumentation.ts | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web-app/src/app/global-error.tsx b/web-app/src/app/global-error.tsx index 9bda5fee..362f8e87 100644 --- a/web-app/src/app/global-error.tsx +++ b/web-app/src/app/global-error.tsx @@ -20,4 +20,4 @@ export default function GlobalError({ error }: { error: Error & { digest?: strin ); -} \ No newline at end of file +} diff --git a/web-app/src/app/sentry-example-page/page.tsx b/web-app/src/app/sentry-example-page/page.tsx index b35323ea..61b91abf 100644 --- a/web-app/src/app/sentry-example-page/page.tsx +++ b/web-app/src/app/sentry-example-page/page.tsx @@ -50,8 +50,8 @@ export default function Page() { }} onClick={async () => { await Sentry.startSpan({ - name: 'Example Frontend Span', - op: 'test' + name: "Example Frontend Span", + op: "test", }, async () => { const res = await fetch("/api/sentry-example-api"); if (!res.ok) { diff --git a/web-app/src/instrumentation.ts b/web-app/src/instrumentation.ts index 8aff09f0..ecb65282 100644 --- a/web-app/src/instrumentation.ts +++ b/web-app/src/instrumentation.ts @@ -1,12 +1,12 @@ -import * as Sentry from '@sentry/nextjs'; +import * as Sentry from "@sentry/nextjs"; export async function register() { - if (process.env.NEXT_RUNTIME === 'nodejs') { - await import('../sentry.server.config'); + if (process.env.NEXT_RUNTIME === "nodejs") { + await import("../sentry.server.config"); } - if (process.env.NEXT_RUNTIME === 'edge') { - await import('../sentry.edge.config'); + if (process.env.NEXT_RUNTIME === "edge") { + await import("../sentry.edge.config"); } }