Skip to content

Commit

Permalink
feat: upgrade @sentry/node to v7 (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 authored Oct 15, 2024
1 parent f65098a commit 92c4681
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 93 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ function getTransformStream(options = {}) {
}

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

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

0 comments on commit 92c4681

Please sign in to comment.