Skip to content

Commit d544b3b

Browse files
committed
chore: update sentry to latest version in all apps
1 parent 5b3faa8 commit d544b3b

File tree

11 files changed

+353
-626
lines changed

11 files changed

+353
-626
lines changed

apps/gateway/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"@latitude-data/sdk": "workspace:^",
2626
"@latitude-data/telemetry": "workspace:^",
2727
"@sentry/cli": "^2.37.0",
28-
"@sentry/node": "^8.30.0",
28+
"@sentry/node": "^9.9.0",
29+
"@sentry/profiling-node": "^9.8.0",
2930
"@t3-oss/env-core": "^0.10.1",
3031
"@tavily/core": "^0.3.1",
3132
"drizzle-orm": "^0.33.0",

apps/gateway/src/common/sentry.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import { env } from '@latitude-data/env'
22
import * as Sentry from '@sentry/node'
3+
import { nodeProfilingIntegration } from '@sentry/profiling-node'
34

45
if (env.SENTRY_GATEWAY_DSN) {
56
Sentry.init({
67
dsn: env.SENTRY_GATEWAY_DSN,
7-
88
enabled: !!env.SENTRY_GATEWAY_DSN,
9+
environment: env.NODE_ENV,
10+
integrations: [nodeProfilingIntegration()],
11+
profilesSampleRate: 1.0,
12+
tracesSampleRate: 1.0,
913
})
1014
}
1115

apps/gateway/src/instrumentation.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/gateway/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './instrumentation'
1+
import './common/sentry'
22

33
import { serve } from '@hono/node-server'
44
import app from '$/routes/app'

apps/web/next.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const nextConfig = {
1717
'@napi-rs/canvas',
1818
'@sentry/nextjs',
1919
'@sentry/profiling-node',
20-
'@sentry/utils',
2120
'bullmq',
2221
'jose',
2322
'nodemailer-mailgun-transport',

apps/web/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
"@lucia-auth/adapter-drizzle": "^1.0.7",
2828
"@monaco-editor/react": "^4.6.0",
2929
"@napi-rs/canvas": "^0.1.65",
30-
"@sentry/nextjs": "^8.34.0",
30+
"@sentry/nextjs": "^9.9.0",
3131
"@sentry/profiling-node": "^9.8.0",
32-
"@sentry/utils": "^8.30.0",
3332
"@sindresorhus/slugify": "^2.2.1",
3433
"@t3-oss/env-nextjs": "^0.10.1",
3534
"@types/diff-match-patch": "^1.0.36",

apps/web/sentry.server.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ Sentry.init({
1010
dsn: env.SENTRY_WEB_DSN,
1111
enabled: !!env.SENTRY_WEB_DSN,
1212

13-
integrations: [nodeProfilingIntegration],
13+
integrations: [nodeProfilingIntegration()],
1414
tracesSampleRate: 1.0,
1515
profilesSampleRate: 1.0,
16-
17-
// Setting this option to true will print useful information to the console while you're setting up Sentry.
18-
debug: false,
1916
})

apps/workers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@latitude-data/core": "workspace:^",
2020
"@latitude-data/env": "workspace:^",
2121
"@sentry/cli": "^2.37.0",
22-
"@sentry/node": "^8.30.0",
22+
"@sentry/node": "^9.9.0",
2323
"@sentry/profiling-node": "^9.8.0",
2424
"@t3-oss/env-core": "*",
2525
"@tavily/core": "^0.3.1",

apps/workers/src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import './tracer'
2+
import './utils/sentry'
23

34
import express from 'express'
45
import { createBullBoard } from '@bull-board/api'

apps/workers/src/utils/sentry.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ if (env.SENTRY_WORKERS_DSN) {
66
Sentry.init({
77
dsn: env.SENTRY_WORKERS_DSN,
88
enabled: !!env.SENTRY_WORKERS_DSN,
9-
integrations: [nodeProfilingIntegration],
10-
tracesSampleRate: 1.0,
11-
profilesSampleRate: 1.0,
12-
139
environment: env.NODE_ENV,
10+
integrations: [nodeProfilingIntegration()],
11+
profilesSampleRate: 1.0,
12+
tracesSampleRate: 1.0,
1413
})
1514
}
1615

0 commit comments

Comments
 (0)