Skip to content

[9.6] (backport #17451) Update .NET operator image version and ensure EDOT is used - #17849

Merged
stevejgordon merged 3 commits into
9.6from
mergify/bp/9.6/pr-17451
Nov 10, 2026
Merged

stevejgordon merged 3 commits into
9.6from
mergify/bp/9.6/pr-17451

Conversation

@mergify

@mergify mergify Bot commented Nov 5, 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.


This is an automatic backport of pull request #17451 done by [Mergify](https://mergify.com).

(cherry picked from commit 9badd67)

# Conflicts:
#	deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
#	deploy/helm/edot-collector/kube-stack/values.yaml
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Nov 5, 2026
@mergify

mergify Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

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

@github-actions github-actions Bot added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team labels Nov 5, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

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

@github-actions

This comment has been minimized.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates the EDOT .NET auto-instrumentation image from 1.6.1 to 1.7.0 in kube-stack Helm values and explicitly enables the EDOT plugin; overall risk is low-to-moderate due to production runtime behavior impact and limited PR-time validation.

elastic-otel-dotnet 1.6.1 → 1.7.0

Ecosystem: CI / container image pin

Check Result
Breaking changes ✅ None found in current repo usage
Testable in PR ⚠️ No — Helm chart release workflows are workflow_dispatch/release only (.github/workflows/release-helm-charts.yml:4, .github/workflows/release-helm-charts-manual.yml:4)
Changelog highlights (1.6.1 → 1.7.0)

From elastic/elastic-otel-dotnet release 1.7.0:

  • Feature updates include upstream package bumps (SDK 1.20.1, instrumentation 1.18.0).
  • Multiple bug fixes, including logger lifecycle/concurrency fixes.
  • Security-relevant hardening: redaction of header secrets in configuration and env-var diagnostics.
  • No CVE/GHSA IDs were listed in release notes.
  • Compare link: https://github.com/elastic/elastic-otel-dotnet/compare/1.6.1...1.7.0
Usage in this repository
  • Runtime image pin updated in:
    • deploy/helm/edot-collector/kube-stack/values.yaml:697
    • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:679
  • This PR also adds:
    • OTEL_DOTNET_AUTO_PLUGINS=Elastic.OpenTelemetry.AutoInstrumentationPlugin, Elastic.OpenTelemetry.AutoInstrumentation
    • in both files (values.yaml:700, managed_otlp/values.yaml:682) to ensure EDOT plugin loading.
  • Automation source mapping for this dependency is defined in .ci/updatecli/updatecli-bump-edot.yml:37-106.
Compatibility assessment
  • The image bump is a minor version update and remains pinned to an immutable tag value in Helm values.
  • Added plugin env var aligns behavior with EDOT-specific instrumentation expectations (intentional behavior correction, not API breakage).
  • No repo-local API/interface usage was found that conflicts with 1.7.0 release changes.
  • Residual risk is operational (runtime behavior in Kubernetes), not build-time dependency resolution.

Labels Applied

No labels applied (dependency is production-impacting and not directly PR-testable via repository Helm release workflows).


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

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

@infra-vault-gh-plugin-prod

infra-vault-gh-plugin-prod Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

TL;DR

This failure looks environment/checkout related, not caused by this PR’s Helm changes. check-ci fails because the beats submodule is dirty (HEAD expects 0aca..., workspace has eacb...), and the container packaging job then fails compiling against that inconsistent beats state.

Remediation

  • Ensure CI re-syncs beats before checks/builds (for example git submodule update --init --recursive beats after merge checkout).
  • Re-run check-ci and :package: amd64: Containers after submodule sync; if clean, this PR should proceed without further code changes.
Investigation details

Root Cause

  • Configuration/infra checkout issue: check-ci reports only a submodule gitlink drift:
    • expected in superproject: Subproject commit 0aca9817...
    • actual workspace: Subproject commit eacbdc7e...
  • The packaging failure appears downstream of the same beats state mismatch (or corrupted submodule worktree), not from the PR diff itself.

PR evidence:

  • f3d38bc9d131cef4a0e0b2a53f0cce0ca448aa04 modifies only:
    • deploy/helm/edot-collector/kube-stack/values.yaml
    • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
  • No beats gitlink/file changes in PR commits.

Related code references:

  • .buildkite/hooks/post-checkout:15-23 contains special handling when beats/.git is missing (sparse/partial checkout path).
  • magefile.go:4173-4200 restores beats/.git via git submodule update --no-fetch -- beats and logs Reverted beats/.git to submodule reference.

Evidence

  • Build: https://buildkite.com/elastic/elastic-agent/builds/49640
  • Job/step: check-ci
    • diff --git a/beats b/beats
    • -Subproject commit 0aca9817022e...
    • +Subproject commit eacbdc7ef95f...
    • Error: ... Modified: [beats]
  • Job/step: :package: amd64: Containers
    • >> Reverted beats/.git to submodule reference
    • receiver.go:11:2: could not import sort (open : no such file or directory)
    • receiver.go:32:2: could not import ... extensionauth (open : no such file or directory)

Verification

  • Reviewed pre-fetched Buildkite logs for both failed jobs.
  • Cross-checked PR commit file lists; no beats updates in PR commits.
  • No local repro run (this is CI-state dependent, and the failing checkout/submodule state is not present locally).

Follow-up

  • If failures persist after explicit submodule sync, capture and compare:
    • git rev-parse HEAD
    • git ls-tree HEAD beats
    • git -C beats rev-parse HEAD
      from the failing job to confirm checkout drift source.

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

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

@stevejgordon

Copy link
Copy Markdown
Contributor

@Mergifyio update

@mergify

mergify Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

update

✅ Branch has been successfully updated

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates the EDOT .NET auto-instrumentation image from 1.6.1 to 1.7.0 in kube-stack Helm values and adds the required OTEL_DOTNET_AUTO_PLUGINS env var; overall risk is low-to-moderate (contained config/image bump, no breaking usage found).

elastic-otel-dotnet 1.6.1 → 1.7.0

Ecosystem: CI / container / snapshot image pin (Helm chart image pin)

Check Result
Breaking changes ✅ None found in repo usage
Testable in PR ✅ Yes — Buildkite Kubernetes tiers run for PRs and include deploy/helm/** changes (.buildkite/bk.integration.pipeline.yml lines ~1123, ~1186)
Changelog highlights (1.6.1 → 1.7.0)

From elastic/elastic-otel-dotnet release 1.7.0:

  • Feature updates include upstream package updates (SDK 1.20.1, instrumentation 1.18.0) and OpAMP log-level handling improvements.
  • Bug fixes include honoring metrics instrumentation toggles, header-secret redaction in diagnostics, logger lifecycle/concurrency fixes, and safety timer/options fixes.
  • No explicit CVE/GHSA entries were listed in the release notes.

CVE/security-focused assessment:

  • Secret-redaction and logger/safety fixes reduce operational leakage/stability risk rather than adding attack surface.
  • No release-note evidence of new insecure defaults or authn/authz regressions relevant to this repo’s usage.
Usage in this repository

Updated in:

  • deploy/helm/edot-collector/kube-stack/values.yaml:697
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml:679

Both now set:

  • image: docker.elastic.co/observability/elastic-otel-dotnet:1.7.0
  • OTEL_DOTNET_AUTO_PLUGINS=Elastic.OpenTelemetry.AutoInstrumentationPlugin, Elastic.OpenTelemetry.AutoInstrumentation

These values files are exercised by k8s integration tests:

  • testing/integration/k8s/otel_helm_test.go:64,164,231
Compatibility assessment
  • The repo consumes this dependency as an image tag in Helm values (not direct API calls), so Go/SDK source-level breakage does not apply here.
  • The added plugin env var aligns with the stated operator behavior and ensures EDOT plugin loading explicitly.
  • No incompatible interface/input changes were identified for current chart usage.

Labels Applied

  • oblt-aw/ai/merge-ready (applied): risk low-to-moderate, no breaking repo usage found, and PR-context Kubernetes validation coverage exists.

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

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

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Automerge skipped

Automerge skipped this pull request because the changed files do not match any configured dependency collection.

If this update should be automerged, ask a maintainer to add or adjust a collection, or merge the pull request manually.

See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard.

Collections currently enabled for automerge: github-actions, pre-commit, update-beats, vm-images, package-version

Changed files considered:

  • changelog/fragments/1792652202-Load-the-EDOT-.NET-plugin-in-kube-stack-auto-instrumentation.yaml
  • deploy/helm/edot-collector/kube-stack/managed_otlp/values.yaml
  • deploy/helm/edot-collector/kube-stack/values.yaml

@stevejgordon

Copy link
Copy Markdown
Contributor

@swiatekm Do I need to do anything to request a review for each backport?

@mergify

mergify Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

This pull request has not been merged yet. Could you please review and merge it @{{ assignee | join(', @') }}? 🙏

@stevejgordon
stevejgordon requested review from a team and ycombinator and removed request for a team November 10, 2026 16:15
@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

Queue requested — the merge queue status continues in this comment ↓.

@mergify

mergify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor Author

🚫 Left the queue · pull request merged manually

2 min in the queue, with no time running CI.

So far

Reason

Pull request #17849 has been merged manually at ddb0323

Hint

You were too fast!

Merge conditions not met when it left the queue

  • check-success=buildkite/elastic-agent
  • any of · required by GitHub branch protection:
    • check-neutral = buildkite/elastic-agent
    • check-skipped = buildkite/elastic-agent
    • check-success = buildkite/elastic-agent

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request
4 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • check-success=CLA
  • github-review-approved · required by GitHub branch protection, GitHub repository ruleset rule [org] Require a PR for Renovate and GitHub repository ruleset rule [org] Require a PR
  • any of · required by GitHub branch protection:
    • check-success = CLA
    • check-neutral = CLA
    • check-skipped = CLA

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 10, 2026
@mergify mergify Bot mentioned this pull request Nov 10, 2026
15 of 26 tasks
@stevejgordon
stevejgordon merged commit ddb0323 into 9.6 Nov 10, 2026
56 of 57 checks passed
@stevejgordon
stevejgordon deleted the mergify/bp/9.6/pr-17451 branch November 10, 2026 17:59
@mergify

mergify Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

queue

☑️ The pull request has been merged manually

Details

The pull request has been merged manually at ddb0323

@mergify mergify Bot removed the queued label Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working conflicts There is a conflict in the backported pull request oblt-aw/ai/merge-ready 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.

1 participant