Repository navigation
feat: update OTel Collector components from 0.164.x to 0.165.x - #17977
Conversation
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>
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
This pull request is merged. |
✅ 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. |
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
left a comment
There was a problem hiding this comment.
LGTM, but I don't know the process for breaking-changes coming from otelcol
alexandra5000
left a comment
There was a problem hiding this comment.
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>
Co-authored-by: Aleksandra Spilkowska <96738481+alexandra5000@users.noreply.github.com>
|
This pull request is now in conflicts. Could you fix it? 🙏 |
…tel-to-v0.165.0 Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # internal/edot/go.mod
…date-otel-to-v0.165.0
|
This pull request is now in conflicts. Could you fix it? 🙏 |
# Conflicts: # NOTICE-fips.txt # NOTICE.txt # go.mod # internal/edot/go.mod # internal/edot/go.sum
9890345
alexandra5000
left a comment
There was a problem hiding this comment.
LGTM, thanks for applying the requested changes!
…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>
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
|
@Mergifyio backport 9.6 9.5 9.4 8.19 |
❌ No backports have been createdDetails
Git reported the following error:
Git reported the following error:
Git reported the following error:
Git reported the following error: |
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>
… (#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>
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>
… (#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>
….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>
…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>
Related issues
Risk
Rationale
Updates the OpenTelemetry Collector components to the current latest version
v0.165.x. See changelogs sincev0.164.xfor Core and Contrib.v0.165.0/v1.71.0(confighttpis now stable atv1.71.0)v0.165.1(k8sattributesprocessorandpkg/ottlv1.4.1)Also updates Beats and Elastic OTel components to versions compatible with upstream
v0.165.x:65bae9ee687e, which is chore(deps): update OTel Collector dependencies from 0.164.x to 0.165.x beats#54611 (OTel Collector dependencies0.164.x->0.165.x).github.life-white.uk/elastic/opentelemetry-collector-components/*tov0.81.0.akamaisiemreceiver(v0.1.0) andprometheusscrapereceiver(v0.78.0) stay at their latest releases.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:
confighttpremoved the deprecated top-level keep-alive settings ([pkg/confighttp] remove deprecated fields open-telemetry/opentelemetry-collector#15973). The OTel manager injects ahealthcheckv2extension withhttp::keep_alives_enabled: true, which the collector now rejects, so the supervised EDOT Collector never started (caught byTestOTelManager_Runhanging). The setting is removed frominternal/pkg/otel/manager/healthcheck.go. Keep-alives are enabled by default, so behavior doesn't change.mapping::mode,retry::max_requestsand*_dynamic_index([chore][exporter/elasticsearch] Remove deprecated configs open-telemetry/opentelemetry-collector-contrib#52027, a[chore]PR with no upstream changelog entry).mapping::modehad been ignored since contribv0.147.0, but configs that set it now fail to load. It's removed from the EDOT samples (internal/edot/samples/**, caught byTestSamples), 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-changechangelog fragments describe the impact and the required action. The Elasticsearch exporter docs page marksmapping::modeandretry::max_requestsas removed in 9.7.Also switches
awsidentityfederationextensionfromelastic-agent-libs/logptobeats/v7/pkg/logp, because the Beatsidentityfederationpackage now takes thebeats/v7/pkg/logplogger.Notes for reviewers
otelconfreplace pointing at the fork from Fix component telemetry memory leak with partial config reload enabled #17877 is kept. Collectorv0.165.0requiresotelconf v0.27.0, and the fork still builds and passes the manager tests.mapping: mode: otel. Elastic Agent 9.0.0 to 9.0.3 shipped exporterv0.121.0, where the default mapping mode was stillnone, so those examples were relevant for 9.0 readers.removed 9.7badges 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: allinternal/edotunit tests pass. All root module unit tests pass, except for 4 tests that need credentials or remotes not available locally (pkg/testing/essagainst Elastic Cloud, andpkg/testing/tools/gitTestGetReleaseBranches); these are not related to this change.TestOTelManager_Runpasses after thehealthcheckv2fix. Before the fix it hung on every subprocess collector test, and it passes onmain.go vet -tags integration ./testing/...passes. This needed a fix intesting/integration/ess/heartbeat_browser_ca_test.go, which was also broken onmain: Import custom CAs into the browser trust store of complete images #17176 addedelastic-agent-libstypes there while chore(deps): replaceelastic-agent-libswithbeats/v7/pkg#17917 moved the shared types tobeats/v7/pkg. That broke lint and every integration test job, so the test now imports thebeats/v7/pkgpackages like the rest oftesting/integration/ess.mage check:allandmage check:lintpass.NOTICE.txt,NOTICE-fips.txtandinternal/edot/README.mdregenerated withmake noticeandmage otel:readme.Created-by: Claude Opus 5.5