Make the OpenTelemetry Logback appender work with GraalVM native images#7989
Conversation
trask
left a comment
There was a problem hiding this comment.
nice 👍
would a test similar to https://github.com/open-telemetry/opentelemetry-java/blob/328dcf075a827ebe710274d020baafb978091b01/integration-tests/graal/src/test/java/io/opentelemetry/integrationtests/graal/JcToolsTest.java#L18 cover this?
or is initialize-at-build-time harder to test?
Set up has also to be added on the Github side. Can I do this with GraalVM automatic tests for several instrumentation libraries in another PR ? It would be great if this PR could be integrated into the next OTel Java instrumentation release to unblock the usage of the OpenTelemetry Logback appender with native images. From my first trials, OpenTelemetry JDBC and JVM Runtime Metrics libraries seem to work without the addition of other GraalVM configs (more extensive testing from automatic tests would probably allow to be more confident). |
👍 |
I have tried the OpenTelemetry Logback appender with GraalVM native images. The GraalVM configurations of this PR are required to make it work.
It's my first GraalVM-related PR in this repo. In future works, adding automatic tests with GraalVM on some programmatic instrumentation libraries may be interesting.