@rattawitdev/ttb-sentry-config
v1.1.2
Published
Standardized Sentry data masking configuration for ttb applications
Downloads
8
Maintainers
Readme
TTB Sentry Configuration
A standardized configuration library for masking sensitive data in Sentry for TTB applications.
Installation
npm install ttb-sentry-config @sentry/nextjs@^9
# or
yarn add ttb-sentry-config @sentry/nextjs@^9Usage
For Next.js applications
Update your Sentry configuration files with our standardized masking:
sentry.client.config.ts [root level]
import * as Sentry from '@sentry/nextjs';
import { applySentryMasking } from 'ttb-sentry-config';
const sentryConfig = {
dsn: 'YOUR_DSN_HERE',
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 1.0,
// other Sentry config
};
// Apply the masking configuration
const maskedSentryConfig = applySentryMasking(sentryConfig);
Sentry.init(maskedSentryConfig);Similarly update your sentry.server.config.ts [root level] files.
License
ttb
