marcopollacci/mezzio-sentrydelegator

Utility to connect Mezzio to Sentry

1.0.1 2020-01-19 10:29 UTC

This package is auto-updated.

Last update: 2024-04-19 19:38:51 UTC


README

Build Status Maintainability Latest Stable Version Total Downloads License composer.lock

Average time to resolve an issue Percentage of issues still open

Sentry Delegator for Mezzio - Lamisas Framework

Install by Composer

composer require marcopollacci/mezzio-sentrydelegator

Usage

  1. Set at your config file with sentry token and dsn (if no config given, no exception send to sentry). Es:
return [
    'sentry' => [
        'dsn' => 'https://<your url>>/<your id>',
        'environment' => 'produzione' #optional
    ]
];
  1. Enjoy it :D!

Additional usage in try / catch statament

Code Example

        try {
            throw new \Exception('something');
        }catch(\Exception $e){
            \Sentry\captureException($e);
            /* something else you want */
        }