Pushes Craft CMS errors to Sentry using the up-to-date SDK.
config/sentry-sdk.php config file with the following contents:
<?php return [ 'enabled' => true, 'anonymous' => false, // Determines to log user info or not 'clientDsn' => getenv('SENTRY_DSN') ?: 'https://email@example.com/123456789', // Set as string or use environment variable. 'excludedCodes' => ['400', '404', '429'], 'release' => getenv('SENTRY_RELEASE') ?: null, // Release number/name used by sentry. ];
Based upon the sentry plugin by Luke Youell.
To install this plugin, search for its package name on the Plugin Store and click “Install”.