Skip to content

[8.19](backport #17249) feat: update OTel Collector components from 0.161.0 to 0.163.0 - #17330

Merged
swiatekm merged 3 commits into
elastic:8.19from
andrzej-stencel:backport-17249-to-8.19
Oct 21, 2026
Merged

swiatekm merged 3 commits into
elastic:8.19from
andrzej-stencel:backport-17249-to-8.19

Conversation

@andrzej-stencel

Copy link
Copy Markdown
Contributor

Manual backport of #17249 to 8.19. Mergify could not create this backport automatically because of conflicts in go.mod/go.sum, the NOTICE files, the generated EDOT README and the beats submodule.

What does this PR do?

Updates the OpenTelemetry Collector components to v0.163.0. See changelogs since v0.161.0 for Core and Contrib.

Also updates Beats and Elastic OTel components to versions compatible with upstream v0.163.0:

  • elastic/beats is set to 4dd243778db2db9be912591b19c7b3ab25ecc5c4, the current tip of the beats 8.19 branch (which already contains the beats update to OTel v0.163.0).
  • elastic/opentelemetry-collector-components v0.74.0 → v0.77.0, elastic/opentelemetry-lib v0.47.0 → v0.49.0, as on main.

On 8.19, elastic/beats is a regular Go module dependency (not a git submodule), so the original commit could not be cherry-picked as-is. The dependency updates were re-applied by hand (bumping all go.opentelemetry.io/collector/* and opentelemetry-collector-contrib/* modules, dropping the removed go.opentelemetry.io/collector root module and pkg/pdatautil), followed by mage tidy, mage notice and mage otel:readme (which regenerates internal/pkg/otel/README.md on this branch).

The test changes to internal/edot/otelcol/monitoring_test.go and internal/pkg/otel/translate/beatsauth_test.go from the original PR are not included, since those files do not exist on 8.19. Conflicts in testing/integration/ess/diagnostics_test.go were resolved keeping the 8.19 diagnostics archive file patterns (no per-stream subdirectories).

Compared to the original PR, this backport does not include beats #53811 (beatsauthextension continue_on_error fix), as it has not been backported to the beats 8.19 branch yet.

Why is it important?

We should be keeping the OTel components up to date with upstream as much as possible.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • 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
  • [ ] I have added an integration test or an E2E test

Disruptive User Impact

None expected; dependency update.

How to test this PR locally

mage test:all

Locally verified: go build ./... and go vet for the root and internal/edot modules, unit tests of ./internal/pkg/otel/... and internal/edot/..., and golangci-lint on the changed files.

Related issues

Created-By: Claude Fable 5.1

…ic#17249)

Update elastic/beats to 4dd243778db2db9be912591b19c7b3ab25ecc5c4

Update OTel Collector components from 0.161.0 to 0.163.0.

Fixes some tests that started failing due to the update.

Assisted-by: Cursor, Model: GPT-5.6 Sol & Terra

---------

Co-authored-by: Tiago Queiroz <tiago.queiroz@elastic.co>

(cherry picked from commit ddcb525)
Co-authored-by: Cursor <cursoragent@cursor.com>
@andrzej-stencel
andrzej-stencel requested a review from a team as a code owner October 20, 2026 14:46
@andrzej-stencel
andrzej-stencel requested review from samuelvl and removed request for a team October 20, 2026 14:46
@andrzej-stencel andrzej-stencel added enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport labels Oct 20, 2026
@andrzej-stencel andrzej-stencel self-assigned this Oct 20, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @andrzej-stencel

@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@swiatekm
swiatekm merged commit e2c44e7 into elastic:8.19 Oct 21, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport enhancement New feature or request Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants