Skip to content

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

Refactor observability import in browser profile module

Magnus Müller6cf09effbc76
diff --git a/browser_use/browser/profile.py b/browser_use/browser/profile.py
index a5caf17b6..9bf836227 100644
--- a/browser_use/browser/profile.py
+++ b/browser_use/browser/profile.py
@@ -7,12 +7,12 @@ from re import Pattern
from typing import Annotated, Any, Literal, Self
from urllib.parse import urlparse
-from observability import observe_debug
from pydantic import AfterValidator, AliasChoices, BaseModel, ConfigDict, Field, model_validator
from uuid_extensions import uuid7str
from browser_use.browser.types import ClientCertificate, Geolocation, HttpCredentials, ProxySettings, ViewportSize
from browser_use.config import CONFIG
+from browser_use.observability import observe_debug
from browser_use.utils import _log_pretty_path, logger
CHROME_DEBUG_PORT = 9242 # use a non-default port to avoid conflicts with other tools / devs using 9222