-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathsentry.server.ts
More file actions
27 lines (20 loc) · 776 Bytes
/
sentry.server.ts
File metadata and controls
27 lines (20 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as Sentry from "@sentry/remix";
if (process.env.SENTRY_DSN) {
console.log("🔭 Initializing Sentry");
Sentry.init({
dsn: process.env.SENTRY_DSN,
release: process.env.BUILD_GIT_SHA,
// Adds request headers and IP for users, for more info visit: and captures action formData attributes
// https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#sendDefaultPii
sendDefaultPii: false,
skipOpenTelemetrySetup: true,
registerEsmLoaderHooks: false,
disableInstrumentationWarnings: true,
maxBreadcrumbs: 0,
shutdownTimeout: 10,
serverName: process.env.SERVICE_NAME,
environment: process.env.APP_ENV,
ignoreErrors: ["queryRoute() call aborted"],
includeLocalVariables: false,
});
}