sentry.edge.config.ts (926B)
1 // This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on). 2 // The config you add here will be used whenever one of the edge features is loaded. 3 // Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally. 4 // https://docs.sentry.io/platforms/javascript/guides/nextjs/ 5 6 import * as Sentry from "@sentry/nextjs"; 7 8 Sentry.init({ 9 dsn: "https://15c31addb49334c24f9a5100c1061622@o4510220875923456.ingest.de.sentry.io/4510250339795024", 10 11 // Define how likely traces are sampled. Adjust this value in production, or use tracesSampler for greater control. 12 tracesSampleRate: 1, 13 14 // Enable logs to be sent to Sentry 15 enableLogs: true, 16 17 // Enable sending user PII (Personally Identifiable Information) 18 // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#sendDefaultPii 19 sendDefaultPii: true, 20 });