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 fc41068
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 fc41068

Please sign in to comment.