Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including adonis-raven with all npm packages installed. Try it out:

adonis-raven lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("adonis-raven/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

adonis-raven v1.0.1

Sentry provider for adonis framework


Sentry provider for AdonisJS

npm version Build status GitHub license


adonis install adonis-raven

You need to add the provider to AdonisJS at start/app.js:

const providers = [

and in your .env file


then you can use it as

const sentry = use('Sentry')

if you want to catch all the exceptions of your adonis project you must create an exception handler

adonis make:ehandler

and we need add sentry notify in app/Exceptions/Handler.js

'use strict'

const sentry = use('Sentry')

class ExceptionHandler {


  async report (error, { request }) {

module.exports = ExceptionHandler

Official documentation for Node.js apps

Issues & PR

It is always helpful if we try to follow certain practices when creating issues or PR's, since it will save everyone's time.

  1. Always try creating regression tests when you find a bug (if possible).
  2. Share some context on what you are trying to do, with enough code to reproduce the issue.
  3. For general questions, please create a forum thread.
  4. When creating a PR for a feature, make sure to create a parallel PR for docs too.


Adonis Sentry is open-sourced software licensed under the MIT license.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free