feat(config): read OTEL_TRACES_EXPORTER as a list and honor otlp #11303
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
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.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
BridgeAR
What does this PR do?
Reads
OTEL_TRACES_EXPORTERas a comma-separated list, as the OpenTelemetry spec allows, instead of rejecting any value that is not exactlyotlpornone.otlpanywhere in the list selects OTLP export (console,otlp).nonedisables 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).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.otlp,none, unset) behave as before.The list is resolved to a single
otlp/nonevalue at parse time (parseOtelExporterList), so existing consumers (OTel semantics gating, exporter selection, the no-op proxy gate inindex.js) are unchanged.The config entry moves to registry implementation
J(type: array,default: null), which documents the list semantics.Motivation
OTEL_TRACES_EXPORTERwas validated against^(none|otlp)$, soconsole,otlpwas rejected as a whole and the tracer fell back to the Datadog Agent exporter even thoughotlpwas listed. This fails the system-teststest_otlp_in_listcase added in DataDog/system-tests#8302.Behavior matches dd-trace-java (DataDog/dd-trace-java#13159), except for
nonecombined 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