ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β π browser-use/monitoring/openlit β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
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.
Install OpenLIT alongside Browser Use:
pip install openlit browser-use
OpenLIT provides automatic, comprehensive instrumentation with zero code changes beyond initialization:
from browser_use import Agent, Browser, ChatOpenAI
import asyncio
import openlit
# Initialize OpenLIT - that's it!
openlit.init()
async def main():
browser = Browser()
llm = ChatOpenAI(
model="gpt-4o",
)
agent = Agent(
task="Find the number trending post on Hacker news",
llm=llm,
browser=browser,
)
history = await agent.run()
return history
if __name__ == "__main__":
history = asyncio.run(main())
OpenLIT provides a powerful dashboard where you can:
See the complete execution tree with timing information for every span. Click on any invoke_model span to see the exact prompt sent to the LLM and the complete response with agent reasoning.
When an automation fails, you can:
import openlit
# Configure custom OTLP endpoints
openlit.init(
otlp_endpoint="http://localhost:4318",
application_name="my-browser-automation",
environment="production"
)
You can also configure OpenLIT via environment variables:
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
export OTEL_SERVICE_NAME="browser-automation"
export OTEL_ENVIRONMENT="production"
If you prefer to keep your data on-premises:
# Using Docker
docker run -d \
-p 4318:4318 \
-p 3000:3000 \
openlit/openlit:latest
# Access dashboard at http://localhost:3000
OpenLIT uses OpenTelemetry under the hood, so it integrates seamlessly with:
Simply configure OpenLIT to export to your existing OTLP-compatible endpoint.
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ