Skip to content

Instantly share code, notes, and snippets.

@danielmcclure
Created September 17, 2019 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmcclure/dcad06cdf67b57e6f69dc9a77bd319a4 to your computer and use it in GitHub Desktop.
Save danielmcclure/dcad06cdf67b57e6f69dc9a77bd319a4 to your computer and use it in GitHub Desktop.
Sentry.io Settings for WP Config
<?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