crawly / mezzio-sentry
Mezzio integration for Sentry.
v1.0.0
2020-01-03 12:50 UTC
Requires
- php: ^7.3
- laminas/laminas-stratigility: ^3.2
- psr/container: ^1.0
- psr/http-message: ^1.0
- psr/http-server-middleware: ^1.0
- sentry/sdk: ^2.0
Suggests
- mezzio/mezzio-problem-details: Problem Details for PSR-7 Applications
This package is auto-updated.
Last update: 2024-12-18 06:05:38 UTC
README
Mezzio integration for Sentry (http://getsentry.com)
Dependencies
- PHP 7.3+
Installation
Installation of MezzioSentry is only officially supported using Composer:
php composer.phar require 'crawly/mezzio-sentry'
Usage
Library configuration
If the module was not automatically registered by composer, you need to enable the module by adding it to the list of registered modules in the config/config.php file of your project.
// config/config.php $aggregator = new ConfigAggregator([ // MezzioSentry configuration \MezzioSentry\ConfigProvider::class, // ... ], $cacheConfig['config_cache_path']);
Options
Here are the all options available
Configuration file example
// config/autoload/sentry.global.php <?php return [ 'sentry' => [ 'dsn' => 'https://my-dsn@sentry.io', 'development-environment' => true, ], ];