bigbuffet-rw/app/soapbox/monitoring.js

17 lines
454 B
JavaScript
Raw Normal View History

2021-09-08 13:45:44 -07:00
import * as Sentry from '@sentry/react';
import { Integrations } from '@sentry/tracing';
import { NODE_ENV, SENTRY_DSN } from 'soapbox/build_config';
export function start() {
Sentry.init({
dsn: SENTRY_DSN,
environment: NODE_ENV,
2021-09-11 11:52:48 -07:00
debug: false,
2021-09-08 13:45:44 -07:00
integrations: [new Integrations.BrowserTracing()],
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,
});
}