Download the PHP package logtide/logtide-wordpress without Composer
On this page you can find all versions of the php package logtide/logtide-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download logtide/logtide-wordpress
More information about logtide/logtide-wordpress
Files in logtide/logtide-wordpress
Package logtide-wordpress
Short Description LogTide integration for WordPress
License MIT
Informations about the package logtide-wordpress
logtide/logtide-wordpress
LogTide integration for WordPress - automatic error capture, database monitoring, and breadcrumbs.
Features
- Automatic error capture via
wp_die_handlerfilter - Database query breadcrumbs with slow query detection
- HTTP API breadcrumbs for outgoing WordPress HTTP requests
- Lifecycle breadcrumbs -
wp_loaded, redirects, email sending - Plugin events - activation/deactivation tracking
- Multisite support - blog switch tracking
- WordPress error handler integration via
set_error_handler
Installation
Quick Start
Add to your plugin's main file or functions.php:
Or with separate API URL and key:
How It Works
LogtideWordPress::init() registers WordPress hooks automatically:
| Hook | What it does |
|---|---|
wp_loaded |
Records a lifecycle breadcrumb |
shutdown |
Flushes all pending logs and spans |
wp_die_handler |
Captures WP_Error and string messages |
wp_redirect |
Records redirect breadcrumbs |
wp_mail |
Records outgoing email breadcrumbs |
switch_blog |
Records multisite blog switch |
activated_plugin |
Records plugin activation |
deactivated_plugin |
Records plugin deactivation |
Integrations
WordPressIntegration
Hooks into PHP's set_error_handler to capture warnings, notices, and fatal errors.
DatabaseIntegration
Monitors $wpdb queries and records them as breadcrumbs. Highlights slow queries (configurable threshold, default 100ms).
HttpApiIntegration
Records WordPress HTTP API calls (wp_remote_get, wp_remote_post, etc.) as breadcrumbs with URL, method, and response status.
License
MIT License - see LICENSE for details.