medusa icon indicating copy to clipboard operation
medusa copied to clipboard

Feature Request - Sentry Integration

Open dwene opened this issue 3 years ago • 2 comments

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.

dwene avatar Feb 17 '22 16:02 dwene

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? :)

srindom avatar Feb 17 '22 17:02 srindom

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.

dwene avatar Feb 17 '22 18:02 dwene

Adrien built an amazing Sentry plugin here: https://github.com/adrien2p/medusa-plugins/tree/main/packages/medusa-plugin-sentry

srindom avatar Dec 12 '22 12:12 srindom