Skip to content

[9.4](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x - #54648

Merged
andrzej-stencel merged 2 commits into
9.4from
mergify/bp/9.4/pr-54611
Nov 12, 2026
Merged

andrzej-stencel merged 2 commits into
9.4from
mergify/bp/9.4/pr-54611

Conversation

@mergify

@mergify mergify Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Proposed commit message

Updates the OpenTelemetry Collector dependencies to the current latest versions: Core v0.165.0/v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1). See changes since v0.164.0 for Core and Contrib.

Notable transitive updates pulled in by go mod tidy: k8s.io/{api,apimachinery,client-go} v0.35.4 → v0.37.1, OTel Go SDK/exporters v1.45.0 → v1.47.0, google.golang.org/grpc v1.84.0 → v1.85.0.

Why is it important?

We want to be on the latest version to keep up with latest features and bug fixes.

Commands used to prepare the change (using sed on MacOS):

sed -i '' "s/v0\.164\.0/v0.165.0/" x-pack/otel/Makefile
sed -E -i '' "s|(go\.opentelemetry\.io\/collector.*) v0\.164\.[^ ]+|\1 v0.165.0|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(go\.opentelemetry\.io\/collector.*) v1\.70\.0|\1 v1.71.0|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(github.com/open-telemetry/opentelemetry-collector-contrib/.*) v0\.164\.[^ ]+|\1 v0.165.1|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor) v1\.3\.1|\1 v1.4.1|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
go mod tidy
make notice
(cd x-pack/otel && make build-otel-distro-ci)

Checklist

  • [ ] My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool.

How to test this PR locally

(cd x-pack/otel && make build-otel-distro-ci)

Created-by: Claude Opus 5.5


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

….x (#54611)

* chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x

Core: v0.165.0 / v1.71.0
Contrib: v0.165.1 (k8sattributesprocessor v1.4.1)

Commands used (sed on macOS), followed by `go mod tidy`:

```
sed -i '' "s/v0\.164\.0/v0.165.0/" x-pack/otel/Makefile
sed -E -i '' "s|(go\.opentelemetry\.io\/collector.*) v0\.164\.[^ ]+|\1 v0.165.0|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(go\.opentelemetry\.io\/collector.*) v1\.70\.0|\1 v1.71.0|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(github.com/open-telemetry/opentelemetry-collector-contrib/.*) v0\.164\.[^ ]+|\1 v0.165.1|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
sed -E -i '' "s|(github.com/open-telemetry/opentelemetry-collector-contrib/processor/k8sattributesprocessor) v1\.3\.1|\1 v1.4.1|" go.mod x-pack/otel/distributions/beats-otel-collector/manifest.yaml
```

Assisted-By: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* make notice

Assisted-By: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
(cherry picked from commit 65bae9e)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
@mergify
mergify Bot requested review from a team as code owners November 12, 2026 05:14
@mergify mergify Bot added backport conflicts There is a conflict in the backported pull request labels Nov 12, 2026
@mergify
mergify Bot requested review from fbac and removed request for a team November 12, 2026 05:14
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 12, 2026
@mergify

mergify Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 65bae9e has failed:

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

You are currently cherry-picking commit 65bae9e.
  (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:
	modified:   x-pack/otel/Makefile
	modified:   x-pack/otel/distributions/beats-otel-collector/manifest.yaml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   NOTICE.txt
	both modified:   go.mod
	both modified:   go.sum

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

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • /test : Run the Buildkite pipeline.

@github-actions github-actions Bot added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team skip-changelog labels Nov 12, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 12, 2026
@mergify

mergify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is merged.

@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates OTel Collector dependencies (0.164.x → 0.165.x, 1.70.0 → 1.71.0) but currently has high risk because go.mod contains unresolved merge-conflict markers that make the module invalid.

Dependency 1: go.opentelemetry.io/collector/* v0.164.0/v1.70.0 → v0.165.0/v1.71.0

Ecosystem: Go

Check Result
Breaking changes ⚠️ Found (PR currently breaks module parsing; details below)
Testable in PR ✅ Yes (.github/workflows/check-default.yml:3-5 uses pull_request)
Changelog highlights (v0.164.x → v0.165.0 / v1.71.0)

From open-telemetry/opentelemetry-collector v0.165.0 release notes:

  • Breaking change: pkg/confighttp removed deprecated fields (IdleConnTimeout, MaxIdleConns, MaxIdleConnsPerHost, DisableKeepAlives).
  • Security-relevant hardening: zstd decoder window bounds in configgrpc/confighttp, recursion-depth limits in pdata unmarshalling (DoS/stack-overflow risk reduction).
  • No CVE/GHSA IDs listed in release notes.
Usage in this repository
  • Distribution pins in x-pack/otel/distributions/beats-otel-collector/manifest.yaml:10-66.
  • Collector factory wiring in x-pack/otel/oteltestcol/collector.go:76,189-216.
  • OTel component APIs consumed across x-pack/otel/** (for example x-pack/otel/processor/beatprocessor/factory.go:11-14, x-pack/otel/exporter/logstashexporter/exporter.go:15-20).
Compatibility assessment
  • I did not find local use of removed confighttp deprecated fields under x-pack/otel.
  • However, PR state is currently incompatible because go.mod has unresolved conflict markers (go.mod:237,276,290,394,538 etc), and go list ./x-pack/otel/... fails with parse errors (malformed module path "<<<<<<<").

Dependency 2: github.com/open-telemetry/opentelemetry-collector-contrib/* v0.164.1 (+k8sattributesprocessor v1.3.1) → v0.165.1 (+v1.4.1)

Ecosystem: Go

Check Result
Breaking changes ⚠️ Found (same go.mod parse failure in current PR state)
Testable in PR ✅ Yes (pull_request CI present)
Changelog highlights (v0.164.1 → v0.165.1)

From open-telemetry/opentelemetry-collector-contrib v0.165.1 release notes:

  • Bug fix: revert consul api/v2 bump in processor/resourcedetection and pin <2.0.0.
  • No CVE/GHSA IDs listed.
  • No standalone v1.4.1 release tag was found for k8sattributesprocessor; release context comes from contrib v0.165.1 notes.
Usage in this repository
  • Manifest component pins: x-pack/otel/distributions/beats-otel-collector/manifest.yaml:11-57.
  • Direct contrib exporters used in test collector wiring: x-pack/otel/oteltestcol/collector.go:24-25,214,216.
  • Kafka partitioner extension depends on contrib kafka exporter API: x-pack/otel/extension/kafkapartitionerextension/extension.go:11,21.
Compatibility assessment
  • No obvious local API/feature removals surfaced for consumed contrib exporters/extensions.
  • Blocking issue remains the unresolved go.mod conflict markers, which prevents module/toolchain validation.

Labels Applied

No labels applied. oblt-aw/ai/merge-ready was not applied because current risk is high due to unresolved merge conflicts in go.mod causing build/module resolution failure.


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

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

@github-actions

Copy link
Copy Markdown
Contributor

TL;DR

Buildkite failures are caused by unresolved merge-conflict markers in go.mod and go.sum, not by flaky tests or infra. Resolve those conflicts and re-run checks.

Remediation

  • Resolve all conflict markers in go.mod and go.sum from this backport, then run go mod tidy.
  • Re-run CI locally for parity: make -C filebeat check update && make check-no-changes and pre-commit run --all-files.
Investigation details

Root Cause

This PR has unresolved conflict markers (<<<<<<<, =======, >>>>>>>) in dependency files. That breaks module parsing and triggers failures across many pipelines.

  • make ... check update failures: go: errors parsing ../go.mod with malformed module path at lines 237, 276, 290, 394, 538.
  • pre-commit failures: merge-conflict hook reports markers in go.mod and go.sum (for example go.mod:237, go.sum:5, go.sum:485).

This matches the PR metadata (conflicts label) and explains why multiple beat pipelines fail with the same signature.

Evidence

  • Build: https://buildkite.com/elastic/beats/builds/56140
  • Job/step examples:
    • Filebeat: Run check/update (/tmp/gh-aw/buildkite-logs/filebeat-filebeat-run-checkupdate.txt)
    • Filebeat: Run pre-commit (/tmp/gh-aw/buildkite-logs/filebeat-filebeat-run-pre-commit.txt)
  • Key log excerpts:
    • ../go.mod:237: malformed module path "<<<<<<<": invalid char '<'
    • go.mod:237: Merge conflict string '<<<<<<<' found
    • go.sum:5: Merge conflict string '<<<<<<<' found

Verification

  • Log analysis completed across all listed failed jobs; failure signature is consistent.
  • Local command re-run not performed because the checked-out workspace commit differs from failing SHA 0a5509463ddd63efc074ef143e6a3f75d2c205c6.

Follow-up

  • After conflict resolution, CI should be re-run once; no flaky-test issue appears implicated by the observed failure mode.

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

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

The cherry-pick of #54611 conflicted in go.mod, go.sum and NOTICE.txt
because the 9.4 branch's dependency set differs from main. Instead of
hand-merging the conflict hunks, re-applied the original version bump
commands to the 9.4 files (core v0.165.0 / v1.71.0, contrib v0.165.1,
k8sattributesprocessor v1.4.1), then ran go mod tidy and make notice.

Assisted-By: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>
@andrzej-stencel andrzej-stencel removed the conflicts There is a conflict in the backported pull request label Nov 12, 2026
@elastic-vault-github-plugin-prod

Copy link
Copy Markdown
Contributor

Dependency Update Analysis

Summary: This PR updates OpenTelemetry Collector dependencies from 0.164.x to 0.165.x (core/contrib + related transitive Go modules). Overall risk is low-to-moderate; no breaking impact was found for current Beats usage.

OpenTelemetry Collector core modules (go.opentelemetry.io/collector/* v0.164.0/v1.70.0 → v0.165.0/v1.71.0)

Ecosystem: Go

Check Result
Breaking changes ✅ None found for current usage. Upstream breaking change was pkg/confighttp deprecated field removal, but local usage is confighttp.NewDefaultClientConfig() only (x-pack/otel/extension/beatsauthextension/authenticator_test.go:272, :389).
Testable in PR ✅ Yes — PR workflows run on pull_request (.github/workflows/check-default.yml:3-5).
Changelog highlights (v0.164.0 → v0.165.0)

From open-telemetry/opentelemetry-collector v0.165.0: one breaking removal in pkg/confighttp deprecated keepalive fields; enhancements to processors/service; security-relevant hardening includes zstd decode window bounds and recursion-depth limits in pdata unmarshalling (DoS risk reduction). No CVE IDs listed in release notes.

Usage in this repository
  • Version pins are updated in go.mod:212-258 and distro manifest x-pack/otel/distributions/beats-otel-collector/manifest.yaml:10-66.
  • Collector APIs are used by runtime code in x-pack/otel/*, x-pack/filebeat/fbreceiver/*, x-pack/metricbeat/mbreceiver/*, x-pack/libbeat/cmd/instance/*, and libbeat/otel/* (e.g., component, consumer, receiver, pdata).
Compatibility assessment

No import-path major-version break was introduced. The bump keeps the same module paths and updates minor versions only. No local code was found using removed confighttp fields.

OpenTelemetry Collector Contrib components (github.com/open-telemetry/opentelemetry-collector-contrib/* v0.164.1 → v0.165.1, k8sattributesprocessor v1.3.1 → v1.4.1)

Ecosystem: Go

Check Result
Breaking changes ✅ None found for current usage.
Testable in PR ✅ Yes — PR workflows run on pull_request (.github/workflows/check-default.yml:3-5).
Changelog highlights (v0.164.1 → v0.165.1)

open-telemetry/opentelemetry-collector-contrib v0.165.1 notes a targeted bug fix in processor/resourcedetection (consul API pin correction). No CVE/GHSA entries were listed.

Usage in this repository

Pinned directly in go.mod:197-198 and in distribution component list (manifest.yaml:11-57), including exporters (elasticsearchexporter, kafkaexporter) and processors (k8sattributesprocessor at manifest.yaml:43).

Compatibility assessment

Beats relies on stable collector/contrib component module paths and manifest wiring; no changed/removed local interfaces were identified.

Related transitive Go updates (go.opentelemetry.io/otel v1.45.0 → v1.47.0, google.golang.org/grpc v1.84.0 → v1.85.0, k8s.io/{api,apimachinery,client-go} v0.35.4 → v0.37.1)

Ecosystem: Go

Check Result
Breaking changes ✅ None found in directly consumed Beats APIs.
Testable in PR ✅ Yes — PR workflows run on pull_request (.github/workflows/check-default.yml:3-5).
Changelog highlights
  • open-telemetry/opentelemetry-go v1.47.0: stable Logs API/SDK, multiple exporter and parser hardening fixes; no CVE IDs listed.
  • grpc/grpc-go v1.85.0: transport/server correctness fixes; no CVE IDs listed.
Usage in this repository

These modules are pulled through collector/otel dependency graph after go mod tidy; no explicit new usage sites were introduced by this PR beyond updated lock state (go.mod, go.sum).

Compatibility assessment

Given stable import paths and no direct API removals observed in current Beats call sites, transitive risk appears contained.

Labels Applied

  • oblt-aw/ai/merge-ready — applied because overall risk is low-to-moderate, no breaking impact on current repository usage was identified, and PR-triggered workflows are available for validation.

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

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

@github-actions

Copy link
Copy Markdown
Contributor

Automerge skipped

Automerge skipped this pull request because the all-files collection is not enabled for this repository.

To allow automerge for this kind of update, enable the matching collection under Automerge on the Control Plane Dashboard (the oblt-aw/dashboard issue). See Automerge dependency collections for what each collection covers.

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, terraform, open-policy-agent, updatecli, vm-images

Changed files considered:

  • NOTICE.txt
  • go.mod
  • go.sum
  • x-pack/otel/Makefile
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml

@andrzej-stencel
andrzej-stencel enabled auto-merge (squash) November 12, 2026 12:09
@andrzej-stencel
andrzej-stencel merged commit 2de06c1 into 9.4 Nov 12, 2026
247 checks passed
@andrzej-stencel
andrzej-stencel deleted the mergify/bp/9.4/pr-54611 branch November 12, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant