Throttle error reporting (#15391)

* Throttle error reporting
Sets how frequently errors can be reported (across all pollers)
Also has the side effect of at most 1 error reported per run
To disable, set reporting.throttle to 0 (for development and testing purposes)

* Don't crash if Cache provider is unavailable, refactor
This commit is contained in:
Tony Murray
2023-10-05 17:24:28 -05:00
committed by GitHub
parent 366be4cd49
commit bec7a9f449
3 changed files with 43 additions and 2 deletions

View File

@@ -1291,6 +1291,10 @@ return [
'description' => 'Dump debug errors (Will break your install)',
'help' => 'Dump out errors that are normally hidden so you as a developer can find and fix the possible issues.',
],
'throttle' => [
'description' => 'Throttle Error Reports',
'help' => 'Reports will only be sent every specified amount of seconds. Without this if you have an error in common code reporting can get out of hand. Set to 0 to disable throttling.',
],
],
'route_purge' => [
'description' => 'Route entries older than',