Skip to content

[9.0](backport #7867) [Chore] Improve error reporting when otel collector fails to start #7875

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

Open
wants to merge 2 commits into
base: 9.0
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 16, 2025

What does this PR do?

If OTel collector fails to start say due to incorrect config - the logs do not output what went wrong. The only way to know that is by using elastic-agent status command.

This PR logs such errors.

Why is it important?

Improve error logging when collector fails to start

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

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

…7867)

* [Chore] Improve error reporting when otel collector fails to start

* fix the log message

(cherry picked from commit 9dea232)
@mergify mergify bot requested a review from a team as a code owner April 16, 2025 16:06
@mergify mergify bot added the backport label Apr 16, 2025
@mergify mergify bot requested review from michalpristas and swiatekm and removed request for a team April 16, 2025 16:06
@khushijain21 khushijain21 enabled auto-merge (squash) April 17, 2025 04:40
@khushijain21
Copy link
Contributor

/test

@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 17, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants