From 53794f11c7772291d7951a86a9eff686accd2843 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 27 Sep 2022 22:36:55 +0200 Subject: Add Sentry --- plugins/sentry.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugins/sentry.js (limited to 'plugins') diff --git a/plugins/sentry.js b/plugins/sentry.js new file mode 100644 index 0000000..2bd0443 --- /dev/null +++ b/plugins/sentry.js @@ -0,0 +1,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, + }); +}; -- cgit v1.2.3-18-g5258