Skip to content

Update .NET operator image version and ensure EDOT is used - #17451

Merged
swiatekm merged 1 commit into
mainfrom
operator-edot-dotnet
Nov 5, 2026
Merged

swiatekm merged 1 commit into
mainfrom
operator-edot-dotnet

Conversation

@stevejgordon

@stevejgordon stevejgordon commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

OTel instrumentation only enables the EDOT registrations through the plugin mechanism. This is currently missing so essentially runs without the EDOT features.

Related issues

N/A

Risk

  • Low: isolated change, no effect on Fleet connectivity, policy handling, or upgrades
  • Medium: changes existing behavior, but is feature flagged or a failure does not affect Fleet connectivity, policy handling, or upgrades
  • High: touches Fleet connectivity, policy application, upgrade/rollback, installation, or changes defaults for existing users

I chose high as it changes a default but the impact is to fix a bug where the expected outcome is not occuring.

Rationale

The operator does not propagate the instrumentation image’s environment, leaving the EDOT .NET plugin unloaded. Update the image to 1.6.1 and explicitly configure  OTEL_DOTNET_AUTO_PLUGINS  in both kube-stack values variants.

Rollout and safety

N/A - Changes .NET auto-instrumentation defaults for newly created pods only. Fleet connectivity and agent lifecycle are unaffected. No persisted-format changes; previous chart values can be restored.

Testing

I had Opus 5.5 extend the existing Java test coverage to do the same for .NET so we can validate that this works effectively.

@stevejgordon
stevejgordon requested a review from a team as a code owner October 23, 2026 08:12
@stevejgordon
stevejgordon requested a review from lorienhu October 23, 2026 08:12
@stevejgordon stevejgordon added the bug Something isn't working label Oct 23, 2026
@mergify

mergify Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label. Could you fix it @stevejgordon? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@stevejgordon stevejgordon added the backport-active-all Automated backport with mergify to all the active branches label Oct 23, 2026
@swiatekm

Copy link
Copy Markdown
Member

The dotnet version is updated in #14011. We can limit this PR just to the instrumentation change.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@mergify

mergify Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b operator-edot-dotnet upstream/operator-edot-dotnet
git merge upstream/main
git push upstream operator-edot-dotnet

@stevejgordon
stevejgordon requested a review from a team as a code owner October 23, 2026 11:01
@stevejgordon

Copy link
Copy Markdown
Contributor Author

@swiatekm I've rebased. There's still a bump to 1.6.1 here which fixed some future issues for the operator image. I've let AI agents figure out how to introduce tests for this. I've done a basic pass but welcome input for someone experienced in Go and this repo as to whether the ideas are sound. Hopefully the tess run through this time.

@mergify

mergify Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b operator-edot-dotnet upstream/operator-edot-dotnet
git merge upstream/main
git push upstream operator-edot-dotnet

@stevejgordon

Copy link
Copy Markdown
Contributor Author

@swiatekm - Would you be able to take another look and approve please?

Comment thread .buildkite/hooks/post-checkout Resolved
@stevejgordon
stevejgordon requested a review from swiatekm November 4, 2026 08:59
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

TL;DR

This Buildkite run is failing due to a deterministic dependency metadata drift: github.com/elastic/ebpfevents is required via Beats but missing from internal/edot/go.sum (and internal/edot/go.mod), which then breaks EDOT tests, packaging, and check-ci.

Remediation

  • In the PR branch, run mage tidy (or cd internal/edot && go mod tidy) and commit the resulting updates to internal/edot/go.mod and internal/edot/go.sum.
  • Ensure the intended beats submodule gitlink is committed in the PR (no local drift), then re-run Buildkite.
Investigation details

Root Cause

Primary failure class: Dependency issue.

All 9 failed jobs converge on the same error from Beats-internal imports used by EDOT builds/tests:

  • ../../beats/libbeat/ebpf/watcher_linux.go:27:2: missing go.sum entry for module providing package github.com/elastic/ebpfevents

check-ci confirms this is repo-state drift, not a transient infra flake:

  • it exits with modified files: beats, internal/edot/go.mod, internal/edot/go.sum
  • logged diff includes adding github.com/elastic/ebpfevents v0.12.0 to internal/edot/go.mod and matching checksums to internal/edot/go.sum.

So EDOT unit tests + package jobs fail first on unresolved module metadata, and check-ci fails because generated dependency updates are not committed.

Evidence

  • Build: https://buildkite.com/elastic/elastic-agent/builds/49464
  • Jobs:
    • EDOT unit tests - Ubuntu 22.04
    • EDOT unit tests - fips140=only Ubuntu 22.04
    • check-ci
    • all package jobs (linux/amd64, arm64, containers, fips variants)
  • Key excerpts:
    • missing go.sum entry for module providing package github.com/elastic/ebpfevents
    • Modified: [beats internal/edot/go.mod internal/edot/go.sum]

Verification

  • Local rerun: not run (this workflow is log/code investigation only).

Follow-up

  • Checked for an existing flaky-test tracker matching this failure mode; no matching open flaky-test issue was found. This looks deterministic and should be fixed in-branch rather than retried.

What is this? | From workflow: Observability Agentic Workflow — Status

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

mallendem
mallendem previously approved these changes Nov 4, 2026
@swiatekm

swiatekm commented Nov 4, 2026

Copy link
Copy Markdown
Member

I'm sorry to keep asking for rearranging this code, but can we move the tests to their own PR? It's quite a lot of stuff, and I want it to align correctly with the rest of our CI conventions in this repo. But I don't want to hold up the .NET instrumentation fix with it. So how about we leave only that change + the changelog in this PR, and the tests in a follow up? 🙏

@mergify

mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b operator-edot-dotnet upstream/operator-edot-dotnet
git merge upstream/main
git push upstream operator-edot-dotnet

@stevejgordon

Copy link
Copy Markdown
Contributor Author

I'm sorry to keep asking for rearranging this code, but can we move the tests to their own PR? It's quite a lot of stuff, and I want it to align correctly with the rest of our CI conventions in this repo. But I don't want to hold up the .NET instrumentation fix with it. So how about we leave only that change + the changelog in this PR, and the tests in a follow up? 🙏

@swiatekm Not a problem. I've made the change to just fix the core issue so we can get this shipped. TBH, I'm happy to let someone more knowledgable consider the tests later.

@swiatekm swiatekm added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Nov 5, 2026
@swiatekm
swiatekm requested a review from mallendem November 5, 2026 12:20
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @stevejgordon

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@swiatekm
swiatekm merged commit 9badd67 into main Nov 5, 2026
34 checks passed
@swiatekm
swiatekm deleted the operator-edot-dotnet branch November 5, 2026 14:24
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.6 9.5 9.4 8.19

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

backport 9.6 9.5 9.4 8.19

✅ Backports have been created

Details

Cherry-pick of 9badd67 has failed:

On branch mergify/bp/9.6/pr-17451
Your branch is up to date with 'origin/9.6'.

You are currently cherry-picking commit 9badd67.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
	both modified:   deploy/helm/edot-collector/kube-stack/values.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of 9badd67 has failed:

On branch mergify/bp/9.5/pr-17451
Your branch is up to date with 'origin/9.5'.

You are currently cherry-picking commit 9badd67.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
	both modified:   deploy/helm/edot-collector/kube-stack/values.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of 9badd67 has failed:

On branch mergify/bp/9.4/pr-17451
Your branch is up to date with 'origin/9.4'.

You are currently cherry-picking commit 9badd67.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
	both modified:   deploy/helm/edot-collector/kube-stack/values.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

Cherry-pick of 9badd67 has failed:

On branch mergify/bp/8.19/pr-17451
Your branch is up to date with 'origin/8.19'.

You are currently cherry-picking commit 9badd67.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
	both modified:   deploy/helm/edot-collector/kube-stack/values.yaml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

stevejgordon added a commit that referenced this pull request Nov 10, 2026
… EDOT is used (#17851)

* Load EDOT .NET plugin in kube-stack auto-instrumentation (#17451)

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml

* Fix merge conflicts

---------

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
stevejgordon added a commit that referenced this pull request Nov 10, 2026
… EDOT is used (#17849)

* Load EDOT .NET plugin in kube-stack auto-instrumentation (#17451)

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml

* Fix merge conflicts

---------

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
stevejgordon added a commit that referenced this pull request Nov 10, 2026
… EDOT is used (#17850)

* Load EDOT .NET plugin in kube-stack auto-instrumentation (#17451)

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml

* Fix merge conflicts

---------

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
stevejgordon added a commit that referenced this pull request Nov 10, 2026
…e EDOT is used (#17852)

* Load EDOT .NET plugin in kube-stack auto-instrumentation (#17451)

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml

* Fix merge conflicts

---------

Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants