mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
- Deleted the SentryErrorButton component as it was not needed. - Updated the cookbook page to remove the SentryErrorButton reference. - Adjusted the search component to fix a self-closing tag issue. - Ensured the toggleLike function call is correctly formatted in the view component. - Added sendDefaultPii option to Sentry configuration for improved error tracking.
24 lines
907 B
TypeScript
24 lines
907 B
TypeScript
import * as Sentry from "@sentry/nuxt";
|
|
|
|
Sentry.init({
|
|
dsn: useRuntimeConfig().public.sentry.dsn,
|
|
// We recommend adjusting this value in production, or using tracesSampler for finer control
|
|
tracesSampleRate: 1.0,
|
|
// This sets the sample rate to be 10%. You may want this to be 100% while
|
|
// in development and sample at a lower rate in production
|
|
replaysSessionSampleRate: 0.1,
|
|
// If the entire session is not sampled, use the below sample rate to sample
|
|
// sessions when an error occurs.
|
|
replaysOnErrorSampleRate: 1.0,
|
|
// If you don't want to use Session Replay, just remove the line below:
|
|
integrations: [
|
|
Sentry.replayIntegration(),
|
|
Sentry.consoleLoggingIntegration(),
|
|
],
|
|
// Setting this option to true will print useful information to the console while you're setting up Sentry.
|
|
debug: false,
|
|
sendDefaultPii: true,
|
|
_experiments: {
|
|
enableLogs: true,
|
|
},
|
|
});
|