Sentry Integration
A (unofficial) WordPress plugin to report PHP and JavaScript errors to Sentry
by Alexander Krasnoyarov · github.com/itgalaxy/sentry-integration · website
★ 10stars
5.6kcomposer installs
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/itgalaxy/sentry-integration/archive/refs/heads/master.zipAlso on Packagist as itgalaxy/sentry-integration:
composer require itgalaxy/sentry-integrationFrom the readme
Sentry Integration
A (unofficial)
WordPress plugin to report
PHP, JavaScript and security headers (Expect-CT and X-XSS-Protection) errors
to Sentry.
Introduction
This plugin can report PHP errors (optionally), JavaScript errors
(optionally) and security headers (Expect-CT and X-XSS-Protection) (optionally)
to Sentry and integrates with its release tracking.
It will auto detect authenticated users and add context where possible. All
context/tags can be adjusted using filters mentioned below.
Usage
1. Install this plugin by cloning or copying this repository to your
wp-contents/plugins folder
2. Configure your DSN as explained below
3. Activate the plugin through the WordPress admin interface
Note: this plugin does not do anything by default and has no admin
interface. A DSN must be configured first.
Configuration
PHP tracker
Track PHP errors by adding this snippet to your wp-config.php and
replace ADDRESSYOURDSN with your actual DSN that you find in Sentry:
Note: Do not set this constant to disable the PHP tracker.
(Optionally) Set the error types the PHP tracker will track:
JavaScript tracker
Track JavaScript errors by adding this snippet to your
wp-config.php and
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.