Merge Cyrille's DDOT SDK branch into main with a flow env var #412
<!-- codex-pull-request-review-summary -->
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
| --- | --- | --- | --- |
| 📝 Code Review | ✅ Completed <relative-time datetime="2026-10-02T09:25:28.671333Z">2026-10-02T09:25:28.671333Z</relative-time> | 0a5d537 | New commits |
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
</details>
<sub><sub>!P2 Badge</sub></sub> Remove the Datadog Agent when selecting upstream
When ./install is rerun on an existing DDOT installation with DD_INSTALL_FLOW=upstream, this conditional simply skips the Agent upgrade; it never uninstalls the separate ddagent-kube-stack Helm release. The Agent DaemonSet therefore continues running and sending telemetry despite the installation now being configured for the upstream flow. Add an upstream cleanup path for the Agent release, as the separate cleanup already performed by uninstall demonstrates is required.
Useful? React with 👍 / 👎.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7ea27a6240
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
</details>
I feel like the way to change the install flow should be to run uninstall and then install, otherwise this will get unwieldy.
Nit: why are these exported?
Nit: Why not put datadog/connector where span_metrics is in metrics/span_metrics? Shouldn't change anything but it's weird to apply these three processors to its output
Nit: Is Exporter orthogonal to DDOT, or could it be determined based on it?
Nit: Isn't there already a workaround for that in one of the YAML files?
The host-profiler should be installed regardless of the selected DD_INSTALL_FLOW (while still giving the user the choice to opt out via the existing cli prompt).
Right now, we don't have a viable upstream alternative to the eBPF profiler because upstream is prone to frequent regressions. The host-profiler is essentially a wrapper that adds testing to ensure we ship a stable version. Furthermore, host-profiler itself is a fully configurable OTel distribution, just like any other.
Here is a more detailed explanation of why we do not support the upstream profiler right now and why host-profiler should be present in both flows: https://dd.slack.com/archives/C06F2EP2SDA/p1789139615767619?thread_ts=1788344651.328959&cid=C06F2EP2SDA
Looks good, just a few questions it's fine to address later
This field is used on the template, and text/template requires that the fields it uses are exported:
unlike with field names they do not need to start with an upper case letter
(a bit of a weird quote, it's not documented explicitly in the fields docs but I think it is clear enough). I assume it uses reflect in some way.
can we get rid of this workaround? at least for Java we bumped the sdk version and benefit the fix, I don't know for other languages.
<sub><sub>!P2 Badge</sub></sub> Disable the Agent's remaining Kubernetes collectors
For every ddot installation, processAgent.enabled: false does not achieve the stated goal of leaving Kubernetes monitoring to the OpenTelemetry collectors. The checked-in render in examples-datadog-agent/default/rendered/daemonset.yaml still sets DD_PROCESS_CONFIG_CONTAINER_COLLECTION_ENABLED, DD_PROCESS_AGENT_DISCOVERY_ENABLED, DD_CONTAINER_LIFECYCLE_ENABLED, DD_CONTAINER_IMAGE_ENABLED, and DD_KUBELET_CORE_CHECK_ENABLED to true, so the Agent continues collecting kubelet/container telemetry already handled by the OTel daemon. Explicitly disable these core-Agent Kubernetes collection features while retaining only those required for dynamic instrumentation.
Useful? React with 👍 / 👎.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a5d537127
<details> <summary>ℹ️ About Codex in GitHub</summary>
<br/>
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
</details>
jade-guiton-dd
mx-psi
What does this PR do?
<!--
A brief description of the change being made with this pull request.
If the description here cannot be expressed in a succinct form, consider
opening multiple pull requests instead of a single one.
-->
Introduces a new
DD_INSTALL_FLOWvariable that can be set toupstreamorddotand that, when set toddot, reproduces the behavior oncyrille-leclerc/ddot-sdks-injectionbranch's install script.Motivation
<!--
What inspired you to submit this pull request?
Link any related GitHub issues or PRs here.
-->
Make sure we work on a single branch and don't duplicate efforts. Make sure users have an easy time choosing between the two flows.
Notes on reviewing this PR
This PR is huge, sorry. I have tried to split some parts but it's unavoidable that some parts are big. Changes on the
examplesfolder are autogenerated and so can be only skimmed through/ignored.I have tried so that commits are atomic. I asked Claude to add references to the commits on the original branch the changes refer to, I have not checked every reference but the spot checks I did check out and may be useful for context.