UNPKG

@rlanz/sentry

Version:

A wrapper around the Sentry SDK to make it easier to use in a AdonisJS application

14 lines (13 loc) 301 B
import { Sentry } from '../src/sentry.js'; export default class SentryProvider { app; constructor(app) { this.app = app; } async boot() { const config = this.app.config.get('sentry', {}); if (config.enabled) { Sentry.init(config); } } }