Sentry support?
Opened this issue · 0 comments
ebebbington commented
More of a discussion
I think it'd be great to somehow add sentry support to drash applications. This will show even more so that drash can be used in prod and people can switch our their apps for a drash server
I initially thought of it as a service, but a service can't wrap the lifecycle in a try catch, so my new idea would be to bake it in drash itself, which imo has its benefits and drawbacks:
Benefit
- Sentry could be used for any app built with drash: api, web app etc
Drawback
- Could bloat codebase
- Could require a lot of code, but i guess this could be abstracted into a separate file, we import it and just call a method if an exception is thrown and the onfig opt is set