Sentry plugin for Craft CMS 3.x
Error tracking that helps developers monitor and fix crashes in real time. Iterate continuously. Boost efficiency. Improve user experience.
This plugin requires Craft CMS 3.0.0-RC11, or later.
To install the plugin, follow these instructions.
Open your terminal and go to your Craft project:
Then tell Composer to load the plugin:
composer require lukeyouell/craft-sentry
In the Control Panel, go to Settings → Plugins and click the “Install” button for Sentry.
Upon successful installation you will be required to supply an authentication token with
Free & paid plans are available.
After entering your Sentry authentication token, you will be required to select a Project along with a corresponding Client DSN.
Overriding Plugin Settings
If you create a config file in your
config folder called
sentry.php, you can override the plugin’s settings in the Control Panel. Since that config file is fully multi-environment aware, this is a handy way to have different settings across multiple environments.
Here’s what that config file might look like along with a list of all of the possible values you can override.
<?php return [ 'enabled' => true, 'authToken' => '', 'project' => '', 'clientDsn' => '', 'excludedCodes' => '', ];
false will stop the plugin from capturing exceptions and reporting them to Sentry.
Some things to do, and ideas for potential features:
- Create project from within the CP
Brought to you by Luke Youell