Skip to content
bliptracedocs

Install an SDK

WordPress

A WordPress plugin that reports uncaught exceptions and fatal errors, built on bliptrace/php.

On this page

The Bliptrace plugin registers two PHP handlers on plugins_loaded: one for uncaught exceptions (sent as error) and a shutdown function that reports genuine fatal errors (sent as fatal). Warnings and notices are ignored. PHP 8.2+.

Install from GitHub. The plugin is not in the WordPress directory or on Packagist yet. Source: github.com/bliptrace/bliptrace-wordpress.

Install

cd wp-content/plugins
git clone https://github.com/bliptrace/bliptrace-wordpress g8scope
cd g8scope && composer install --no-dev

Then activate g8scope in wp-admin → Plugins. If you deploy a built copy that already contains vendor/, just copy the folder to wp-content/plugins/g8scope/.

Configure

Constants in wp-config.php are the recommended way, and always win over stored options:

define('BLIPTRACE_KEY', 'blip_your_key_here');                 // required
define('BLIPTRACE_ENDPOINT', 'https://ingest.bliptrace.com');
define('BLIPTRACE_ENVIRONMENT', 'production');
define('BLIPTRACE_RELEASE', '1.4.2');
define('BLIPTRACE_ENABLED', true);

Without a key the plugin stays dormant. You can also store settings in the g8scope_options option (keys: key, endpoint, environment, release, enabled, timeout, scrub_keys, ignore_exceptions, base_path).

The authorization and cookie headers are removed before anything leaves the server.

Documentation