Overview
Browser Use has native integration with OpenLIT - an open-source opentelemetry-native platform that provides complete, granular traces for every task your browser-use agent performs—from high-level agent invocations down to individual browser actions. Read more about OpenLIT in the OpenLIT docs.Setup
Install OpenLIT alongside Browser Use:Usage
OpenLIT provides automatic, comprehensive instrumentation with zero code changes beyond initialization:Viewing Traces
OpenLIT provides a powerful dashboard where you can:Monitor Execution Flows
See the complete execution tree with timing information for every span. Click on anyinvoke_model span to see the exact prompt sent to the LLM and the complete response with agent reasoning.
Track Costs and Token Usage
- Cost breakdown by agent, task, and model
- Token usage per LLM call with full input/output visibility
- Compare costs across different LLM providers
- Identify expensive prompts and optimize them
Debug Failures with Agent Thoughts
When an automation fails, you can:- See exactly which step failed
- Read the agent’s thinking at the failure point
- Check the browser state and available elements
- Analyze whether the failure was due to bad reasoning or bad information
- Fix the root cause with full context
Performance Optimization
- Identify slow steps (LLM calls vs browser actions vs HTTP requests)
- Compare execution times across runs
- Optimize max_steps and max_actions_per_step
- Track HTTP request latency for page navigations
Configuration
Custom OpenTelemetry Endpoint Configuration
Environment Variables
You can also configure OpenLIT via environment variables:Self-Hosted OpenLIT
If you prefer to keep your data on-premises:Integration with Existing Tools
OpenLIT uses OpenTelemetry under the hood, so it integrates seamlessly with:- Jaeger - Distributed tracing visualization
- Prometheus - Metrics collection and alerting
- Grafana - Custom dashboards and analytics
- Datadog - APM and log management
- New Relic - Full-stack observability
- Elastic APM - Application performance monitoring