summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-27 22:36:55 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-27 22:36:55 +0200
commit53794f11c7772291d7951a86a9eff686accd2843 (patch)
tree8aff58c5a1f4c5b5648af114f6888bc74a698815 /plugins
parent8e5210c6f98670171ac64510451acb1dad691336 (diff)
Add Sentry
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sentry.js13
1 files changed, 13 insertions, 0 deletions
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,
+ });
+};