Skip to content

cleanup(otel): move otelbeat packages to x-pack/otel#47873

Merged
mauri870 merged 27 commits into
elastic:mainfrom
mauri870:rellocate-xpack-otel
Jan 8, 2026
Merged

cleanup(otel): move otelbeat packages to x-pack/otel#47873
mauri870 merged 27 commits into
elastic:mainfrom
mauri870:rellocate-xpack-otel

Conversation

@mauri870

@mauri870 mauri870 commented Dec 2, 2025

Copy link
Copy Markdown
Member

Proposed commit message

Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

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. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

How to test this PR locally

cd x-pack/filebeat
mage goIntegTest

cd x-pack/metricbeat
mage goIntegTest

Related issues

@mauri870 mauri870 self-assigned this Dec 2, 2025
@mauri870 mauri870 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 Dec 2, 2025
@botelastic botelastic Bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 2, 2025
@github-actions

github-actions Bot commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mauri870 mauri870 force-pushed the rellocate-xpack-otel branch from 61955a4 to 38a3c97 Compare December 3, 2025 11:20
@mauri870

mauri870 commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

/test

@mauri870

mauri870 commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

/test

@mauri870 mauri870 marked this pull request as ready for review December 3, 2025 12:55
@mauri870 mauri870 requested review from a team as code owners December 3, 2025 12:55
@mauri870 mauri870 requested review from VihasMakwana and faec December 3, 2025 12:55
@elasticmachine

Copy link
Copy Markdown
Contributor

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

@mauri870

mauri870 commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

Some intermittent agent lost failures are occurring in CI. It seems to be a widespread issue on Buildkite.

@mauri870

mauri870 commented Dec 3, 2025

Copy link
Copy Markdown
Member Author

/test

Comment thread x-pack/otel/beatconverter/beatconverter.go
@pierrehilbert pierrehilbert added the Team:Security-Service Integrations Security Service Integrations Team label Dec 4, 2025
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@pierrehilbert

Copy link
Copy Markdown
Contributor

@narph we will need someone from your team to review here please.

@mauri870 mauri870 requested a review from cmacknz December 4, 2025 11:44
mergify Bot pushed a commit that referenced this pull request Jan 8, 2026
Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)

# Conflicts:
#	.buildkite/x-pack/pipeline.xpack.otel.yml
#	libbeat/common/net_test.go
#	libbeat/otelbeat/oteltest/helper.go
#	x-pack/filebeat/fbreceiver/receiver_test.go
#	x-pack/filebeat/input/gcppubsub/otel_test.go
#	x-pack/filebeat/tests/integration/otel_lsexporter_test.go
#	x-pack/libbeat/cmd/instance/receiver.go
#	x-pack/libbeat/outputs/otelconsumer/otelconsumer.go
#	x-pack/metricbeat/mbreceiver/receiver_test.go
#	x-pack/otel/beatconverter/beatconverter.go
#	x-pack/otel/exporter/logstashexporter/exporter.go
#	x-pack/otel/exporter/logstashexporter/exporter_test.go
#	x-pack/otel/exporter/logstashexporter/exporter_tls_test.go
#	x-pack/otel/exporter/logstashexporter/internal/batch_test.go
#	x-pack/otel/exporter/logstashexporter/internal/event.go
#	x-pack/otel/exporter/logstashexporter/internal/event_test.go
#	x-pack/otel/extension/beatsauthextension/beatsauth_test.go
#	x-pack/otel/otelctx/otelctx.go
#	x-pack/otel/otelctx/otelctx_test.go
#	x-pack/otel/oteltest/helper.go
#	x-pack/otel/oteltest/tls_helper.go
#	x-pack/otel/oteltranslate/outputs/logstash/config_otel.go
mergify Bot pushed a commit that referenced this pull request Jan 8, 2026
Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)
mergify Bot pushed a commit that referenced this pull request Jan 8, 2026
Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)
mauri870 added a commit that referenced this pull request Jan 8, 2026
Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 8, 2026
…k/otel (#48340)

* cleanup(otel): move otelbeat packages to x-pack/otel (#47873)

Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)

* fix imports

---------

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 12, 2026
PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.
mergify Bot pushed a commit that referenced this pull request Jan 12, 2026
PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)

# Conflicts:
#	.buildkite/x-pack/pipeline.xpack.otel.yml
mergify Bot pushed a commit that referenced this pull request Jan 12, 2026
PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)
mergify Bot pushed a commit that referenced this pull request Jan 12, 2026
PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)

# Conflicts:
#	.buildkite/x-pack/pipeline.xpack.otel.yml
mergify Bot pushed a commit that referenced this pull request Jan 12, 2026
PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)
mauri870 added a commit that referenced this pull request Jan 12, 2026
… (#48391)

PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 12, 2026
… (#48393)

PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 13, 2026
…k/otel (#48339)

* cleanup(otel): move otelbeat packages to x-pack/otel (#47873)

Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)

# Conflicts:
#	.buildkite/x-pack/pipeline.xpack.otel.yml
#	libbeat/common/net_test.go
#	libbeat/otelbeat/oteltest/helper.go
#	x-pack/filebeat/fbreceiver/receiver_test.go
#	x-pack/filebeat/input/gcppubsub/otel_test.go
#	x-pack/filebeat/tests/integration/otel_lsexporter_test.go
#	x-pack/libbeat/cmd/instance/receiver.go
#	x-pack/libbeat/outputs/otelconsumer/otelconsumer.go
#	x-pack/metricbeat/mbreceiver/receiver_test.go
#	x-pack/otel/beatconverter/beatconverter.go
#	x-pack/otel/exporter/logstashexporter/exporter.go
#	x-pack/otel/exporter/logstashexporter/exporter_test.go
#	x-pack/otel/exporter/logstashexporter/exporter_tls_test.go
#	x-pack/otel/exporter/logstashexporter/internal/batch_test.go
#	x-pack/otel/exporter/logstashexporter/internal/event.go
#	x-pack/otel/exporter/logstashexporter/internal/event_test.go
#	x-pack/otel/extension/beatsauthextension/beatsauth_test.go
#	x-pack/otel/otelctx/otelctx.go
#	x-pack/otel/otelctx/otelctx_test.go
#	x-pack/otel/oteltest/helper.go
#	x-pack/otel/oteltest/tls_helper.go
#	x-pack/otel/oteltranslate/outputs/logstash/config_otel.go

* fix imports

* remove files not in 9.1 branch

* remove unused oteltest import

* remove otelctx package not in 9.1 branch

---------

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 13, 2026
…el check pipeline (#48390)

* ci: tentative fix for agent lost in x-pack otel check pipeline (#48387)

PR #47873 moved some code to x-pack/otel, which increased the amount of code and dependencies required for the mage check call. After it was merged, we saw an increase in agent lost -1 errors from Buildkite agents, likely due to OOM conditions. This PR increases the amount of memory available to the agent for this stage.

(cherry picked from commit be94b2a)

# Conflicts:
#	.buildkite/x-pack/pipeline.xpack.otel.yml

* fix conflicts

---------

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit that referenced this pull request Jan 19, 2026
…ck/otel (#48338)

* cleanup(otel): move otelbeat packages to x-pack/otel (#47873)

Move the remaining otelbeat packages to x-pack/otel so that all otel-related code is centralized.

(cherry picked from commit 8a10df6)

# Conflicts:
#	x-pack/filebeat/tests/integration/otel_lsexporter_test.go
#	x-pack/libbeat/cmd/instance/beat_test.go
#	x-pack/libbeat/outputs/otelconsumer/otelconsumer.go
#	x-pack/otel/beatconverter/beatconverter.go
#	x-pack/otel/exporter/logstashexporter/exporter.go
#	x-pack/otel/exporter/logstashexporter/exporter_test.go
#	x-pack/otel/exporter/logstashexporter/exporter_tls_test.go
#	x-pack/otel/exporter/logstashexporter/internal/batch_test.go
#	x-pack/otel/exporter/logstashexporter/internal/event.go
#	x-pack/otel/exporter/logstashexporter/internal/event_test.go
#	x-pack/otel/otelctx/otelctx.go
#	x-pack/otel/otelctx/otelctx_test.go
#	x-pack/otel/oteltranslate/outputs/logstash/config_otel.go

* fix conflicts

* fix conflicts

---------

Co-authored-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
mauri870 added a commit to mauri870/elastic-agent that referenced this pull request Jan 22, 2026
Manually update Beats to elastic/beats@9c75eba.

Incorporates the new import paths from elastic/beats#47873.
mauri870 added a commit to mauri870/elastic-agent that referenced this pull request Jan 22, 2026
Manually update Beats to elastic/beats@9c75eba.

Incorporates the new import paths from elastic/beats#47873.
swiatekm pushed a commit to elastic/elastic-agent that referenced this pull request Jan 22, 2026
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 Team:Security-Service Integrations Security Service Integrations Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants