Neglected Parking Meter

    moleculer-sentry

    1.0.1 • Public • Published

    moleculer-sentry

    Tests Coverage Status Codacy Badge Maintainability Known Vulnerabilities

    Downloads FOSSA Status

    Usage

    This package uses Moleculer's tracing function to catch errors and send them to sentry. In oder 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,
        },
      }
    }

    Install

    npm i moleculer-sentry

    DownloadsWeekly Downloads

    209

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    9.58 kB

    Total Files

    5

    Last publish

    Collaborators

    • hugome