-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
-
When I throw a 500 json response with Remix, the exception name is incorrect.
throw json( { data: {} }, { status: 500, statusText: "My error" } );
Result in:
How I can set myself the exception name for Sentry ?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 1 reply
-
This is something we can improve.
Transferring to an issue so we can backlog, but PRs are welcome!
sentry-javascript/packages/remix/src/utils/instrumentServer.ts
Lines 80 to 94 in 9c66c39
captureException(isResponse(err) ? extractData(err) : err, scope => {
scope.addEventProcessor(event => {
addExceptionMechanism(event, {
type: 'instrument',
handled: true,
data: {
function: name,
},
});
return event;
});
return scope;
});
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
Issue is here: #5963
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment