crawly/mezzio-sentry

Mezzio integration for Sentry.

v1.0.0 2020-01-03 12:50 UTC

This package is auto-updated.

Last update: 2024-11-18 06:01:17 UTC


README

Latest Stable Version Total Downloads License

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,
    ],
];