webtools

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

sentry.server.config.ts (771B)


      1 // This file configures the initialization of Sentry on the server.
      2 // The config you add here will be used whenever the server handles a request.
      3 // https://docs.sentry.io/platforms/javascript/guides/nextjs/
      4 
      5 import * as Sentry from "@sentry/nextjs";
      6 
      7 Sentry.init({
      8   dsn: "https://d4d380ef1932dbfd4d71a66f29f40915@o4510220875923456.ingest.de.sentry.io/4510220938641488",
      9 
     10   // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control.
     11   tracesSampleRate: 1,
     12 
     13   // Enable logs to be sent to Sentry
     14   enableLogs: true,
     15 
     16   // Enable sending user PII (Personally Identifiable Information)
     17   // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii
     18   sendDefaultPii: true,
     19 });