SamplingProfiler does not load on Alpine based linux image #3217
Labels
agent-java
bug
Bugs
community
Issues and PRs created by the community
enhancement
Enhancement of an existing feature
Describe the bug
Enabling the sampling profiler on an Alpine based linux image results in a UnsatisfiedLinkError because
libasyncProfiler-linux-x64
is loaded instead of the MUSL version.Steps to reproduce
eclipse-temurin:17-alpine
)profiling_inferred_spans_enabled
Results in:
Note that we're running with
ENV LD_PRELOAD=/lib/libgcompat.so.0:/usr/lib/libunwind.so.8
because of a Netty native issue, without that you might get another exceptionExpected behavior
Load the MUSL library. Either by detecting Alpine environment somehow or by adding a configuration option to instruct to load MUSL library version.
Debug logs
The text was updated successfully, but these errors were encountered: