Skip to content

Commit 23186d5

Browse files
author
Andrii Afanasiev
committed
update docs
1 parent 9f0f019 commit 23186d5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Resources/doc/configuration.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,38 @@ Here you can description of some important configuration options for RollBar.
9393

9494
``root``: Path to your project's root dir. Default ``%kernel.root_dir%``
9595

96+
``checkIgnore``: Function called before sending payload to Rollbar, return true to stop the error from being sent to Rollbar.
97+
98+
Use globally defined function:
99+
100+
.. code-block:: yaml
101+
102+
symfony_rollbar:
103+
# ...
104+
rollbar:
105+
# ...
106+
checkIgnore: 'function_name_here'
107+
108+
Use custom ``CheckIgnoreProvider`` class that should implements ``InterfaceCheckIgnore``:
109+
110+
.. code-block:: yaml
111+
112+
symfony_rollbar:
113+
# ...
114+
rollbar:
115+
# ...
116+
checkIgnore: '\SymfonyRollbarBundle\Tests\Fixtures\CheckIgnoreProvider'
117+
118+
Use custom ``CheckIgnoreProvider`` service that class should implements ``InterfaceCheckIgnore``:
119+
120+
.. code-block:: yaml
121+
122+
symfony_rollbar:
123+
# ...
124+
rollbar:
125+
# ...
126+
checkIgnore: 'awesome_app.rollbar_check_ignore_provider'
127+
96128
97129
RollBar - Person Tracking
98130
-------------------------

0 commit comments

Comments
 (0)