Skip to main content

Sentry error logs

Sentry is a self-hosted or cloud-based monitoring application that helps software teams discover, triage, and prioritize errors in real-time.

By default the errors will show up in the default sentry environment, if you want to use your own you can read the Configuration section.

Configuration​

You can define your own Sentry environment by setting the SENTRY_LARAVEL_DSN in your .env for example:

Backend:

# Sentry
SENTRY_LARAVEL_DSN=XXXXXXX
SENTRY_TRACES_SAMPLE_RATE=1

Frontend:

import * as Sentry from '@sentry/vue'
import {Integrations} from '@sentry/tracing'
import Vue from 'vue'
import router from 'src/router'

Sentry.init({
Vue,
dsn: process.env.SENTRY_DSN,
integrations: [
new Integrations.BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
tracingOrigins: [process.env.SENTRY_ORIGINS.split(','), /^\//]
})
],
tracesSampleRate: 1.0
})