Clarify that OTLP exporter timeout bounds the entire batch export #5347
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 422 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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.362
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #5347"
general
weight: 0.35
pellared
The timeout is currently described as the maximum wait for each batch export, leaving room to read it as a fresh timeout for each request attempt. This clarifies that it is one budget for the entire batch export, including all request attempts and waits between retries. The budget starts when the export begins, never resets on retry, and yields to an earlier caller deadline, including deadlines supplied by a processor or metric reader. Once the limit is reached, the exporter stops requests and retry waits and reports failure.
For example, if a 10-second export budget has already spent 7 seconds on a request and backoff, the next attempt has at most 3 seconds remaining, or less if the caller's deadline is earlier. Connection and individual request attempt timeouts remain distinct. The 10-second default, environment variables, configuration types, and existing retry strategy are unchanged; this introduces no configuration options or retry-algorithm parameters.
The initial triage comment assumed a per-request timeout. My subsequent comment described Go's whole-export interpretation, and Jack Berg confirmed Java's interpretation and explained why the export needs a shared budget.
Historical implementations support that interpretation independently of the discussion: Go v1.28.0's gRPC client creates the export deadline before entering the retry loop; Java v1.40.0's gRPC sender and HTTP sender configure an overall OkHttp call timeout around their retry interceptor, separately from the connection timeout. Go PR #9080 aligns the HTTP exporters with this existing interpretation.
This document is Stable. The intent is to clarify the existing batch-export limit, but implementations that currently reset the timeout for each attempt will need to correct that behavior. The processor and reader specifications already describe cancellation of an export and need no normative changes. No declarative configuration schema change is needed because the configuration surface is unchanged.
Validation:
make language-analysis: passed (textlint and cspell; 188 files checked, no spelling issues).make markdownlint ALL_DOCS='CHANGELOG.md specification/protocol/exporter.md': passed.make markdown-toc-check: passed.make markdown-link-check: passed, including the canonical OpenTelemetry URL check (zero errors in both passes).git diff --check: passed; final diff reviewed.Fixes #2346.