Sentry PHP Playground

toko.314playground.com · klik tombol untuk kirim event test ke Sentry

captureException terkirim dengan tag, extra, & user context. Event ID: 5cfbc0a9d54f49e6836ad215c5ad6736

1. Uncaught Exception

Throw RuntimeException tanpa try-catch. Halaman akan error 500, Sentry capture otomatis via shutdown handler.

Trigger uncaught exception

2. Manual captureMessage

Kirim pesan log custom (severity: info) ke Sentry. Halaman tetap render normal.

Send captureMessage

3. Manual captureException + Context

Try-catch LogicException, lampirkan tag demo_scenario, extra triggered_at, dan user context.

Send captureException

4. PHP E_USER_WARNING

Trigger PHP warning lewat trigger_error(). Sentry error handler akan menangkapnya.

Trigger PHP warning