Repository navigation
[9.6](backport #54611) chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x - #54646
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 OpenTelemetry Collector core/contrib from Dependency 1:
|
| 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/confighttpfields (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.
- zstd decoder window is now bounded in
- 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-14x-pack/otel/extension/beatsauthextension/authenticator.go:16-19x-pack/otel/oteltestcol/collector.go:37-42libbeat/otel/otelconsumer/otelconsumer.go:38-42
Compatibility assessment
- The documented confighttp field removals do not appear in repo OTel YAML config (
x-pack/otelgrep found no such keys). confighttpis 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/resourcedetectionreverted consulapi/v2bump 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:11x-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.
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:
|
TL;DRBuildkite failed because this backport commit contains unresolved merge-conflict markers in Remediation
Investigation detailsRoot CauseSingle root cause across 34 failed jobs: unresolved merge-conflict markers were committed in dependency files.
The PR metadata already indicates conflicts ( 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.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>
Dependency Update AnalysisSummary: This PR updates OTel Collector dependencies from OTel Collector core:
|
| 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
confighttpfields 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:10and 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-41andx-pack/otel/exporter/logstashexporter/exporter.go:14-19. go.moddirect collector updates includecomponentandconfighttpatgo.mod:210andgo.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 collectorconfighttpfields. confighttpreferences underx-pack/otelare 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/resourcedetectionreverted consulapi/v2bump and pinnedapi <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, includingk8sattributesprocessorat:55. - Direct dependency bumps include
elasticsearchexporteratgo.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 includepull_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.
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).