function SentryBackend()

in backends/sentry.js [32:46]


function SentryBackend(opts) {
    if (!(this instanceof SentryBackend)) {
        return new SentryBackend(opts);
    }

    if (!opts.dsn) {
        throw new Error('SentryBackend: opts.dsn is required');
    }

    EventEmitter.call(this);

    this.dsn = opts.dsn;
    this.defaultTags = opts.defaultTags || {};
    this.statsd = opts.statsd || null;
}