← Back to Pull requests

fix(opentelemetry): support opentelemetry-exporter-otlp>=1.45.0 and python 3.15 #20728

Closed
unknown closed this pull request without merging on Oct 15, 2026 19:59 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 19:26 UTC
Author

Description

Part of the Python 3.15 integration parity effort
(parent tracker: #17809).

Closes #17835

This PR enables the opentelemetry integration on Python 3.15.

opentelemetry-exporter-otlp 1.45.0 supports Python 3.15 and changes its default HTTP transport from requests to urllib3. This adds the Python 3.15 API and exporter environments, regenerates their locks, adapts the exporter tests to both transports, and prevents OTLP urllib3 requests from generating client spans.

Checklist

  • Resolved the latest exporter environment to opentelemetry-exporter-otlp 1.45.0, which supports Python 3.15

  • Lifted the Python 3.14 cap on the affected venvs

  • Ran scripts/test-requirements lock opentelemetry and committed the regenerated locks

  • Listed the suite with scripts/run-tests --list tests/opentelemetry/ and ran both Python 3.15 hashes with --venv

  • Confirmed supported_versions.json does not need updating because the integration version range is unchanged

  • Added a release note under releasenotes/notes/
  • Testing

  • scripts/run-tests -s --venv d52a400: 146 passed, 3 skipped, 1 xpassed on Python 3.15 with the exporter installed

  • scripts/run-tests --venv 14a90f4: 128 passed, 21 skipped, 1 xpassed on Python 3.15 with the API-only environment

  • scripts/run-tests -s --venv 1d07e1a -- -k test_otel_export_not_traced tests/contrib/urllib3/test_urllib3.py: passed

  • scripts/test-requirements check: validated 2011 locks

  • scripts/lint checks: passed

  • Dependency-direction and circular-import analysis found no new violations
  • Risks

    OpenTelemetry 1.45 changes the default HTTP transport from requests to urllib3. The tests cover both the older requests path and the new urllib3 path, including the no-self-tracing behavior.

    The full local urllib3 suite was also attempted, but the local test runner could not resolve its httpbin container for existing network cases. The focused regression test does not require that network service and passes.

    Additional Notes

    None.

    Diff: 256 lines (+192 / -64) across 3 files Reviewer: gyuheon0h Review duration: 20192m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 256 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20728"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.1% (MEDIUM) · Higher = larger blast radius
    39.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%