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:
cd /path/to/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 project:read
enabled.
Authentication tokens are available here.
A Sentry account is required, if you don't already have one click here to create one.
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.
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 [
'authToken' => '',
'project' => '',
'clientDsn' => '',
'excludedCodes' => '',
];
Some things to do, and ideas for potential features:
- Dev mode toggle
- Create project from within the CP
Brought to you by Luke Youell