Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Observe execute_action with lmnr

Magnus Mülleraf0487ee3801
diff --git a/browser_use/controller/registry/service.py b/browser_use/controller/registry/service.py
index bd05e510c..cfcef8bd7 100644
--- a/browser_use/controller/registry/service.py
+++ b/browser_use/controller/registry/service.py
@@ -8,6 +8,7 @@ from inspect import Parameter, iscoroutinefunction, signature
from types import UnionType
from typing import Any, Generic, Optional, TypeVar, Union, get_args, get_origin
+from lmnr import observe
from pydantic import BaseModel, Field, RootModel, create_model
from browser_use.browser import BrowserSession
@@ -308,6 +309,7 @@ class Registry(Generic[Context]):
return decorator
+ @observe(name='execute_action')
@time_execution_async('--execute_action')
async def execute_action(
self,