feat: Finally support a docker compose files that works (#555)
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
import { dev } from '$app/environment';
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import { CaptureConsole } from '@sentry/integrations';
|
||||
// import * as Sentry from '@sentry/browser';
|
||||
// import { CaptureConsole } from '@sentry/integrations';
|
||||
|
||||
export const initSentry = (): void => {
|
||||
if (dev) return;
|
||||
|
||||
Sentry.init({
|
||||
dsn: 'https://[email protected]/5999999',
|
||||
integrations: [
|
||||
new CaptureConsole({
|
||||
levels: ['error']
|
||||
}),
|
||||
new Sentry.Replay()
|
||||
],
|
||||
environment: 'production',
|
||||
replaysSessionSampleRate: 0.5,
|
||||
replaysOnErrorSampleRate: 1.0
|
||||
});
|
||||
// Sentry.init({
|
||||
// dsn: 'https://[email protected]/5999999',
|
||||
// integrations: [
|
||||
// new CaptureConsole({
|
||||
// levels: ['error']
|
||||
// }),
|
||||
// new Sentry.Replay()
|
||||
// ],
|
||||
// environment: 'production',
|
||||
// replaysSessionSampleRate: 0.5,
|
||||
// replaysOnErrorSampleRate: 1.0
|
||||
// });
|
||||
};
|
||||
|
||||
export const setSentryUser = (user: Record<string, any>): void => {
|
||||
if (dev) return;
|
||||
|
||||
Sentry.setUser(user);
|
||||
// Sentry.setUser(user);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user