Skip to content

Conversation

@farrelmahaztra
Copy link
Contributor

@farrelmahaztra farrelmahaztra commented Dec 23, 2025

Note

Expands auto-instrumentation beyond httpx to also cover aiohttp, ensuring trace and auth headers are injected for HUD endpoints.

  • Adds _patch_aiohttp that monkey-patches aiohttp.ClientSession with a TraceConfig.on_request_start hook to inject trace headers and Authorization for HUD URLs
  • Refactors httpx instrumentation to _instrument_httpx_client and retains auto-patching of httpx clients
  • Auto-patches both libraries on module import; updates __all__; minor typing improvements (TYPE_CHECKING, SimpleNamespace)

Written by Cursor Bugbot for commit 63576fe. This will update automatically on new commits. Configure here.

@farrelmahaztra farrelmahaztra changed the title Use httpx client for Gemini Fix Gemini instrumentation Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants