Skip to content

Update otel dependencies and add support for httpx2 entry point - #254

Merged
Radhika Gupta (rads-1996) merged 5 commits into
microsoft:mainfrom
rads-1996:add-httpx2-entry-point
Sep 3, 2026
Merged

Update otel dependencies and add support for httpx2 entry point#254
Radhika Gupta (rads-1996) merged 5 commits into
microsoft:mainfrom
rads-1996:add-httpx2-entry-point

Conversation

@rads-1996

@rads-1996 Radhika Gupta (rads-1996) commented Sep 1, 2026

Copy link
Copy Markdown
Member

This PR addresses the following -

  • opentelemetry-instrumentation-httpx version 0.65b0 now supports httpx2, so to be able to automatically discover the HTTPX2ClientInstrumentor we now support the new entry point, while the httpx entry point will still continue to be auto-discovered.

  • Bumped the otel dependencies to the latest version

  • Bumped the minimum version for langchain-core to fix the S360 item for this package

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Performance comparison

Threshold: regressions >15.0% on gating scenarios fail the build. Higher ops/s is better; positive Δ means the PR is slower.

Scenario Gating Baseline (ops/s) Candidate (ops/s) Δ % Status
azure_monitor_log yes 22,156.2 22,270.2 -0.51%
azure_monitor_span yes 192,196.8 194,571.5 -1.22%
otel_log no 26,052.5 25,931.6 +0.47%
otel_span no 59,523.8 59,108.6 +0.70%

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The current implementation doesn’t actually enable auto-discovery of the httpx2 entry point as described, and HTTPX2 enablement errors can currently surface as httpx instrumentation failures.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates the distro’s dependency set to newer OpenTelemetry versions, and adds runtime enabling of HTTPX2ClientInstrumentor when the upstream opentelemetry-instrumentation-httpx package provides it, alongside a langchain-core minimum version bump and corresponding changelog/test updates.

Changes:

  • Bump OpenTelemetry SDK/API/exporter and instrumentation package versions (and update langchain-core minimum version).
  • Add an _setup_httpx2_instrumentation() helper and invoke it after instrumenting httpx.
  • Add a unit test covering the “HTTPX2 not available” path and update the changelog for the unreleased version.
File summaries
File Description
tests/test_httpx_instrumentation.py Adds a test ensuring HTTPX2 setup is a no-op when the import isn’t available.
src/microsoft/opentelemetry/_distro.py Calls a new helper to enable HTTPX2ClientInstrumentor after httpx instrumentation.
pyproject.toml Bumps OTel dependency versions and raises langchain-core minimum version.
CHANGELOG.md Adds an unreleased entry describing the dependency and httpx2-related changes.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/microsoft/opentelemetry/_distro.py
Comment thread src/microsoft/opentelemetry/_distro.py Outdated
Comment thread CHANGELOG.md
@rads-1996
Radhika Gupta (rads-1996) marked this pull request as draft September 3, 2026 17:57
@rads-1996
Radhika Gupta (rads-1996) marked this pull request as ready for review September 3, 2026 20:38
@rads-1996
Radhika Gupta (rads-1996) merged commit e105dff into microsoft:main Sep 3, 2026
12 checks passed
@rads-1996
Radhika Gupta (rads-1996) deleted the add-httpx2-entry-point branch September 3, 2026 22:17
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.

4 participants