內容簡介
DevPulse 是一款自我託管的錯誤追蹤與效能監控外掛,類似於 Sentry,但免費且可在自己的伺服器上運行。它能夠捕捉 PHP 錯誤及前端效能指標,幫助使用者提升網站穩定性與效能。
【主要功能】
• 捕捉 PHP 錯誤、警告、通知及致命錯誤
• 自動捕捉未處理的例外
• 前端核心網頁指標(LCP、INP、CLS、TTFB)
• 輕量級,後端處理器無 JS 足跡
• 可透過控制台或 wp-config.php 設定
• 與任何自我託管的 DevPulse 伺服器兼容
外掛標籤
開發者團隊
原文外掛簡介
DevPulse is a self-hosted error tracking and performance monitoring plugin for WordPress, similar to Sentry but free and running on your own server.
Features:
Captures PHP errors, warnings, notices, and fatal errors
Captures unhandled exceptions automatically
Frontend Core Web Vitals (LCP, INP, CLS, TTFB, page load) — real-user Lighthouse metrics
Lightweight — the backend handler has zero JS footprint; the vitals bundle is ~4 KB deferred
Configurable via the WordPress admin or wp-config.php constants
Works with any self-hosted DevPulse server
Privacy: All error data is sent to your own server. Nothing leaves your infrastructure.
Configuration
You can configure the plugin via Settings → DevPulse in the WordPress admin, or by defining constants in wp-config.php:
define( 'DEVPULSE_DSN', 'http://your-server:8000/api/ingest/YOUR_API_KEY' );
define( 'DEVPULSE_ENV', 'production' );
define( 'DEVPULSE_ENABLED', true );
Constants take precedence over admin settings.
Running the DevPulse server:
docker compose up -d
See the DevPulse GitHub repository for full server setup instructions.
