Mezzio integration for Sentry (http://getsentry.com)
- PHP 7.3+
Installation of MezzioSentry is only officially supported using Composer:
php composer.phar require 'crawly/mezzio-sentry'
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']);
Here are the all options available
Option name | Default | Description |
---|---|---|
dsn | @$_SERVER['sentry_dsn'] |
Get Sentry DSN from a environment variable |
development-environment | false | Enable or disable in development environment |
// config/autoload/sentry.global.php
<?php
return [
'sentry' => [
'dsn' => 'https://[email protected]',
'development-environment' => true,
],
];