Skip to content

Commit 453cba9

Browse files
committed
Revert "fix: instrument httpx client at module level for MCP context"
This reverts commit 48cb4be.
1 parent 48cb4be commit 453cba9

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/basic_memory/mcp/async_client.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,3 @@ def create_client() -> AsyncClient:
3838

3939
# Create shared async client
4040
client = create_client()
41-
42-
# Instrument client for distributed tracing when in cloud mode
43-
# This must happen AFTER client creation and works in both MCP and API contexts
44-
config = ConfigManager().config
45-
if config.cloud_mode_enabled:
46-
try:
47-
import logfire # pyright: ignore[reportMissingImports]
48-
49-
logger.info("Cloud mode: instrumenting httpx client for distributed tracing")
50-
logfire.instrument_httpx(client=client)
51-
except ImportError:
52-
logger.warning("logfire not available - skipping httpx instrumentation")

0 commit comments

Comments
 (0)