I would like to integrate Sentry to my Expressive application and wonder what would be the best way to do this ?
stickeeuk/zend-expressive-sentry (and its forks) but it uses an outdated version of the “Sentry PHP package” ; so this is not really an option.
The last version is here: https://github.com/getsentry/sentry-php
My idea was just to create a new Middleware that would initiate Sentry but it doesn’t work (and was probably just a - too - naive way to do this).
If I could just initiate Sentry, I would already be more than happy but I think it would be even better if Sentry was only enable in “producation mode” (when
$config['debug'] = false;) and have only Whoops enabled in “development mode” (when
$config['debug'] = true;).
Does anyone have a idea on how to do this properly or could give me some tips ?
Thanks a lot