Skip to content

feat: add httpx2 instrumentation#2705

Closed
HosseinNejatiJavaremi wants to merge 1 commit into
elastic:mainfrom
HosseinNejatiJavaremi:feat/httpx2-instrumentation
Closed

feat: add httpx2 instrumentation#2705
HosseinNejatiJavaremi wants to merge 1 commit into
elastic:mainfrom
HosseinNejatiJavaremi:feat/httpx2-instrumentation

Conversation

@HosseinNejatiJavaremi

@HosseinNejatiJavaremi HosseinNejatiJavaremi commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add httpx2 instrumentation mirroring existing httpx support
  • Instrument httpx2.Client.send and httpx2.AsyncClient.send for external HTTP spans
  • Instrument httpcore2 for distributed tracing header propagation
  • Gate registration to Python 3.10+ (httpx2 requirement)
  • Add tests, CI matrix entry, and supported-technologies docs

Closes #2696

Test plan

  • pytest -m httpx2 tests/instrumentation/httpx2_tests.py tests/instrumentation/asyncio_tests/httpx2_tests.py (18 passed)

@HosseinNejatiJavaremi
HosseinNejatiJavaremi requested a review from a team as a code owner July 14, 2026 13:04
@cla-checker-service

cla-checker-service Bot commented Jul 14, 2026

Copy link
Copy Markdown

❌ Author of the following commits did not sign a Contributor Agreement:
c3944c8

Please, read and sign the above mentioned agreement if you want to contribute to this project

@github-actions

Copy link
Copy Markdown

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions github-actions Bot added agent-python community Issues opened by the community triage Issues awaiting triage labels Jul 14, 2026
@HosseinNejatiJavaremi
HosseinNejatiJavaremi force-pushed the feat/httpx2-instrumentation branch from 90f6b0f to 7fd0109 Compare July 14, 2026 13:12
Closes elastic#2696

Mirror httpx/httpcore instrumentation for httpx2/httpcore2 with
sync/async Client.send spans, distributed tracing header injection,
tests, docs, and CI (Python 3.10+).
@HosseinNejatiJavaremi
HosseinNejatiJavaremi force-pushed the feat/httpx2-instrumentation branch from 7fd0109 to c3944c8 Compare July 14, 2026 13:16
@HosseinNejatiJavaremi

Copy link
Copy Markdown
Contributor Author

Closing to reopen with a clean commit (CLA fix).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-python community Issues opened by the community triage Issues awaiting triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support httpx2 instrumentation

1 participant