medusa
medusa copied to clipboard
Feature Request - Sentry Integration
We use Sentry (https://sentry.io/) to keep track of error logs and uncaught exceptions. It would be really nice if there was a plugin that we could use to plug that into sentry, so we are notified when things fail internally.
This is a great idea!
I wonder if a nice generic approach to this would be to open up for allowing middleware registrations on the express server?
Alternatively we would have to come up with a hook that would be called when errors are thrown - would love to hear your thoughts? :)
Yea, I think allowing generic middleware registrations in express would be nice! I think I would also want to hook into the Medusa logger, so any error logs sent there would make it into our sentry too.
Adrien built an amazing Sentry plugin here: https://github.com/adrien2p/medusa-plugins/tree/main/packages/medusa-plugin-sentry