Revert "fix: instrument httpx client at module level for MCP context"

This reverts commit 48cb4be4cd.
This commit is contained in:
phernandez
2025-10-08 09:07:26 -05:00
parent 48cb4be4cd
commit 453cba94e4
-12
View File
@@ -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")