mirror of
https://github.com/ershisan99/vacancies-trends-front.git
synced 2026-02-02 05:12:07 +00:00
add sentry
This commit is contained in:
22
app/instrument.server.mjs
Normal file
22
app/instrument.server.mjs
Normal file
@@ -0,0 +1,22 @@
|
||||
import * as Sentry from "@sentry/remix";
|
||||
|
||||
Sentry.init({
|
||||
dsn: process.env.VITE_ENV_SENTRY_DSN,
|
||||
// Set tracesSampleRate to 1.0 to capture 100%
|
||||
// of transactions for tracing.
|
||||
// We recommend adjusting this value in production
|
||||
tracesSampleRate: 1.0,
|
||||
|
||||
// To use Sentry OpenTelemetry auto-instrumentation
|
||||
// default: false
|
||||
autoInstrumentRemix: true,
|
||||
|
||||
// Optionally capture action formData attributes with errors.
|
||||
// This requires `sendDefaultPii` set to true as well.
|
||||
captureActionFormDataKeys: {
|
||||
key_x: true,
|
||||
key_y: true,
|
||||
},
|
||||
// To capture action formData attributes.
|
||||
sendDefaultPii: true
|
||||
});
|
||||
Reference in New Issue
Block a user