Allows creating dynamic custom data on runtime during error reporting.
Use globally defined function:
symfony_rollbar:
# ...
rollbar:
# ...
custom_data_method: 'custom_data_funcion'
Use custom CustomDataProvider
class that should implements InterfaceCustomData
:
symfony_rollbar:
# ...
rollbar:
# ...
custom_data_method: '\SymfonyRollbarBundle\Tests\Fixtures\CustomDataProvider'
Use custom CustomDataProvider
service that class should implements InterfaceCustomData
:
symfony_rollbar:
# ...
rollbar:
# ...
custom_data_method: 'awesome_app.rollbar_custom_data_method'