yarn add @lunifyfr/adonis-sentry
node ace configure @lunifyfr/adonis-sentry
- Set Env
SENTRY_DSN=
- call
Sentry.captureException
inapp/Exceptions/Handler.ts
node ace sentry:ping
import Sentry from '@ioc:Adonis/Addons/Sentry'
Sentry.captureMessage('Hello World')
import { SentryCapture } from '@ioc:Adonis/Addons/Sentry'
SentryCapture(error, ctx)
SENTRY_DSN=https://sentry.io/...
SENTRY_ENVIRONMENT=production | staging | development
SENTRY_ENABLED=true | false