pino-sentry
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -110,3 +110,3 @@ "use strict"; | ||
const stack = chunk[this.stackAttributeKey] || ''; | ||
Sentry.configureScope(scope => { | ||
Sentry.withScope(scope => { | ||
if (this.isObject(tags)) { | ||
@@ -118,18 +118,18 @@ Object.keys(tags).forEach(tag => scope.setTag(tag, tags[tag])); | ||
} | ||
// Capturing Errors / Exceptions | ||
if (this.isSentryException(severity)) { | ||
const error = message instanceof Error ? message : new ExtendedError({ message, stack }); | ||
setImmediate(() => { | ||
Sentry.captureException(error); | ||
cb(); | ||
}); | ||
} | ||
else { | ||
// Capturing Messages | ||
setImmediate(() => { | ||
Sentry.captureMessage(message, severity); | ||
cb(); | ||
}); | ||
} | ||
}); | ||
// Capturing Errors / Exceptions | ||
if (this.isSentryException(severity)) { | ||
const error = message instanceof Error ? message : new ExtendedError({ message, stack }); | ||
setImmediate(() => { | ||
Sentry.captureException(error); | ||
cb(); | ||
}); | ||
} | ||
else { | ||
// Capturing Messages | ||
setImmediate(() => { | ||
Sentry.captureMessage(message, severity); | ||
cb(); | ||
}); | ||
} | ||
} | ||
@@ -136,0 +136,0 @@ validateOptions(options) { |
{ | ||
"name": "pino-sentry", | ||
"description": "@sentry/node transport for pino logger", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"author": "Andrew Avdeev <andrewww.avdeev@gmail.com>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33296