Skip to content

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

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

andrzej-stencel merged 2 commits into
9.6from
mergify/bp/9.6/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 a review from a team as a code owner 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 a review from a team as a code owner November 12, 2026 05:14
@mergify

mergify Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of 65bae9e has failed:

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

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

@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 12, 2026
@mergify
mergify Bot requested review from fbac and removed request for a team November 12, 2026 05:14
@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
@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Nov 12, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

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

@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 OpenTelemetry Collector core/contrib from 0.164.x to 0.165.x (plus aligned v1.70.0 -> v1.71.0 modules); based on release notes and in-repo usage, risk is low-to-moderate and compatible with current usage.

Dependency 1: go.opentelemetry.io/collector (v0.164.0 -> v0.165.0, v1.70.0 -> v1.71.0)

Ecosystem: Go

Check Result
Breaking changes ✅ None found in repository usage
Testable in PR ✅ Yes — Go dependency update exercised in PR CI (build / build check run present)
Changelog highlights (v0.164.0/v1.70.0 → v0.165.0/v1.71.0)

From open-telemetry/opentelemetry-collector release v0.165.0 (v1.71.0/v0.165.0):

  • Breaking change upstream: removal of deprecated pkg/confighttp fields (IdleConnTimeout, MaxIdleConns, MaxIdleConnsPerHost, DisableKeepAlives).
  • Security-relevant hardening (no CVE/GHSA IDs listed):
    • zstd decoder window is now bounded in configgrpc/confighttp.
    • recursion depth limit added in pdata proto unmarshalling to prevent stack-overflow from deeply nested payloads.
  • Additional reliability/perf improvements in pdata/service/exporterhelper.
Usage in this repository
  • Version pins updated in distribution manifest: x-pack/otel/distributions/beats-otel-collector/manifest.yaml:10-78.
  • Collector builder version updated: x-pack/otel/Makefile:7.
  • Core collector APIs are used widely in OTel extension code, e.g.:
    • x-pack/otel/processor/beatprocessor/factory.go:11-14
    • x-pack/otel/extension/beatsauthextension/authenticator.go:16-19
    • x-pack/otel/oteltestcol/collector.go:37-42
    • libbeat/otel/otelconsumer/otelconsumer.go:38-42
Compatibility assessment
  • The documented confighttp field removals do not appear in repo OTel YAML config (x-pack/otel grep found no such keys).
  • confighttp is imported in tests (x-pack/otel/extension/beatsauthextension/authenticator_test.go:27), while runtime code paths use Beats transport options.
  • No major-version import-path transition requiring code rewrite was introduced for the collector modules in this bump.

Dependency 2: opentelemetry-collector-contrib (v0.164.1 -> v0.165.1), including k8sattributesprocessor (v1.3.1 -> v1.4.1)

Ecosystem: Go

Check Result
Breaking changes ✅ None found in repository usage
Testable in PR ✅ Yes — Go dependency update exercised in PR CI
Changelog highlights (v0.164.1 → v0.165.1)

From open-telemetry/opentelemetry-collector-contrib release v0.165.1 (v1.4.1/v0.165.1):

  • Bug fix: processor/resourcedetection reverted consul api/v2 bump and pinned API <2.0.0.
  • No CVE/GHSA IDs called out in the release body.
Usage in this repository
  • Contrib component pins are updated throughout the collector distribution manifest: x-pack/otel/distributions/beats-otel-collector/manifest.yaml:11-69.
  • Direct contrib imports include:
    • x-pack/otel/extension/kafkapartitionerextension/extension.go:11
    • x-pack/otel/oteltestcol/collector.go:28-29
  • Root module requirements updated include contrib exporters/extensions: go.mod:195, go.mod:239.
Compatibility assessment
  • Updated contrib modules remain within same module families and expected minor stream.
  • No removed/renamed APIs used by the referenced Beats OTel integration files were identified from this bump.
  • The resourcedetection fix is risk-reducing for dependency stability.

Labels Applied

  • oblt-aw/ai/merge-ready — overall risk assessed low-to-moderate, no repo-impacting breaking changes found, and PR-context testability is present.

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

@github-actions

Copy link
Copy Markdown
Contributor

TL;DR

Buildkite failed because this backport commit contains unresolved merge-conflict markers in go.mod and go.sum. Resolve the conflict blocks and regenerate module metadata (go mod tidy) to unblock all failing check/update and pre-commit jobs.

Remediation

  • Resolve and remove all <<<<<<<, =======, >>>>>>> blocks in go.mod and go.sum (conflict from cherry-pick 65bae9e).
  • Run go mod tidy at repo root, then rerun pre-commit run --all-files and one representative check step (for example make -C filebeat check update).
Investigation details

Root Cause

Single root cause across 34 failed jobs: unresolved merge-conflict markers were committed in dependency files.

  • filebeat pre-commit fails on merge conflict detection:
    • go.sum:1507, go.sum:1512, go.sum:1517
    • go.mod:511, go.mod:545, go.mod:579
  • check/update jobs then fail while parsing go.mod:
    • ../go.mod:511: malformed module path "<<<<<<<": invalid char '<'
    • ../go.mod:545: usage: require module/path v1.2.3
    • ../go.mod:579: usage: require module/path v1.2.3

The PR metadata already indicates conflicts (conflicts label), and the commit patch for 0df7eddc67ccddd8b0b0441efefa7c226f5b4127 shows conflict markers in both files.

Evidence

  • Build: https://buildkite.com/elastic/beats/builds/56138
  • Representative jobs:
    • Filebeat: Run pre-commit (/tmp/gh-aw/buildkite-logs/filebeat-filebeat-run-pre-commit.txt)
    • Filebeat: Run check/update (/tmp/gh-aw/buildkite-logs/filebeat-filebeat-run-checkupdate.txt)
  • Key log excerpt:
go.sum:1507: Merge conflict string '<<<<<<<' found
go.mod:511: Merge conflict string '<<<<<<<' found
../go.mod:511: malformed module path "<<<<<<<": invalid char '<'

Verification

  • Tests/commands not executed in this read-only detective run.
  • Diagnosis is log-backed and reproducible from the failing CI steps above.

Follow-up

  • After resolving conflicts, rerun Buildkite (/test) on this PR.

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.6 branch's dependency set differs from main. Instead of
hand-merging the conflict hunks, re-applied the original version bump
commands to the 9.6 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 OTel Collector dependencies from 0.164.x to 0.165.x (core/contrib) with broad transitive Go module refreshes; based on release notes + local usage, overall risk is low-to-moderate and compatible for this repo.

OTel Collector core: go.opentelemetry.io/collector/* v0.164.0/v1.70.0 → v0.165.0/v1.71.0

Ecosystem: Go

Check Result
Breaking changes ✅ None found in current usage
Testable in PR ✅ Yes
Changelog highlights (v0.164.0 → v0.165.0)

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

  • Breaking: deprecated confighttp fields removed (IdleConnTimeout, MaxIdleConns, MaxIdleConnsPerHost, DisableKeepAlives).
  • Security-relevant hardening: bounded zstd decoder window in configgrpc/confighttp; added recursion depth limit in pdata unmarshalling to prevent stack overflow on deeply nested payloads.
  • Stability fixes in exporterhelper/service paths.

CVE/advisory notes: no explicit CVE/GHSA IDs listed in the release notes reviewed.

Usage in this repository
  • Distribution pins updated in x-pack/otel/distributions/beats-otel-collector/manifest.yaml:10 and provider pins at :75.
  • Builder pin updated in x-pack/otel/Makefile:7 (OCB_VERSION).
  • Collector APIs are imported by Beats OTel code, e.g. x-pack/otel/oteltestcol/collector.go:38-41 and x-pack/otel/exporter/logstashexporter/exporter.go:14-19.
  • go.mod direct collector updates include component and confighttp at go.mod:210 and go.mod:248.
Compatibility assessment

The noted confighttp field removals did not surface as incompatible usage in this repo:

  • OTel-related keepalive usage in production code is through Beats transport wrappers (x-pack/otel/extension/beatsauthextension/authenticator.go:136,157), not removed collector confighttp fields.
  • confighttp references under x-pack/otel are test config paths (authenticator_test.go:27,273,502).

Net: security hardening likely reduces risk; no concrete API break found in repository usage.

OTel Collector Contrib: github.com/open-telemetry/opentelemetry-collector-contrib/* v0.164.1 → v0.165.1 (plus k8sattributesprocessor v1.3.1 → v1.4.1)

Ecosystem: Go

Check Result
Breaking changes ✅ None found in current usage
Testable in PR ✅ Yes
Changelog highlights (v0.164.1 → v0.165.1)

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

  • Bug fix: processor/resourcedetection reverted consul api/v2 bump and pinned api <2.0.0.

No explicit CVE/GHSA IDs listed in the release notes reviewed.

Usage in this repository
  • Contrib component pins are updated in x-pack/otel/distributions/beats-otel-collector/manifest.yaml, including k8sattributesprocessor at :55.
  • Direct dependency bumps include elasticsearchexporter at go.mod:195.
  • Test collector imports contrib exporters at x-pack/otel/oteltestcol/collector.go:28.
Compatibility assessment

No removals/deprecations affecting observed component set were identified from available notes and local usage. k8sattributesprocessor moved to v1.4.1 without repo-local custom API bindings to that processor module.

Transitive dependency movement from go mod tidy

Notable indirect/direct shifts in go.mod include google.golang.org/grpc 1.84.0 → 1.85.0 (go.mod:134) and k8s.io/client-go 0.35.4 → 0.37.1 (go.mod:142), consistent with collector stack uplift.

Labels Applied

  • oblt-aw/ai/merge-ready — overall risk assessed low-to-moderate, no repo-specific breaking usage found, and validation is PR-testable (repo workflows include pull_request, e.g. .github/workflows/check-default.yml:4).

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

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

@andrzej-stencel
andrzej-stencel merged commit 6d8fbff into 9.6 Nov 12, 2026
248 checks passed
@andrzej-stencel
andrzej-stencel deleted the mergify/bp/9.6/pr-54611 branch November 12, 2026 12:07
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