From 92b5edb4c377e149cc67639c7b32b1d72099a0d4 Mon Sep 17 00:00:00 2001 From: Jean Bisutti Date: Mon, 6 Mar 2023 22:27:32 +0100 Subject: [PATCH] Make the OpenTelemetry Logback appender work with GraalVM native images --- .../opentelemetry-instrumentation-api/native-image.properties | 2 ++ .../opentelemetry-jdbc/native-image.properties | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 instrumentation-api/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-instrumentation-api/native-image.properties create mode 100644 instrumentation/logback/logback-appender-1.0/library/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-jdbc/native-image.properties diff --git a/instrumentation-api/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-instrumentation-api/native-image.properties b/instrumentation-api/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-instrumentation-api/native-image.properties new file mode 100644 index 000000000000..758891265640 --- /dev/null +++ b/instrumentation-api/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-instrumentation-api/native-image.properties @@ -0,0 +1,2 @@ +Args=\ + --initialize-at-build-time=io.opentelemetry.instrumentation.api.internal.cache.concurrentlinkedhashmap.ConcurrentLinkedHashMap diff --git a/instrumentation/logback/logback-appender-1.0/library/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-jdbc/native-image.properties b/instrumentation/logback/logback-appender-1.0/library/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-jdbc/native-image.properties new file mode 100644 index 000000000000..e393b0676ffb --- /dev/null +++ b/instrumentation/logback/logback-appender-1.0/library/src/main/resources/META-INF/native-image/io.opentelemetry.instrumentation/opentelemetry-jdbc/native-image.properties @@ -0,0 +1,2 @@ +Args=\ + --initialize-at-build-time=io.opentelemetry.instrumentation.logback.appender.v1_0.internal.LoggingEventMapper