← Back to Pull requests

feat(config): read OTEL_TRACES_EXPORTER as a list and honor otlp #11303

Closed
unknown closed this pull request without merging on Nov 19, 2026 10:48 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 10:35 UTC
Author

What does this PR do?

Reads OTEL_TRACES_EXPORTER as a comma-separated list, as the OpenTelemetry spec allows, instead of rejecting any value that is not exactly otlp or none.

  • otlp anywhere in the list selects OTLP export (console,otlp).

  • none disables tracing only when it is the only entry. Combined with any other entry (none,otlp, none,console), the list is invalid: a warning is logged and the value resolves to unset (Datadog Agent).

  • Entries are trimmed and matched ignoring case, and blank entries are skipped.

  • Unsupported entries are ignored with a single warning, e.g. Unsupported exporters ignored: 'console' for OTEL_TRACES_EXPORTER (source: env_var). A list without a supported entry resolves to unset, as an invalid value did before.

  • Single values (otlp, none, unset) behave as before.
  • The list is resolved to a single otlp / none value at parse time (parseOtelExporterList), so existing consumers (OTel semantics gating, exporter selection, the no-op proxy gate in index.js) are unchanged.

    The config entry moves to registry implementation J (type: array, default: null), which documents the list semantics.

    Motivation

    OTEL_TRACES_EXPORTER was validated against ^(none|otlp)$, so console,otlp was rejected as a whole and the tracer fell back to the Datadog Agent exporter even though otlp was listed. This fails the system-tests test_otlp_in_list case added in DataDog/system-tests#8302.

    Behavior matches dd-trace-java (DataDog/dd-trace-java#13159), except for none combined with other entries, which dd-trace-java currently resolves to the other entry.

    Jira: APMAPI-2695

    Additional Notes

    [APMAPI-2695]: https://datadoghq.atlassian.net/browse/APMAPI-2695?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 236 lines (+177 / -59) across 2 files Reviewer: BridgeAR Review duration: 1453m
    All Vouch review confidence checks passed
    Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.60 · 236 lines diff across 2 files
    0.60
    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.327
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.060
    Real PR Conversation Timeline
    1 comments
    "Review active on #11303"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 60.4% (MEDIUM) · Higher = larger blast radius
    60.4%
    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: 23.8% · Safe to merge
    23.8%