Skip to content

Commit 4af89a2

Browse files
committed
api: update sentry tracking and upgrade packages
1 parent d314050 commit 4af89a2

File tree

3 files changed

+413
-168
lines changed

3 files changed

+413
-168
lines changed

apps/api/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@fastify/type-provider-typebox": "^5.0.0",
2222
"@prisma/client": "^5.3.0",
2323
"@sentry/node": "^8.7.0",
24-
"@sentry/profiling-node": "^8.7.0",
2524
"@sinclair/typebox": "^0.33.7",
2625
"@thirdweb-dev/engine": "^0.0.15",
2726
"@treasure-dev/auth": "*",

apps/api/src/instrument.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import * as Sentry from "@sentry/node";
2-
import { nodeProfilingIntegration } from "@sentry/profiling-node";
32

43
const environment = process.env.SENTRY_ENVIRONMENT || "production";
5-
const isDevelopment = environment === "development";
64

75
Sentry.init({
86
dsn: process.env.SENTRY_DSN,
97
environment,
10-
integrations: [nodeProfilingIntegration(), Sentry.prismaIntegration()],
11-
sampleRate: isDevelopment ? 1 : 0.8,
12-
// instrumentation fails when included: https://github.com/getsentry/sentry-javascript/issues/13662
13-
// tracesSampleRate: isDevelopment ? 1 : 0.6,
14-
profilesSampleRate: isDevelopment ? 1 : 0.6,
8+
sampleRate: environment === "development" ? 1 : 0.75,
9+
ignoreErrors: ["Unauthorized", "401 Unauthorized", "404 Not Found"],
1510
});

0 commit comments

Comments
 (0)