summaryrefslogtreecommitdiff
path: root/plugins/sentry.js
blob: 2bd04432ccecb732a1be99db1effd520c5d34056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import Vue from "vue";
import * as Sentry from "@sentry/vue";
import { BrowserTracing } from "@sentry/tracing";

export default ({ app, _, env }) => {
  app.sentry = Sentry.init({
    Vue,
    dsn: env.sentry_dsn,
    integrations: [new BrowserTracing()],
    tracesSampleRate: env.sentry_rate,
    environment: env.sentry_env,
  });
};