← Back to Pull requests

fix(otel): Recognize current names of renamed components in the DDOT converter #61272

Closed
unknown closed this pull request without merging on Nov 25, 2026 22:41 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 16:42 UTC
Author

What does this PR do?

Contrib renamed cumulativetodelta to cumulative_to_delta and hostmetrics to host_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 as cumulative_to_delta/dd-autoconfigured. The DaemonSet+Gateway exporter list also gets load_balancing, the current name of loadbalancing, and the status page's hostmetrics check accepts host_metrics.

<details>
<summary>Functional changes</summary>

| Before | After |
| --- | --- |
| Metrics pipeline exporting to Datadog that already declares cumulative_to_delta (e.g. before delta_to_rate in the kube-stack values-ddot.yaml example): the converter appended a second cumulativetodelta/dd-autoconfigured | The pipeline is left as is |
| Auto-injected processor named cumulativetodelta/dd-autoconfigured, and the collector logged that the cumulativetodelta alias is deprecated | Named cumulative_to_delta/dd-autoconfigured, no deprecation warning |
| Connected mode with a host_metrics receiver: no warning about the receiver | The usual connected-mode warning, logged at startup and shown in agent status / otel-agent status |
| DaemonSet+Gateway (otelcollector.gateway.daemonset: true), pipeline exporting through load_balancing: no processor injected | cumulative_to_delta/dd-autoconfigured is injected, as it already was for loadbalancing |

Unchanged: configs using the old names behave as before, including a pipeline that already has the cumulativetodelta/dd-autoconfigured an older converter injected. The feature key in otelcollector.converter.features is still cumulativetodelta.

</details>

Motivation

OTAGENT-1411. Seen with ddot-collector:7.85.0-rc.5 in 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/metadata package, 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_metrics warning in connected and standalone modes. TestCheckConfigWarnings covers the status page warning with host_metrics and host_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

TestHostmetricsWarning used to panic on a missing warning (assert.NotEmpty followed by [0]), aborting the remaining tests; it now uses require.NotEmpty.

🤖 Generated with Claude Code

[OTAGENT-1411]: https://datadoghq.atlassian.net/browse/OTAGENT-1411?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

Diff: 400 lines (+300 / -100) across 5 files Reviewer: mackjmr Review duration: 1798m
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
0.45
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.359
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #61272"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% 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: 44.7% (MEDIUM) · Higher = larger blast radius
44.7%
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: 17.7% · Safe to merge
17.7%