Custom error handler #1287
moon-stripe
started this conversation in
Ideas
Replies: 1 comment
-
hi @moon-stripe I think your request makes total sense. So, I'll set a label for discussion and future development. Thanks for your detailed input. :-) and thanks for using verdaccio, happy you are glad. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Similar to #1286, we use sentry for error reporting, but there don't appear to be any hooks into verdaccio to add custom error reporting middleware.
Describe the solution you'd like
To use sentry's express integration, you have to add a middleware before other middlewares, and an error-handling middleware before other error-handling middlewares. These seem like common enough use-cases that you could extend the middleware plugin api to something like:
Describe alternatives you've considered
error_middleware
api that gets called after all other routes and middleware would allow for manual handling of errors:@sentry/node
or an api to pass in a sentry instance. The above middleware solution seems more flexible and easier to maintain though, and I imagine would work well for most if not all error-reporting tools.Additional context
Thanks for verdaccio! We've had a great experience with it so far!
Beta Was this translation helpful? Give feedback.
All reactions