Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 511 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 511 Bytes

hato-sentry

Report errors happening in hato using an existing Sentry module

install

npm i hato-sentry

usage

Init your hato client instance as usual, including the plugin in the plugins list:

const { Client } = require("hato");
const SentryPlugin = require("hato-sentry");

const Sentry = require("@sentry/node");

Sentry.init({
  dsn: '__DSN__',
  // ...
});

const client = new Client('__AMQP_CONN_STRING__', {
    plugins: [
        new SentryPlugin({ Sentry })
    ]
});