logging, metrics, and observability integration
Integrates structured logging and metrics collection throughout Stagehand's execution, tracking action execution, LLM calls, cache hits/misses, and performance metrics. Logs are emitted at configurable levels (debug, info, warn, error) and can be routed to external observability systems (DataDog, New Relic, etc.). Metrics include latency per operation, token usage, cost, and success rates, enabling performance monitoring and cost optimization.
Unique: Provides structured logging and metrics collection integrated throughout Stagehand's execution, with support for external observability platforms. Unlike generic logging, Stagehand's metrics are automation-specific (cache hits, LLM calls, action latency).
vs alternatives: More comprehensive than ad-hoc logging because it covers all operations systematically, and more actionable than raw logs because it includes structured metrics.