mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-30 16:43:37 +00:00
46 lines
1.7 KiB
TypeScript
46 lines
1.7 KiB
TypeScript
// This file configures the initialization of Sentry on the client.
|
|
// The config you add here will be used whenever a users loads a page in their browser.
|
|
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
|
|
|
|
import * as Sentry from '@sentry/nextjs';
|
|
|
|
Sentry.init({
|
|
dsn: 'https://bb697105eaabbc6f70af12e84e936ded@o4508368569368576.ingest.us.sentry.io/4508368582017024',
|
|
|
|
// Add optional integrations for additional features
|
|
integrations: [
|
|
Sentry.replayIntegration({
|
|
maskAllText: true,
|
|
blockAllMedia: true,
|
|
}),
|
|
Sentry.feedbackIntegration({
|
|
colorScheme: 'system',
|
|
enableScreenshot: true,
|
|
}),
|
|
Sentry.replayCanvasIntegration(),
|
|
Sentry.browserProfilingIntegration(),
|
|
],
|
|
|
|
// Set tracesSampleRate to 1.0 to capture 100%
|
|
// of transactions for tracing.
|
|
// We recommend adjusting this value in production
|
|
tracesSampleRate: 0.5,
|
|
// Set `tracePropagationTargets` to control for which URLs trace propagation should be enabled
|
|
tracePropagationTargets: ['localhost', /^https:\/\/tasko\.ahmadk953\.org/],
|
|
|
|
// Set profilesSampleRate to 1.0 to profile every transaction.
|
|
// Since profilesSampleRate is relative to tracesSampleRate,
|
|
// the final profiling rate can be computed as tracesSampleRate * profilesSampleRate
|
|
// For example, a tracesSampleRate of 0.5 and profilesSampleRate of 0.5 would
|
|
// result in 25% of transactions being profiled (0.5*0.5=0.25)
|
|
profilesSampleRate: 0.5,
|
|
|
|
// Define how likely Replay events are sampled.
|
|
replaysSessionSampleRate: 0.25,
|
|
|
|
// Define how likely Replay events are sampled when an error occurs.
|
|
replaysOnErrorSampleRate: 1.0,
|
|
|
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
debug: false,
|
|
});
|