← Back to Pull requests

Clarify that OTLP exporter timeout bounds the entire batch export #5347

Open
unknown opened this pull request with 422 lines diff across 5 files
View on GitHub
unknown unknown commented on Oct 07, 2026 18:05 UTC
Author

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.

    Diff: 422 lines (+316 / -106) across 5 files Reviewer: pellared Review duration: 1206m
    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
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.362
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #5347"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 45% (MEDIUM) · Higher = larger blast radius
    45%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 24% · Safe to merge
    24%