Skip to content

feat: update OTel Collector components from 0.164.x to 0.165.x - #17977

Merged
andrzej-stencel merged 13 commits into
elastic:mainfrom
andrzej-stencel:update-otel-to-v0.165.0
Nov 17, 2026
Merged

andrzej-stencel merged 13 commits into
elastic:mainfrom
andrzej-stencel:update-otel-to-v0.165.0

Conversation

@andrzej-stencel

@andrzej-stencel andrzej-stencel commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Related issues

Risk

  • Low: isolated change, no effect on Fleet connectivity, policy handling, or upgrades
  • Medium: changes existing behavior, but is feature flagged or a failure does not affect Fleet connectivity, policy handling, or upgrades
  • High: touches Fleet connectivity, policy application, upgrade/rollback, installation, or changes defaults for existing users

Rationale

Updates the OpenTelemetry Collector components to the current latest version v0.165.x. See changelogs since v0.164.x for Core and Contrib.

  • Core: v0.165.0 / v1.71.0 (confighttp is now stable at v1.71.0)
  • Contrib: v0.165.1 (k8sattributesprocessor and pkg/ottl v1.4.1)

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

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

Removed upstream settings

Two upstream removals required changes in this repository:

  • confighttp removed the deprecated top-level keep-alive settings ([pkg/confighttp] remove deprecated fields open-telemetry/opentelemetry-collector#15973). The OTel manager injects a healthcheckv2 extension with http::keep_alives_enabled: true, which the collector now rejects, so the supervised EDOT Collector never started (caught by TestOTelManager_Run hanging). The setting is removed from internal/pkg/otel/manager/healthcheck.go. Keep-alives are enabled by default, so behavior doesn't change.
  • The Elasticsearch exporter removed mapping::mode, retry::max_requests and *_dynamic_index ([chore][exporter/elasticsearch] Remove deprecated configs open-telemetry/opentelemetry-collector-contrib#52027, a [chore] PR with no upstream changelog entry). mapping::mode had been ignored since contrib v0.147.0, but configs that set it now fail to load. It's removed from the EDOT samples (internal/edot/samples/**, caught by TestSamples), the kube-stack Helm chart values, docs examples, an integration test fixture and a test helper.

Both are user-facing: an EDOT Collector configuration that still sets any of these settings no longer loads. Two breaking-change changelog fragments describe the impact and the required action. The Elasticsearch exporter docs page marks mapping::mode and retry::max_requests as removed in 9.7.

Also switches awsidentityfederationextension from elastic-agent-libs/logp to beats/v7/pkg/logp, because the Beats identityfederation package now takes the beats/v7/pkg/logp logger.

Notes for reviewers

  • The otelconf replace pointing at the fork from Fix component telemetry memory leak with partial config reload enabled #17877 is kept. Collector v0.165.0 requires otelconf v0.27.0, and the fork still builds and passes the manager tests.
  • The docs examples drop mapping: mode: otel. Elastic Agent 9.0.0 to 9.0.3 shipped exporter v0.121.0, where the default mapping mode was still none, so those examples were relevant for 9.0 readers.
  • When backporting, the removed 9.7 badges on the Elasticsearch exporter docs page and the changelog fragments may need adjusting, because the removal would also ship in the backported patch releases.

Rollout and safety

N/A: dependency update with no new configuration or persisted state. The OTel components are updated to their next upstream minor version. The removed settings are either injected by the agent (fixed here) or user-supplied EDOT Collector configuration (documented in the breaking-change fragments).

Testing

  • mage test:all: all internal/edot unit tests pass. All root module unit tests pass, except for 4 tests that need credentials or remotes not available locally (pkg/testing/ess against Elastic Cloud, and pkg/testing/tools/git TestGetReleaseBranches); these are not related to this change.
  • TestOTelManager_Run passes after the healthcheckv2 fix. Before the fix it hung on every subprocess collector test, and it passes on main.
  • go vet -tags integration ./testing/... passes. This needed a fix in testing/integration/ess/heartbeat_browser_ca_test.go, which was also broken on main: Import custom CAs into the browser trust store of complete images #17176 added elastic-agent-libs types there while chore(deps): replace elastic-agent-libs with beats/v7/pkg #17917 moved the shared types to beats/v7/pkg. That broke lint and every integration test job, so the test now imports the beats/v7/pkg packages like the rest of testing/integration/ess.
  • mage check:all and mage check:lint pass.
  • NOTICE.txt, NOTICE-fips.txt and internal/edot/README.md regenerated with make notice and mage otel:readme.

Created-by: Claude Opus 5.5

Also updates OTel Collector components from 0.164.x to 0.165.x:
Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1),
and Elastic OTel components to v0.81.0.

Removes settings that are no longer accepted by the updated components:
- `keep_alives_enabled` from the healthcheckv2 extension config injected
  by the OTel manager (removed from confighttp server settings).
- `mapping::mode` from the Elasticsearch exporter in samples, Helm chart,
  docs and test data (removed from the exporter; it was already ignored).

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>
@andrzej-stencel
andrzej-stencel requested review from a team as code owners November 12, 2026 20:20
@andrzej-stencel andrzej-stencel added the enhancement New feature or request label Nov 12, 2026
@andrzej-stencel andrzej-stencel added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team backport-active-all Automated backport with mergify to all the active branches labels Nov 12, 2026
@andrzej-stencel andrzej-stencel self-assigned this Nov 12, 2026
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

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

@mergify

mergify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

andrzej-stencel and others added 2 commits November 12, 2026 21:58
The test was added with elastic-agent-libs imports while elastic#17917 moved the
shared test helpers to beats/v7/pkg, so the testing/integration/ess package
no longer compiled.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>
…nfigs

The Prometheus remote write exporter has never supported sending_queue
(it uses remote_write_queue). Before confighttp v1.71.0, the custom
Unmarshal of the squash-embedded confighttp.ClientConfig used
WithIgnoreUnused, which made the exporter silently accept unknown keys.
confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now
rejected and the collector failed to start in these tests.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>
macdewee
macdewee previously approved these changes Nov 13, 2026

@macdewee macdewee 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, but I don't know the process for breaking-changes coming from otelcol

@alexandra5000 alexandra5000 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.

Thank you for adding this!

Outside the changed lines, elasticsearchexporter.md line 358 ("use alternative mapping modes") and lines 364 and 366 ("your chosen mapping mode") still read as if you can set a global mode, which now contradicts the per-request selection described above.

Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
andrzej-stencel and others added 2 commits November 13, 2026 15:58
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
@mergify

mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b update-otel-to-v0.165.0 upstream/update-otel-to-v0.165.0
git merge upstream/main
git push upstream update-otel-to-v0.165.0

…tel-to-v0.165.0

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	internal/edot/go.mod
macdewee
macdewee previously approved these changes Nov 16, 2026
swiatekm
swiatekm previously approved these changes Nov 16, 2026
@mergify

mergify Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b update-otel-to-v0.165.0 upstream/update-otel-to-v0.165.0
git merge upstream/main
git push upstream update-otel-to-v0.165.0

# Conflicts:
#	NOTICE-fips.txt
#	NOTICE.txt
#	go.mod
#	internal/edot/go.mod
#	internal/edot/go.sum
@andrzej-stencel
andrzej-stencel dismissed stale reviews from swiatekm and macdewee via 9890345 November 16, 2026 14:10
alexandra5000
alexandra5000 previously approved these changes Nov 16, 2026

@alexandra5000 alexandra5000 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, thanks for applying the requested changes!

andrzej-stencel and others added 2 commits November 16, 2026 20:39
…ing extensions

Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls
it: the service now notifies only extensions that implement
extensioncapabilities.ComponentStatusWatcher (method Changed).

The elastic_diagnostics and elastic_meter_lifecycle extensions only
implemented the old interface, so they stopped receiving StatusStopped
events. Diagnostic hooks of receivers torn down by a partial reload were
never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the
meters of stopped receivers were never released.

Implement the new interface in both extensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The EDOT README generator treats every direct OTel dependency whose path
contains /extension/ as an extension component. The meterlifecycle
extension now imports extensioncapabilities directly for the
ComponentStatusWatcher interface, so the generator listed that API module
as an extension and check-ci failed on the stale README.

Skip modules that hold collector APIs rather than a component, starting
with extensioncapabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@infra-vault-gh-plugin-prod

Copy link
Copy Markdown

💛 Build succeeded, but was flaky

Failed CI Steps

History

cc @andrzej-stencel

@andrzej-stencel
andrzej-stencel enabled auto-merge (squash) November 17, 2026 09:35
@andrzej-stencel
andrzej-stencel merged commit 073f69a into elastic:main Nov 17, 2026
46 of 48 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

@Mergifyio backport 9.6 9.5 9.4 8.19

@mergify

mergify Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

backport 9.6 9.5 9.4 8.19

❌ No backports have been created

Details
  • Backport to branch 9.6 failed

Git reported the following error:

hint: Recursive merging with submodules currently only supports trivial cases.
hint: Please manually handle the merging of each conflicted submodule.
hint: This can be accomplished with the following steps:
hint:  - come back to superproject and run:
hint:
hint:       git add beats
hint:
hint:    to record the above merge or update
hint:  - resolve any other conflicts in the superproject
hint:  - commit the resulting index in the superproject
hint:
hint: Disable this message with "git config set advice.submoduleMergeConflict false"
Auto-merging NOTICE-fips.txt
CONFLICT (content): Merge conflict in NOTICE-fips.txt
Auto-merging NOTICE.txt
CONFLICT (content): Merge conflict in NOTICE.txt
Failed to merge submodule beats (not checked out)
CONFLICT (submodule): Merge conflict in beats
Auto-merging deploy/helm/edot-collector/kube-stack/values.yaml
Auto-merging docs/reference/edot-collector/config/default-config-standalone.md
Auto-merging go.mod
CONFLICT (content): Merge conflict in go.mod
Auto-merging go.sum
CONFLICT (content): Merge conflict in go.sum
Auto-merging internal/edot/go.mod
CONFLICT (content): Merge conflict in internal/edot/go.mod
Auto-merging internal/edot/go.sum
CONFLICT (content): Merge conflict in internal/edot/go.sum
error: could not apply 073f69a... feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: Disable this message with "git config set advice.mergeConflict false"
  • Backport to branch 9.5 failed

Git reported the following error:

hint: Recursive merging with submodules currently only supports trivial cases.
hint: Please manually handle the merging of each conflicted submodule.
hint: This can be accomplished with the following steps:
hint:  - come back to superproject and run:
hint:
hint:       git add beats
hint:
hint:    to record the above merge or update
hint:  - resolve any other conflicts in the superproject
hint:  - commit the resulting index in the superproject
hint:
hint: Disable this message with "git config set advice.submoduleMergeConflict false"
Auto-merging NOTICE-fips.txt
CONFLICT (content): Merge conflict in NOTICE-fips.txt
Auto-merging NOTICE.txt
CONFLICT (content): Merge conflict in NOTICE.txt
Failed to merge submodule beats (not checked out)
CONFLICT (submodule): Merge conflict in beats
Auto-merging deploy/helm/edot-collector/kube-stack/values.yaml
CONFLICT (content): Merge conflict in deploy/helm/edot-collector/kube-stack/values.yaml
Auto-merging docs/reference/edot-collector/components/elasticapmconnector.md
Auto-merging docs/reference/edot-collector/components/elasticapmprocessor.md
Auto-merging docs/reference/edot-collector/components/elasticsearchexporter.md
CONFLICT (content): Merge conflict in docs/reference/edot-collector/components/elasticsearchexporter.md
Auto-merging docs/reference/edot-collector/config/configure-tracing-collection.md
Auto-merging docs/reference/edot-collector/config/default-config-standalone.md
Auto-merging go.mod
CONFLICT (content): Merge conflict in go.mod
Auto-merging go.sum
CONFLICT (content): Merge conflict in go.sum
Auto-merging internal/edot/README.md
CONFLICT (content): Merge conflict in internal/edot/README.md
CONFLICT (modify/delete): internal/edot/extensions/meterlifecycle/extension.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of internal/edot/extensions/meterlifecycle/extension.go left in tree.
Auto-merging internal/edot/go.mod
CONFLICT (content): Merge conflict in internal/edot/go.mod
Auto-merging internal/edot/go.sum
CONFLICT (content): Merge conflict in internal/edot/go.sum
Auto-merging internal/edot/samples/darwin/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/darwin/logs_metrics_traces.yml
Auto-merging internal/edot/samples/darwin/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/darwin/platformlogs_hostmetrics.yml
Auto-merging internal/edot/samples/linux/gateway.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/gateway.yml
Auto-merging internal/edot/samples/linux/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/logs_metrics_traces.yml
Auto-merging internal/edot/samples/linux/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/platformlogs_hostmetrics.yml
Auto-merging internal/edot/samples/windows/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/windows/logs_metrics_traces.yml
Auto-merging internal/edot/samples/windows/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/windows/platformlogs_hostmetrics.yml
Auto-merging internal/pkg/otel/extension/elasticdiagnostics/extension.go
CONFLICT (content): Merge conflict in internal/pkg/otel/extension/elasticdiagnostics/extension.go
Auto-merging internal/pkg/otel/extension/elasticdiagnostics/extension_test.go
CONFLICT (content): Merge conflict in internal/pkg/otel/extension/elasticdiagnostics/extension_test.go
CONFLICT (modify/delete): testing/integration/ess/otel_prometheusremotewrite_test.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of testing/integration/ess/otel_prometheusremotewrite_test.go left in tree.
CONFLICT (modify/delete): testing/integration/ess/otel_prometheusscrape_test.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of testing/integration/ess/otel_prometheusscrape_test.go left in tree.
error: could not apply 073f69a... feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: Disable this message with "git config set advice.mergeConflict false"
  • Backport to branch 9.4 failed

Git reported the following error:

hint: Recursive merging with submodules currently only supports trivial cases.
hint: Please manually handle the merging of each conflicted submodule.
hint: This can be accomplished with the following steps:
hint:  - come back to superproject and run:
hint:
hint:       git add beats
hint:
hint:    to record the above merge or update
hint:  - resolve any other conflicts in the superproject
hint:  - commit the resulting index in the superproject
hint:
hint: Disable this message with "git config set advice.submoduleMergeConflict false"
Auto-merging NOTICE-fips.txt
CONFLICT (content): Merge conflict in NOTICE-fips.txt
Auto-merging NOTICE.txt
CONFLICT (content): Merge conflict in NOTICE.txt
Failed to merge submodule beats (not checked out)
CONFLICT (submodule): Merge conflict in beats
Auto-merging deploy/helm/edot-collector/kube-stack/values.yaml
CONFLICT (content): Merge conflict in deploy/helm/edot-collector/kube-stack/values.yaml
Auto-merging docs/reference/edot-collector/components/elasticapmconnector.md
Auto-merging docs/reference/edot-collector/components/elasticapmprocessor.md
Auto-merging docs/reference/edot-collector/components/elasticsearchexporter.md
CONFLICT (content): Merge conflict in docs/reference/edot-collector/components/elasticsearchexporter.md
Auto-merging docs/reference/edot-collector/config/configure-tracing-collection.md
Auto-merging docs/reference/edot-collector/config/default-config-standalone.md
Auto-merging go.mod
CONFLICT (content): Merge conflict in go.mod
Auto-merging go.sum
CONFLICT (content): Merge conflict in go.sum
Auto-merging internal/edot/README.md
CONFLICT (content): Merge conflict in internal/edot/README.md
CONFLICT (modify/delete): internal/edot/extensions/meterlifecycle/extension.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of internal/edot/extensions/meterlifecycle/extension.go left in tree.
Auto-merging internal/edot/go.mod
CONFLICT (content): Merge conflict in internal/edot/go.mod
Auto-merging internal/edot/go.sum
CONFLICT (content): Merge conflict in internal/edot/go.sum
Auto-merging internal/edot/samples/darwin/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/darwin/logs_metrics_traces.yml
Auto-merging internal/edot/samples/darwin/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/darwin/platformlogs_hostmetrics.yml
Auto-merging internal/edot/samples/linux/gateway.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/gateway.yml
Auto-merging internal/edot/samples/linux/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/logs_metrics_traces.yml
Auto-merging internal/edot/samples/linux/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/linux/platformlogs_hostmetrics.yml
Auto-merging internal/edot/samples/windows/logs_metrics_traces.yml
CONFLICT (content): Merge conflict in internal/edot/samples/windows/logs_metrics_traces.yml
Auto-merging internal/edot/samples/windows/platformlogs_hostmetrics.yml
CONFLICT (content): Merge conflict in internal/edot/samples/windows/platformlogs_hostmetrics.yml
Auto-merging internal/pkg/otel/extension/elasticdiagnostics/extension.go
CONFLICT (content): Merge conflict in internal/pkg/otel/extension/elasticdiagnostics/extension.go
Auto-merging internal/pkg/otel/extension/elasticdiagnostics/extension_test.go
CONFLICT (content): Merge conflict in internal/pkg/otel/extension/elasticdiagnostics/extension_test.go
CONFLICT (modify/delete): testing/integration/ess/otel_prometheusremotewrite_test.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of testing/integration/ess/otel_prometheusremotewrite_test.go left in tree.
CONFLICT (modify/delete): testing/integration/ess/otel_prometheusscrape_test.go deleted in HEAD and modified in 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)).  Version 073f69a (feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)) of testing/integration/ess/otel_prometheusscrape_test.go left in tree.
error: could not apply 073f69a... feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: Disable this message with "git config set advice.mergeConflict false"
  • Backport to branch 8.19 failed

Git reported the following error:

error: 'beats' does not have a commit checked out
error: unable to index file 'beats'
fatal: updating files failed

andrzej-stencel added a commit to andrzej-stencel/elastic-agent that referenced this pull request Nov 17, 2026
The Elasticsearch exporter no longer accepts mapping::mode, so
TestSamples failed on Linux. This sample only exists on 9.5, so the
cherry-pick of elastic#17977 did not touch it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel added a commit that referenced this pull request Nov 17, 2026
… (#18049)

* Update elastic/beats to 65bae9ee687e

Also updates OTel Collector components from 0.164.x to 0.165.x:
Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1),
and Elastic OTel components to v0.81.0.

Removes settings that are no longer accepted by the updated components:
- `keep_alives_enabled` from the healthcheckv2 extension config injected
  by the OTel manager (removed from confighttp server settings).
- `mapping::mode` from the Elasticsearch exporter in samples, Helm chart,
  docs and test data (removed from the exporter; it was already ignored).

Created-by: Claude Opus 5.5


* Use beats/v7/pkg types in heartbeat browser CA integration test

The test was added with elastic-agent-libs imports while #17917 moved the
shared test helpers to beats/v7/pkg, so the testing/integration/ess package
no longer compiled.

Created-by: Claude Opus 5.5


* Remove unsupported sending_queue from prometheus_remote_write test configs

The Prometheus remote write exporter has never supported sending_queue
(it uses remote_write_queue). Before confighttp v1.71.0, the custom
Unmarshal of the squash-embedded confighttp.ClientConfig used
WithIgnoreUnused, which made the exporter silently accept unknown keys.
confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now
rejected and the collector failed to start in these tests.

Created-by: Claude Opus 5.5


* Apply suggestion from @alexandra5000



* Apply suggestion from @alexandra5000



* docs: update removed versions

* fix: use extensioncapabilities.ComponentStatusWatcher in status-watching extensions

Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls
it: the service now notifies only extensions that implement
extensioncapabilities.ComponentStatusWatcher (method Changed).

The elastic_diagnostics and elastic_meter_lifecycle extensions only
implemented the old interface, so they stopped receiving StatusStopped
events. Diagnostic hooks of receivers torn down by a partial reload were
never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the
meters of stopped receivers were never released.

Implement the new interface in both extensions.



* build: don't list extensioncapabilities as an EDOT component

The EDOT README generator treats every direct OTel dependency whose path
contains /extension/ as an extension component. The meterlifecycle
extension now imports extensioncapabilities directly for the
ComponentStatusWatcher interface, so the generator listed that API module
as an extension and check-ci failed on the stale README.

Skip modules that hold collector APIs rather than a component, starting
with extensioncapabilities.



---------




(cherry picked from commit 073f69a)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel added a commit to andrzej-stencel/elastic-agent that referenced this pull request Nov 17, 2026
9.5 gained elastic#18033 (drop diagnostic hooks for stopped otel components),
so apply the part of elastic#17977 that ports elasticdiagnostics to
extensioncapabilities.ComponentStatusWatcher: collector 0.165 no longer
calls componentstatus.Watcher, and TestDiagnosticHooksDroppedOnPartialReload
failed without it. go.mod keeps the 0.165 versions with 9.5's
consumer/service/receiver moves to direct dependencies; NOTICE regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel added a commit that referenced this pull request Nov 18, 2026
… (#18050)

* Update elastic/beats to 65bae9ee687e

Also updates OTel Collector components from 0.164.x to 0.165.x:
Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1),
and Elastic OTel components to v0.81.0.

Removes settings that are no longer accepted by the updated components:
- `keep_alives_enabled` from the healthcheckv2 extension config injected
  by the OTel manager (removed from confighttp server settings).
- `mapping::mode` from the Elasticsearch exporter in samples, Helm chart,
  docs and test data (removed from the exporter; it was already ignored).

Created-by: Claude Opus 5.5


* Use beats/v7/pkg types in heartbeat browser CA integration test

The test was added with elastic-agent-libs imports while #17917 moved the
shared test helpers to beats/v7/pkg, so the testing/integration/ess package
no longer compiled.

Created-by: Claude Opus 5.5


* Remove unsupported sending_queue from prometheus_remote_write test configs

The Prometheus remote write exporter has never supported sending_queue
(it uses remote_write_queue). Before confighttp v1.71.0, the custom
Unmarshal of the squash-embedded confighttp.ClientConfig used
WithIgnoreUnused, which made the exporter silently accept unknown keys.
confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now
rejected and the collector failed to start in these tests.

Created-by: Claude Opus 5.5


* Apply suggestion from @alexandra5000



* Apply suggestion from @alexandra5000



* docs: update removed versions

* fix: use extensioncapabilities.ComponentStatusWatcher in status-watching extensions

Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls
it: the service now notifies only extensions that implement
extensioncapabilities.ComponentStatusWatcher (method Changed).

The elastic_diagnostics and elastic_meter_lifecycle extensions only
implemented the old interface, so they stopped receiving StatusStopped
events. Diagnostic hooks of receivers torn down by a partial reload were
never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the
meters of stopped receivers were never released.

Implement the new interface in both extensions.



* build: don't list extensioncapabilities as an EDOT component

The EDOT README generator treats every direct OTel dependency whose path
contains /extension/ as an extension component. The meterlifecycle
extension now imports extensioncapabilities directly for the
ComponentStatusWatcher interface, so the generator listed that API module
as an extension and check-ci failed on the stale README.

Skip modules that hold collector APIs rather than a component, starting
with extensioncapabilities.



---------




(cherry picked from commit 073f69a)

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel added a commit that referenced this pull request Nov 18, 2026
….164.x to 0.165.x (#18052)

* feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)

* Update elastic/beats to 65bae9ee687e

Also updates OTel Collector components from 0.164.x to 0.165.x:
Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1),
and Elastic OTel components to v0.81.0.

Removes settings that are no longer accepted by the updated components:
- `keep_alives_enabled` from the healthcheckv2 extension config injected
  by the OTel manager (removed from confighttp server settings).
- `mapping::mode` from the Elasticsearch exporter in samples, Helm chart,
  docs and test data (removed from the exporter; it was already ignored).

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Use beats/v7/pkg types in heartbeat browser CA integration test

The test was added with elastic-agent-libs imports while #17917 moved the
shared test helpers to beats/v7/pkg, so the testing/integration/ess package
no longer compiled.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove unsupported sending_queue from prometheus_remote_write test configs

The Prometheus remote write exporter has never supported sending_queue
(it uses remote_write_queue). Before confighttp v1.71.0, the custom
Unmarshal of the squash-embedded confighttp.ClientConfig used
WithIgnoreUnused, which made the exporter silently accept unknown keys.
confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now
rejected and the collector failed to start in these tests.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Apply suggestion from @alexandra5000

Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>

* Apply suggestion from @alexandra5000

Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>

* docs: update removed versions

* fix: use extensioncapabilities.ComponentStatusWatcher in status-watching extensions

Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls
it: the service now notifies only extensions that implement
extensioncapabilities.ComponentStatusWatcher (method Changed).

The elastic_diagnostics and elastic_meter_lifecycle extensions only
implemented the old interface, so they stopped receiving StatusStopped
events. Diagnostic hooks of receivers torn down by a partial reload were
never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the
meters of stopped receivers were never released.

Implement the new interface in both extensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* build: don't list extensioncapabilities as an EDOT component

The EDOT README generator treats every direct OTel dependency whose path
contains /extension/ as an extension component. The meterlifecycle
extension now imports extensioncapabilities directly for the
ComponentStatusWatcher interface, so the generator listed that API module
as an extension and check-ci failed on the stale README.

Skip modules that hold collector APIs rather than a component, starting
with extensioncapabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 073f69a)

* Remove mapping::mode from the Linux profiles_metrics EDOT sample

The Elasticsearch exporter no longer accepts mapping::mode, so
TestSamples failed on Linux. This sample only exists on 9.5, so the
cherry-pick of #17977 did not touch it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrzej-stencel added a commit that referenced this pull request Nov 23, 2026
…0.164.x to 0.165.x (#18051)

* feat: update OTel Collector components from 0.164.x to 0.165.x (#17977)

* Update elastic/beats to 65bae9ee687e

Also updates OTel Collector components from 0.164.x to 0.165.x:
Core v0.165.0 / v1.71.0, Contrib v0.165.1 (k8sattributesprocessor v1.4.1),
and Elastic OTel components to v0.81.0.

Removes settings that are no longer accepted by the updated components:
- `keep_alives_enabled` from the healthcheckv2 extension config injected
  by the OTel manager (removed from confighttp server settings).
- `mapping::mode` from the Elasticsearch exporter in samples, Helm chart,
  docs and test data (removed from the exporter; it was already ignored).

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Use beats/v7/pkg types in heartbeat browser CA integration test

The test was added with elastic-agent-libs imports while #17917 moved the
shared test helpers to beats/v7/pkg, so the testing/integration/ess package
no longer compiled.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Remove unsupported sending_queue from prometheus_remote_write test configs

The Prometheus remote write exporter has never supported sending_queue
(it uses remote_write_queue). Before confighttp v1.71.0, the custom
Unmarshal of the squash-embedded confighttp.ClientConfig used
WithIgnoreUnused, which made the exporter silently accept unknown keys.
confighttp v1.71.0 dropped that Unmarshal, so unknown keys are now
rejected and the collector failed to start in these tests.

Created-by: Claude Opus 5.5
Co-authored-by: Cursor <cursoragent@cursor.com>

* Apply suggestion from @alexandra5000

Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>

* Apply suggestion from @alexandra5000

Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>

* docs: update removed versions

* fix: use extensioncapabilities.ComponentStatusWatcher in status-watching extensions

Collector v0.165.0 deprecated componentstatus.Watcher and no longer calls
it: the service now notifies only extensions that implement
extensioncapabilities.ComponentStatusWatcher (method Changed).

The elastic_diagnostics and elastic_meter_lifecycle extensions only
implemented the old interface, so they stopped receiving StatusStopped
events. Diagnostic hooks of receivers torn down by a partial reload were
never dropped (TestDiagnosticHooksDroppedOnPartialReload failed), and the
meters of stopped receivers were never released.

Implement the new interface in both extensions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* build: don't list extensioncapabilities as an EDOT component

The EDOT README generator treats every direct OTel dependency whose path
contains /extension/ as an extension component. The meterlifecycle
extension now imports extensioncapabilities directly for the
ComponentStatusWatcher interface, so the generator listed that API module
as an extension and check-ci failed on the stale README.

Skip modules that hold collector APIs rather than a component, starting
with extensioncapabilities.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Backport to 8.19 adjustments:
- Update elastic/beats to be9db5d0cd5d, the head of the Beats 8.19 branch,
  instead of the main commit 65bae9ee687e. 8.19 has no beats submodule, so
  only the go.mod pin changes.
- Apply only the version bumps of the original change to the 8.19 go.mod files
  and tidy, then regenerate NOTICE.txt, NOTICE-fips.txt and
  internal/pkg/otel/README.md.
- Remove `mapping::mode` from all Elasticsearch exporters in the 8.19 samples
  and Helm values, including the `elasticsearch/ecs` exporters that only exist
  on 8.19. The setting has been ignored since v0.145.0.
- Keep the 8.19 versions of files whose changed parts don't exist on 8.19:
  elasticdiagnostics does not implement a component status watcher there, and
  the EDOT component docs, EDOT samples, meterlifecycle extension,
  verifierreceiver and prometheus integration tests are not on 8.19.
- Leave docs/reference/edot-collector/config/default-config-standalone.md as
  it is on 8.19: its conflicting section differs from main, and docs are not
  edited in this backport.

(cherry picked from commit 073f69a)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* build: use a tagged switch in the OTel dependency classifier

golangci-lint (staticcheck QF1003) flags the if/else chain on
dependency.ComponentType now that the backport touches deps.go. Use a
tagged switch, as on main. No behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.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 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.

4 participants