Configuration
Everything inside the Sentry configuration key is passed to \Sentry\init().
php
return [
'Sentry' => [
'dsn' => '<sentry-dsn-url>',
'environment' => 'production',
],
];Refer to Sentry's official documentation for available options:
Ignoring Specific Exceptions
Use CakePHP's error configuration to skip noisy exceptions that should not be reported:
php
use Cake\Http\Exception\NotFoundException;
use Cake\Http\Exception\MissingControllerException;
use Cake\Routing\Exception\MissingRouteException;
return [
'Error' => [
'skipLog' => [
NotFoundException::class,
MissingRouteException::class,
MissingControllerException::class,
],
],
];See the CakePHP Cookbook error configuration for additional details.