Created
September 17, 2019 21:04
-
-
Save danielmcclure/dcad06cdf67b57e6f69dc9a77bd319a4 to your computer and use it in GitHub Desktop.
Sentry.io Settings for WP Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sentry.io Settings for WP Config | |
* Enables features and settings for the WordPress Sentry plugin for Sentry.io | |
* Plugin URI: https://wordpress.org/plugins/wp-sentry-integration/ | |
*/ | |
// Delete and customise as appropriate, replacing _YOUR_DSN_ with you actual DSN from Sentry.io | |
define( 'WP_SENTRY_DSN', '_YOUR_DSN_' ); // Enable PHP Tracker | |
define( 'WP_SENTRY_ERROR_TYPES', E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_USER_DEPRECATED ); // Select allowed Error Types | |
define( 'WP_SENTRY_DEFAULT_PII', true ); // Uncomment to enable PII logging | |
define( 'WP_SENTRY_PUBLIC_DSN', '_YOUR_DSN_' ); // Enable JS Tracker | |
define( 'WP_SENTRY_VERSION', 'v3.0.0' ); // Set current version - Pulled from theme otherwise | |
define( 'WP_SENTRY_ENV', 'production' ); // Set environment for logging purposes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment