hato-sentry
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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 })
    ]
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    6
  • 0.0.1
    0

Package Sidebar

Install

npm i hato-sentry

Weekly Downloads

7

Version

0.0.3

License

ISC

Unpacked Size

10.1 kB

Total Files

10

Last publish

Collaborators

  • openrm