steedos-platform/services/service-sentry
2024-10-23 01:59:45 +00:00
..
public/sentry 修复 creator 运行报错 2023-09-21 06:31:35 +00:00
package.json action: release 2.7.10-beta.13 2024-10-23 01:59:45 +00:00
package.service.js 修复 creator 运行报错 2023-09-21 06:31:35 +00:00
README.md

sentry

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,
    },
  }
}