Skip to content

BeApp/beapp.library.bugsnag-symfony-ext.web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extensions for Bugsnag Symfony

This library provides middleware and listeners to fit our own specific uses of Bugsnag.

Requirements

  • PHP >= 8.0
  • symfony >= 5.0
  • bugsnag/bugsnag-symfony >= 1.8

Installation

composer require beapp/bugsnag-symfony-ext

Add the following configuration :

bugsnag_ext:
  handled_exceptions:
    - 'App\Exception\LogicException'
  excluded_exceptions:
    - 'App\Exception\NotSoImportantException'
  excluded_http_codes: ["4xx", 301]
  session_per_request: true

Features

  • handled_exceptions : The exceptions matching one these will be forced to be notified as handled on Bugsnag platform
  • excluded_exceptions : Ignore some specific exceptions
  • excluded_http_codes : Ignore exceptions matching specific Http response status code. Use "x" as a placeholder for any number.
  • session_per_request : Register a listener to start a session for every request

About

Extensions for Bugsnag Symfony

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages