Playground

Trigger sample logs and watch them appear in the toolbar below.

Refer to the agent-tail playground bar at the bottom of the screen which shows browser console output from this page, press buttons below to demo.

Console levels

Each button fires the corresponding console.* method.

Structured data

Log objects, arrays, and mixed arguments. Serialized to JSON in the log file.

API request simulation

Simulates REST calls with random endpoints, status codes, and timings.

Errors & stack traces

Log Error objects with stack traces, or trigger real unhandled errors.

Unhandled errors & rejections

These trigger window.onerror and unhandledrejection — caught by captureErrors and captureRejections.

App lifecycle & state changes

Interactive controls that log state transitions and user actions.

Burst & flood

Stress-test the log capture with rapid bursts. Good for testing maxBatchSize and flushInterval.

Realistic scenarios

Multi-step sequences that mimic real application flows.

Test excludes

Fire logs with known patterns, then add exclude rules in the toolbar to filter them out. Try adding [noisy] or /\\[heartbeat\\]/ as excludes.