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

Fix crashes and ugly error logs on unsupported systems for UP integration #313

Merged
merged 3 commits into from
Jul 3, 2024

Conversation

JonasKunz
Copy link
Contributor

Closes #299, improves the handling of #228.

This PR adds explicit MUSL-linux detection so that we don't just crash the JVM on such distros (e.g. alpine).
In addition, the behaviour of the UP-integration has been refined so that the enabled option defaults to false on unsupported systems, so that we don't end up with ugly error logs by default on e.g. windows and alpine.

If the enabled options is explicitly configured to true or auto, error logs will show up but the agent will still start correctly.

I've manually tested the behaviour with an alpine container.

@JonasKunz JonasKunz changed the title Fix crashes and ugly error logs on unsupported systems Fix crashes and ugly error logs on unsupported systems for UP integration Jul 2, 2024
@JonasKunz JonasKunz requested a review from jackshirazi July 2, 2024 09:27
@JonasKunz JonasKunz merged commit ef59dc0 into elastic:main Jul 3, 2024
9 checks passed
@JonasKunz JonasKunz deleted the up-error-logs-fix branch July 3, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

UP integration not happy on Windows in 0.4.0
2 participants