stack/packages/stack-shared/src/utils/sentry.tsx
Konstantin Wohlwend e0ea6834d0 Upgrade TypeScript
2026-02-27 00:28:35 -08:00

21 lines
766 B
TypeScript

export const sentryBaseConfig = {
ignoreErrors: [
// React throws these errors when used with some browser extensions (eg. Google Translate)
"NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.",
"NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.",
],
normalizeDepth: 5,
maxValueLength: 5000,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 1.0,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 1.0,
};