fix(otel): Recognize current names of renamed components in the DDOT converter #61272
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 400 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.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #61272"
general
weight: 0.35
mackjmr
What does this PR do?
Contrib renamed
cumulativetodeltatocumulative_to_deltaandhostmetricstohost_metrics, keeping the old names as deprecated aliases. The DDOT converter only matched the old names. It now matches both when it looks up a component by type, and injects the processor ascumulative_to_delta/dd-autoconfigured. The DaemonSet+Gateway exporter list also getsload_balancing, the current name ofloadbalancing, and the status page's hostmetrics check acceptshost_metrics.<details>
<summary>Functional changes</summary>
| Before | After |
| --- | --- |
| Metrics pipeline exporting to Datadog that already declares
cumulative_to_delta(e.g. beforedelta_to_ratein the kube-stackvalues-ddot.yamlexample): the converter appended a secondcumulativetodelta/dd-autoconfigured| The pipeline is left as is || Auto-injected processor named
cumulativetodelta/dd-autoconfigured, and the collector logged that thecumulativetodeltaalias is deprecated | Namedcumulative_to_delta/dd-autoconfigured, no deprecation warning || Connected mode with a
host_metricsreceiver: no warning about the receiver | The usual connected-mode warning, logged at startup and shown inagent status/otel-agent status|| DaemonSet+Gateway (
otelcollector.gateway.daemonset: true), pipeline exporting throughload_balancing: no processor injected |cumulative_to_delta/dd-autoconfiguredis injected, as it already was forloadbalancing|Unchanged: configs using the old names behave as before, including a pipeline that already has the
cumulativetodelta/dd-autoconfiguredan older converter injected. The feature key inotelcollector.converter.featuresis stillcumulativetodelta.</details>
Motivation
OTAGENT-1411. Seen with
ddot-collector:7.85.0-rc.5in standalone mode with a config using the new names.The alias names are hard-coded in a small map instead of read from the factories: they live in each component's
internal/metadatapackage, which the converter module can't import, and reading them from the factories would add contrib dependencies to the converter. The next rename the converter cares about needs one entry there.Describe how you validated your changes
Converter unit tests cover old and new names for each case: plain and named instances, the instance injected by this or an older converter, the DaemonSet+Gateway path, and the
host_metricswarning in connected and standalone modes.TestCheckConfigWarningscovers the status page warning withhost_metricsandhost_metrics/production. With the alias map emptied, every old-name case fails. The E2E expected configs are updated for the new processor name but weren't run locally.Additional Notes
TestHostmetricsWarningused to panic on a missing warning (assert.NotEmptyfollowed by[0]), aborting the remaining tests; it now usesrequire.NotEmpty.🤖 Generated with Claude Code
[OTAGENT-1411]: https://datadoghq.atlassian.net/browse/OTAGENT-1411?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ