fix(opentelemetry): support opentelemetry-exporter-otlp>=1.45.0 and python 3.15 #20728
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
gyuheon0h
Description
Part of the Python 3.15 integration parity effort
(parent tracker: #17809).
Closes #17835
This PR enables the
opentelemetryintegration on Python 3.15.opentelemetry-exporter-otlp1.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
opentelemetry-exporter-otlp1.45.0, which supports Python 3.15scripts/test-requirements lock opentelemetryand committed the regenerated locksscripts/run-tests --list tests/opentelemetry/and ran both Python 3.15 hashes with--venvsupported_versions.jsondoes not need updating because the integration version range is unchangedreleasenotes/notes/Testing
scripts/run-tests -s --venv d52a400: 146 passed, 3 skipped, 1 xpassed on Python 3.15 with the exporter installedscripts/run-tests --venv 14a90f4: 128 passed, 21 skipped, 1 xpassed on Python 3.15 with the API-only environmentscripts/run-tests -s --venv 1d07e1a -- -k test_otel_export_not_traced tests/contrib/urllib3/test_urllib3.py: passedscripts/test-requirements check: validated 2011 locksscripts/lint checks: passedRisks
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
httpbincontainer for existing network cases. The focused regression test does not require that network service and passes.Additional Notes
None.