Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x](backport #5748) Don't run any agent service when running otel subcommand #5797

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Oct 15, 2024

What does this PR do?

Previously the control protocol was started when the subcommand otel was ran. This should not be done as the subcommand otel should operate it in a pure OTel mode.

This is a cleanup that comes out of working on Hybrid mode.

Why is it important?

Cleanup to make the code cleaner and less messy as the control protocol should not really be running when running the otel subcommand.

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/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

Can no longer call elastic-agent status when a elastic-agent otel is running.

How to test this PR locally

Run elastic-agent otel, then try to run elastic-agent status and see that it doesn't connect.


This is an automatic backport of pull request #5748 done by [Mergify](https://mergify.com).

* Remove need to run agent while running otel subcommand.

* Cleanup.

* Fix tests.

* Fix tests.

* Few more cleanups.

* Mage check.

(cherry picked from commit 3f1e4da)
@mergify mergify bot requested a review from a team as a code owner October 15, 2024 19:22
@mergify mergify bot added the backport label Oct 15, 2024
@mergify mergify bot requested review from michel-laterman and swiatekm and removed request for a team October 15, 2024 19:22
@blakerouse blakerouse enabled auto-merge (squash) October 15, 2024 19:37
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube

@blakerouse blakerouse merged commit 05e0f08 into 8.x Oct 15, 2024
14 of 15 checks passed
@blakerouse blakerouse deleted the mergify/bp/8.x/pr-5748 branch October 15, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant