Add the opamp extension to DDOT and autoconfigure it in standalone mode #58861
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.69) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.69 · 471 lines diff across 5 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.368
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.069
Real PR Conversation Timeline
1 comments
"Review active on #58861"
general
weight: 0.35
truthbk
<!--Please give us some feedback on your experience writing this PR ! https://app.datadoghq.com/forms/43db4c02-6837-400c-8083-692e141b1b88 !-->
What does this PR do?
1. Bundles the OpenTelemetry
opampextensionin DDOT, viamanifest.yaml+dda inv collector.generate.2. Makes the converter autoconfigure it in standalone mode, mutually exclusive with the
datadogextension:| | connected (default) | standalone |
| --- | --- | --- |
|
datadog| injected (unchanged) | never injected ||
opamp| never injected | injected |Decisions made, and why:
datadogextension is used to report status to the backend; standalone is expected to rely on OpAMP directly. These two are mutually exclusive. Making it a free choice could allow two simultaneous reporters.opampinotelcollector.converter.features(added to the defaults) rather than always-on, so it has the same opt-out as thedatadogextension.site, withotelcollector.opamp.endpointto override.reports_raw_config: trueby default, overridable viaotelcollector.opamp.reports_raw_config. Raw reporting preserves references like${env:FOO}instead of resolving them, which is what lets the backend see a configuration's reference vocabulary. It does not widen exposure: under therawkey, literals inconfigopaquefields are still[REDACTED]; only unexpanded${...}references pass through.api_key, and reuses a user-definedopampextension rather than adding a duplicate — both inherited from the existingdatadogpaths.Motivation
DDOT standalone cannot participate in OpAMP today —
datadog/ddot-collector:7.83.1rejects the extension outright:opampextensionis not inCOMPONENTS_TO_STRIP, so bundling it is just a manifest entry. Autoconfiguring it means a standalone deployment gets a working channel without hand-writing the extension, endpoint and API-key header.Describe how you validated your changes
dda inv collector.generateanddda inv schema.codegenreproduce the committed generated files;go mod tidyleaves no drift and thereplace (...)block and VULN-100741 comment are intact.go test -tags test ./...passes incomp/otelcol/converter/implandpkg/config/setup;go vetclean; linux cross-compile ofcollector-contrib/implexit 0; all pre-commit and pre-push hooks pass.datadogalso enabled (proves the exclusion), non-default site, both overrides, no-API-key, reuse of a user-definedopamp, and connected mode (wheredatadogis injected instead).components()returns a factory forcomponent.MustNewType("opamp")passed; not kept, since the generated-component tests cover the registry shape.Additional Notes
The
opamp.<site>endpoint pattern is verified only againstus1, andreports_raw_config: truechanges what every standalone DDOT sends.There is currently no end-to-end test against a live OpAMP server. We could definitely add it, but seems like a large enough effort to warrant its own PR.