Skip to content

chore: update OTel Collector dependencies to v0.155.0/v1.61.0#51684

Merged
andrzej-stencel merged 3 commits into
elastic:mainfrom
andrzej-stencel:update-otel-to-v0.155.0
Jul 3, 2026
Merged

chore: update OTel Collector dependencies to v0.155.0/v1.61.0#51684
andrzej-stencel merged 3 commits into
elastic:mainfrom
andrzej-stencel:update-otel-to-v0.155.0

Conversation

@andrzej-stencel

Copy link
Copy Markdown
Contributor

Proposed commit message

Updates the OpenTelemetry Collector dependencies to the current latest versions v0.155.0 and v1.61.0. See changes since v0.154.0/v1.60.0 for Core and Contrib.

Why is it important?

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

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.next.asciidoc or CHANGELOG-developer.next.asciidoc.

How to test this PR locally

make mage
(cd auditbeat && mage build)
(cd filebeat && mage build)
(cd metricbeat && mage build)
(cd x-pack/filebeat && mage build)
(cd x-pack/metricbeat && mage build)

sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v0\.154.0/\1 v0.155.0/" go.mod
sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v1\.60.0/\1 v1.61.0/" go.mod
sed -i '' "s/\(github.com\/open-telemetry\/opentelemetry-collector-contrib\/.*\) v0\.154.0/\1 v0.155.0/" go.mod
@andrzej-stencel andrzej-stencel requested a review from a team as a code owner July 2, 2026 09:57
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 2, 2026
@github-actions

github-actions Bot commented Jul 2, 2026

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.

@mergify

mergify Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @andrzej-stencel? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@andrzej-stencel andrzej-stencel added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team backport-active-all Automated backport with mergify to all the active branches skip-changelog labels Jul 2, 2026
@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 2, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

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

@andrzej-stencel andrzej-stencel changed the title Update otel to v0.155.0 chore: update OTel Collector dependencies to v0.155.0/v1.61.0 Jul 2, 2026
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Enterprise

Run ID: a2252533-3eff-4e64-b553-b1943ff6dd72

📥 Commits

Reviewing files that changed from the base of the PR and between b6df30e and d89a3fa.

📒 Files selected for processing (2)
  • .buildkite/x-pack/pipeline.xpack.otel.yml
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml

📝 Walkthrough

Walkthrough

Changes

Compact metadata

  • Type: Dependency maintenance
  • Scope: go.mod, NOTICE.txt, Buildkite pipeline, OTel collector manifest

This PR bumps the Go toolchain version and a broad set of third-party dependencies, including AWS SDK for Go v2 (core and numerous submodules), golang.org/x/* packages, prometheus/common, twmb/franz-go, go.etcd.io/bbolt, go.opentelemetry.io/collector/* and opentelemetry-collector-contrib modules, go.opentelemetry.io/ebpf-profiler, and adds github.com/cenkalti/backoff/v6 as a new indirect dependency. It also updates the OTel Collector distribution builder version and manifest dependency pins. NOTICE.txt is regenerated to reflect the updated versions and corresponding license text for all affected dependencies. No exported or public API declarations are altered.

Sequence Diagram(s)

Not applicable — this change is limited to dependency version bumps, build/manifest pin updates, and license notice regeneration.

Possibly related PRs

  • elastic/beats#50658: Both PRs update the same OpenTelemetry Collector dependency lines in go.mod and corresponding NOTICE.txt blocks, to different target versions.
  • elastic/beats#50913: Both PRs bump go.opentelemetry.io/collector/* and contrib module versions with matching NOTICE.txt regeneration.
  • elastic/beats#51292: Both PRs update overlapping OpenTelemetry Collector core and contrib dependency version/license entries.

Suggested labels: backport-active-all, skip-changelog

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • 🛠️ Update Documentation

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

TL;DR

The OTel distro build is failing because the PR bumps the repository OTel dependencies to v0.155.0 / v1.61.0, but the collector distribution still builds with v0.150.0 components and builder@v0.150.0. That creates a mixed OTel module graph and the generated collector fails to compile with missing timeutils symbols.

Remediation

  • Update x-pack/otel/distributions/beats-otel-collector/manifest.yaml so the collector/contrib component versions match the PR’s go.mod bump, e.g. v0.150.0 entries to v0.155.0 and provider v1.56.0 entries to the matching v1.61.0 collector provider versions.
  • Update .buildkite/x-pack/pipeline.xpack.otel.yml:58 from go install go.opentelemetry.io/collector/cmd/builder@v0.150.0 to the matching builder version, likely @v0.155.0 for this PR.
  • Validate with the failing step locally from x-pack/otel: RACE=1 mage buildOtelDistro, then confirm go version -m ./distributions/beats-otel-collector/_build/beats-otel-collector | grep -q 'race=true'.
Investigation details

Root Cause

This is a dependency/configuration mismatch introduced by the OTel version bump. The PR changes go.mod from collector/contrib v0.154.0 / core v1.60.0 to v0.155.0 / v1.61.0, but the distro manifest remains pinned to older OTel modules:

  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:10 has go.opentelemetry.io/collector/extension/memorylimiterextension v0.150.0
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:15 has github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.150.0
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:28-35 pins receivers to v0.150.0
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:50-58 pins processors to v0.150.0
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:63-69 pins exporters to v0.150.0
  • x-pack/otel/distributions/beats-otel-collector/manifest.yaml:74-78 pins providers to v1.56.0

The Buildkite command also installs an older collector builder:

.buildkite/x-pack/pipeline.xpack.otel.yml:58
          go install go.opentelemetry.io/collector/cmd/builder@v0.150.0

Because the manifest replaces github.com/elastic/beats/v7 with the PR checkout (x-pack/otel/distributions/beats-otel-collector/manifest.yaml:90), the generated collector combines older manifest components with the PR’s newer root module requirements. The compile errors are in v0.150.0 OTel contrib packages calling symbols that are not available in the resolved timeutils package version.

Evidence

Error: failed to compile the OpenTelemetry Collector distribution: go subcommand failed with args '[build -trimpath -o beats-otel-collector -ldflags=-s -w -gcflags=]': exit status 1, error message: # github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl/ottlfuncs

/opt/buildkite-agent/.asdf/installs/golang/1.26.4/packages/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl@v0.150.0/ottlfuncs/func_formattime.go:38:33: undefined: timeutils.StrptimeToGotime
/opt/buildkite-agent/.asdf/installs/golang/1.26.4/packages/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/ottl@v0.150.0/ottlfuncs/func_time.go:66:32: undefined: timeutils.GetStrptimeNativeSubstitutes
/opt/buildkite-agent/.asdf/installs/golang/1.26.4/packages/pkg/mod/github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza@v0.150.0/fileconsumer/matcher/internal/filter/sort.go:125:21: undefined: timeutils.ParseStrptime

Verification

Not run locally; no code changes were made in this read-only CI detective workflow. The failed Buildkite log and PR diff were sufficient to identify the version skew.


What is this? | From workflow: PR Buildkite Detective

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

@andrzej-stencel andrzej-stencel requested review from a team as code owners July 2, 2026 10:39
@khushijain21

Copy link
Copy Markdown
Contributor

Big jump from 150 to 155. Thanks for updating it

@andrzej-stencel andrzej-stencel enabled auto-merge (squash) July 2, 2026 21:45

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrzej-stencel andrzej-stencel merged commit 539bc0e into elastic:main Jul 3, 2026
204 checks passed
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.4 9.3 8.19

@mergify

mergify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

backport 9.4 9.3 8.19

✅ Backports have been created

Details

Cherry-pick of 539bc0e has failed:

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

You are currently cherry-picking commit 539bc0e2b.
  (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:   .buildkite/x-pack/pipeline.xpack.otel.yml
	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

Cherry-pick of 539bc0e has failed:

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

You are currently cherry-picking commit 539bc0e2b.
  (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:   .buildkite/x-pack/pipeline.xpack.otel.yml
	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

Cherry-pick of 539bc0e has failed:

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

You are currently cherry-picking commit 539bc0e2b.
  (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:   .buildkite/x-pack/pipeline.xpack.otel.yml

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   NOTICE.txt
	both modified:   go.mod
	both modified:   go.sum
	both modified:   x-pack/otel/distributions/beats-otel-collector/manifest.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

@andrzej-stencel andrzej-stencel deleted the update-otel-to-v0.155.0 branch July 6, 2026 07:30
andrzej-stencel added a commit that referenced this pull request Jul 6, 2026
…v0.155.0`/`v1.61.0` (#51703)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0` (#51684)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0`

sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v0\.154.0/\1 v0.155.0/" go.mod
sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v1\.60.0/\1 v1.61.0/" go.mod
sed -i '' "s/\(github.com\/open-telemetry\/opentelemetry-collector-contrib\/.*\) v0\.154.0/\1 v0.155.0/" go.mod

* go mod tidy && make notice

* chore: update distro version

(cherry picked from commit 539bc0e)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum

* fix: resolve go.mod/go.sum conflicts, run go mod tidy and make notice

---------

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
andrzej-stencel added a commit that referenced this pull request Jul 14, 2026
…v0.155.0`/`v1.61.0` (#51702)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0` (#51684)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0`

sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v0\.154.0/\1 v0.155.0/" go.mod
sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v1\.60.0/\1 v1.61.0/" go.mod
sed -i '' "s/\(github.com\/open-telemetry\/opentelemetry-collector-contrib\/.*\) v0\.154.0/\1 v0.155.0/" go.mod

* go mod tidy && make notice

* chore: update distro version

(cherry picked from commit 539bc0e)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum

* fix: resolve go.mod conflicts keeping v0.155.0/v1.61.0 versions, run go mod tidy and make notice

---------

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
andrzej-stencel added a commit that referenced this pull request Jul 15, 2026
…`v0.155.0`/`v1.61.0` (#51704)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0` (#51684)

* chore: update OTel Collector dependencies to `v0.155.0`/`v1.61.0`

sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v0\.154.0/\1 v0.155.0/" go.mod
sed -i '' "s/\(go\.opentelemetry\.io\/collector.*\) v1\.60.0/\1 v1.61.0/" go.mod
sed -i '' "s/\(github.com\/open-telemetry\/opentelemetry-collector-contrib\/.*\) v0\.154.0/\1 v0.155.0/" go.mod

* go mod tidy && make notice

* chore: update distro version

(cherry picked from commit 539bc0e)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	go.sum
#	x-pack/otel/distributions/beats-otel-collector/manifest.yaml

* fix: resolve go.mod conflicts, run go mod tidy && make notice

* chore: resolve OTel manifest export version conflicts

* chore: remove unavailable logstash exporter from 8.19 manifest

---------

Co-authored-by: Andrzej Stencel <andrzej.stencel@elastic.co>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches skip-changelog Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants