mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 20:51:18 +00:00
added sentry error monitoring
This commit is contained in:
parent
b9645dd32f
commit
bc02cd4de1
10 changed files with 1492 additions and 65 deletions
22
sentry.server.config.ts
Normal file
22
sentry.server.config.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
// This file configures the initialization of Sentry on the server.
|
||||
// The config you add here will be used whenever the server handles a request.
|
||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
||||
|
||||
import * as Sentry from "@sentry/nextjs";
|
||||
|
||||
Sentry.init({
|
||||
dsn: "https://e8bb1cf7421d4fd387d1235b742ea68f@o4511852428525568.ingest.de.sentry.io/4511852431802448",
|
||||
|
||||
// Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
|
||||
tracesSampleRate: 1,
|
||||
|
||||
// Enable logs to be sent to Sentry
|
||||
enableLogs: true,
|
||||
|
||||
dataCollection: {
|
||||
// To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:
|
||||
// https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection
|
||||
// userInfo: false,
|
||||
// httpBodies: [],
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue