From 453cba94e4688b5b4e7cb36ba466b44cc8df570b Mon Sep 17 00:00:00 2001 From: phernandez Date: Wed, 8 Oct 2025 09:07:26 -0500 Subject: [PATCH] Revert "fix: instrument httpx client at module level for MCP context" This reverts commit 48cb4be4cdbecd6bddf283d7f1b4b7b925ee6218. --- src/basic_memory/mcp/async_client.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/basic_memory/mcp/async_client.py b/src/basic_memory/mcp/async_client.py index 62f4403a..905b12f8 100644 --- a/src/basic_memory/mcp/async_client.py +++ b/src/basic_memory/mcp/async_client.py @@ -38,15 +38,3 @@ def create_client() -> AsyncClient: # Create shared async client client = create_client() - -# Instrument client for distributed tracing when in cloud mode -# This must happen AFTER client creation and works in both MCP and API contexts -config = ConfigManager().config -if config.cloud_mode_enabled: - try: - import logfire # pyright: ignore[reportMissingImports] - - logger.info("Cloud mode: instrumenting httpx client for distributed tracing") - logfire.instrument_httpx(client=client) - except ImportError: - logger.warning("logfire not available - skipping httpx instrumentation")