mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-15 08:35:06 +01:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
|
import * as Sentry from "@sentry/react";
|
||
|
import { CaptureConsole, HttpClient } from "@sentry/integrations";
|
||
|
import { SENTRY_DSN } from "@/setup/constants";
|
||
|
import { conf } from "@/setup/config";
|
||
|
|
||
|
Sentry.init({
|
||
|
dsn: SENTRY_DSN,
|
||
|
release: `movie-web@${conf().APP_VERSION}`,
|
||
|
sampleRate: 0.5,
|
||
|
integrations: [
|
||
|
new Sentry.BrowserTracing(),
|
||
|
new CaptureConsole(),
|
||
|
new HttpClient(),
|
||
|
],
|
||
|
});
|