Repository navigation
[9.4](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x - #54648
Conversation
….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
|
Cherry-pick of 65bae9e has failed: 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 commentsJust comment with:
|
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
This pull request is merged. |
Dependency Update AnalysisSummary: This PR updates OTel Collector dependencies ( Dependency 1:
|
| Check | Result |
|---|---|
| Breaking changes | |
| 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/confighttpremoved deprecated fields (IdleConnTimeout,MaxIdleConns,MaxIdleConnsPerHost,DisableKeepAlives). - Security-relevant hardening: zstd decoder window bounds in
configgrpc/confighttp, recursion-depth limits inpdataunmarshalling (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 examplex-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
confighttpdeprecated fields underx-pack/otel. - However, PR state is currently incompatible because
go.modhas unresolved conflict markers (go.mod:237,276,290,394,538etc), andgo 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 | 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/resourcedetectionand pin<2.0.0. - No CVE/GHSA IDs listed.
- No standalone
v1.4.1release tag was found fork8sattributesprocessor; release context comes from contribv0.165.1notes.
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.modconflict 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.
TL;DRBuildkite failures are caused by unresolved merge-conflict markers in Remediation
Investigation detailsRoot CauseThis PR has unresolved conflict markers (
This matches the PR metadata ( Evidence
Verification
Follow-up
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>
Dependency Update AnalysisSummary: 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 (
|
| 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-258and distro manifestx-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/*, andlibbeat/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-gov1.47.0: stable Logs API/SDK, multiple exporter and parser hardening fixes; no CVE IDs listed.grpc/grpc-gov1.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.
Automerge skippedAutomerge skipped this pull request because the To allow automerge for this kind of update, enable the matching collection under Automerge on the Control Plane Dashboard (the See Opt in or opt out for how to enable or disable Automerge collections on the Control Plane Dashboard. Collections currently enabled for automerge: Changed files considered:
|
Proposed commit message
Updates the OpenTelemetry Collector dependencies to the current latest versions: Core
v0.165.0/v1.71.0, Contribv0.165.1(k8sattributesprocessorv1.4.1). See changes sincev0.164.0for 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/exportersv1.45.0→v1.47.0,google.golang.org/grpcv1.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
sedon MacOS):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/fragmentsusing 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).