From 23186d58058465d9f5357c53dab626607a7b39fd Mon Sep 17 00:00:00 2001 From: Andrii Afanasiev Date: Mon, 9 Apr 2018 11:19:08 +0200 Subject: [PATCH] update docs --- Resources/doc/configuration.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Resources/doc/configuration.rst b/Resources/doc/configuration.rst index 2263202..51e4893 100755 --- a/Resources/doc/configuration.rst +++ b/Resources/doc/configuration.rst @@ -93,6 +93,38 @@ Here you can description of some important configuration options for RollBar. ``root``: Path to your project's root dir. Default ``%kernel.root_dir%`` +``checkIgnore``: Function called before sending payload to Rollbar, return true to stop the error from being sent to Rollbar. + +Use globally defined function: + +.. code-block:: yaml + + symfony_rollbar: + # ... + rollbar: + # ... + checkIgnore: 'function_name_here' + +Use custom ``CheckIgnoreProvider`` class that should implements ``InterfaceCheckIgnore``: + +.. code-block:: yaml + + symfony_rollbar: + # ... + rollbar: + # ... + checkIgnore: '\SymfonyRollbarBundle\Tests\Fixtures\CheckIgnoreProvider' + +Use custom ``CheckIgnoreProvider`` service that class should implements ``InterfaceCheckIgnore``: + +.. code-block:: yaml + + symfony_rollbar: + # ... + rollbar: + # ... + checkIgnore: 'awesome_app.rollbar_check_ignore_provider' + RollBar - Person Tracking -------------------------