webtools

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

instrumentation-client.ts (854B)


      1 // This file configures the initialization of Sentry on the client.
      2 // The added config here will be used whenever a users loads a page in their browser.
      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   // Enable logs to be sent to Sentry
     13   enableLogs: true,
     14 
     15   // Enable sending user PII (Personally Identifiable Information)
     16   // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii
     17   sendDefaultPii: true,
     18 });
     19 
     20 export const onRouterTransitionStart = Sentry.captureRouterTransitionStart;