diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sentry.js | 13 |
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, + }); +}; |