Skip to content

Commit 781e32f

Browse files
authored
Update Sentry website monitoring (#103)
1 parent 2c8761f commit 781e32f

15 files changed

Lines changed: 769 additions & 212 deletions

.changeset/crisp-dancers-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": patch
3+
---
4+
5+
Fixed Sentry release tracking.

.changeset/plain-jars-clap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": minor
3+
---
4+
5+
Added most Sentry integrations.

.changeset/plenty-dancers-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": patch
3+
---
4+
5+
Updated website's Sentry dependencies.

.changeset/ten-cats-study.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": patch
3+
---
4+
5+
Fixed Sentry source map upload.

.changeset/thirty-files-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": minor
3+
---
4+
5+
Added Sentry logging.

.changeset/wise-buses-rule.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spear-ai/wisp-website": minor
3+
---
4+
5+
Added the ability to detect when running in CI.

packages/wisp-website/next.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import type { NextConfig } from "next";
33

44
// eslint-disable-next-line import-x/no-mutable-exports
55
let nextConfig: NextConfig = {
6-
eslint: {
7-
ignoreDuringBuilds: true,
8-
},
96
poweredByHeader: false,
7+
productionBrowserSourceMaps: true,
108
// eslint-disable-next-line @typescript-eslint/require-await
119
redirects: async () => [
1210
{
@@ -28,8 +26,8 @@ nextConfig = withSentryConfig(nextConfig, {
2826
reactComponentAnnotation: {
2927
enabled: true,
3028
},
31-
silent: process.env.CI === "null",
32-
tunnelRoute: "/monitoring",
29+
silent: false,
30+
tunnelRoute: true,
3331
widenClientFileUpload: true,
3432
});
3533

packages/wisp-website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "module",
1111
"dependencies": {
1212
"@formatjs/intl-localematcher": "0.6.2",
13-
"@sentry/nextjs": "10.20.0",
13+
"@sentry/nextjs": "10.21.0",
1414
"@t3-oss/env-nextjs": "0.13.8",
1515
"@vercel/analytics": "1.5.0",
1616
"memoize": "10.1.0",

packages/wisp-website/sentry.client.config.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
import * as Sentry from "@sentry/nextjs";
2+
import {
3+
consoleLoggingIntegration,
4+
extraErrorDataIntegration,
5+
zodErrorsIntegration,
6+
} from "@sentry/nextjs";
27
import { environment } from "@/environment";
38

49
Sentry.init({
5-
debug: false,
610
dsn: environment.NEXT_PUBLIC_SENTRY_DSN,
711
enabled: environment.NEXT_PUBLIC_SENTRY_IS_ENABLED,
8-
tracesSampleRate: 1,
12+
enableLogs: true,
13+
integrations: [
14+
consoleLoggingIntegration(),
15+
extraErrorDataIntegration(),
16+
zodErrorsIntegration(),
17+
],
18+
tracesSampleRate: 0.01,
919
});

0 commit comments

Comments
 (0)