2.0.0 • Published 1 year ago

moleculer-sentry v2.0.0

Weekly downloads
258
License
MIT
Repository
github
Last release
1 year ago

moleculer-sentry

Build Coverage Status Codacy Badge Maintainability Libraries.io dependency status for latest release Known Vulnerabilities Downloads FOSSA Status

Usage

This package uses Moleculer's tracing function to catch errors and send them to sentry. In order for it to function properly, you need to enable tracing and use the "Event" exporter. To see how to set up tracing, please refer to the moleculer documentation.

const SentryMixin = require('moleculer-sentry')

module.exports = {
  mixins: [SentryMixin],

  settings: {
    /** @type {Object?} Sentry configuration wrapper. */
    sentry: {
      /** @type {String} DSN given by sentry. */
      dsn: null,
      /** @type {String} Name of event fired by "Event" exported in tracing. */
      tracingEventName: '$tracing.spans',
      /** @type {Object} Additional options for `Sentry.init`. */
      options: {},
      /** @type {String?} Name of the meta containing user infos. */
      userMetaKey: null,
    },
  }
}
2.0.0

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago