@veek/moleculer-sentry-middleware
v0.0.14
Published
Sentry Integration for MoleculerJs
Downloads
1
Readme
Molerculer Sentry Middleware
A Sentry middleware made for Molerculer projects.
Table of Contents
Installation
Add yo your sentry project using yarn:
npm install --save @veek/moleculer-sentry-middleware
or npm:
npm install --save @veek/moleculer-sentry-middleware
Usage
Import the package inside your moleculer.config.js
:
import {sentryMiddleware} from '@veek/moleculer-sentry-middleware';
// setup sentry
const SentryMiddlewareInstance = sentryMiddleware({
dsn: 'https://[email protected]/1406109',
release: `${name}@${version}`,
debug: true,
});
// add to middleware property
export default {
// [... other moleculer runner configs]
middlewares: [SentryMiddlewareInstance],
// [... other moleculer runner configs]
};