Skip to content

Commit

Permalink
feat: upgrade @sentry/node to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Oct 15, 2024
1 parent 30aff6c commit 045e9ab
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 92 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function getTransformStream(options = {}) {

Sentry.withScope(function (scope) {
const sentryLevelName =
data.level === 50 ? Sentry.Severity.Error : Sentry.Severity.Fatal;
data.level === 50 ? "error" : "fatal";
scope.setLevel(sentryLevelName);

for (const extra of ["event", "headers", "request", "status"]) {
Expand Down
Loading

0 comments on commit 045e9ab

Please sign in to comment.