feat(sdk): add httpx instrumentation support#4070
feat(sdk): add httpx instrumentation support#4070Jwrede wants to merge 1 commit intotraceloop:mainfrom
Conversation
Register opentelemetry-instrumentation-httpx in the traceloop SDK so that outbound HTTP calls made via httpx are automatically traced, matching existing requests/urllib3 instrumentation. Signed-off-by: Jonathan Wrede <wrede.jonathan00@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdded HTTPX instrumentation support to the Traceloop SDK by introducing a new ChangesHTTPX Instrumentation Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
Summary
Closes #2283
Adds httpx instrumentation to the traceloop SDK, allowing automatic tracing of outbound HTTP calls made via httpx. This mirrors the existing requests and urllib3 instrumentation already supported by the SDK.
Changes
HTTPX = "httpx"enum value toInstrumentsinit_httpx_instrumentor()function usingHTTPXClientInstrumentorwithexcluded_urlsfiltering (same as requests/urllib3)opentelemetry-instrumentation-httpx>=0.59b0dependency to pyproject.tomlTest plan
Summary by CodeRabbit