Download the PHP package tigerman55/sentry-delegator without Composer
On this page you can find all versions of the php package tigerman55/sentry-delegator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tigerman55/sentry-delegator
More information about tigerman55/sentry-delegator
Files in tigerman55/sentry-delegator
Package sentry-delegator
Short Description Mezzio Delegator for Sentry
License BSD-3-Clause
Informations about the package sentry-delegator
SentryDelegator
This is a mezzio delegator for the service Sentry utilizing Sentry's latest PHP SDK. The only required config is your Sentry project DSN. You can optionally add an environment, which will automatically be registered in your expressive application. Below is an example config.
Installation
You can install SentryDelegator using Composer:
Configuration
To bind your configuration to Sentry, you'll need to invoke the following somewhere early in your application. One option, is to put this in index.php right after the container initialization.
Advanced Usage
You can roll your own error listener by implementing ErrorListenerInterface
. I've also created AsyncErrorListener
to flush errors for asynchronous applications such as react-php and swoole. You can utilize this in your config.
Sentry context is supported with this delegator. To add context, simply add the following in the appropriate middleware:
All versions of sentry-delegator with dependencies
psr/container Version ^1.0
psr/http-message Version ^1.0.1
laminas/laminas-stratigility Version ^3.1
laminas/laminas-servicemanager Version ^3.4
sentry/sdk Version ^3.1
laminas/laminas-dependency-plugin Version ^1.0||^2.0