Add optional OpenTelemetry Netty server instrumentation
All checks were successful
CI / build (push) Successful in 3m50s
All checks were successful
CI / build (push) Successful in 3m50s
- Update lys.version to 2026.04.14 - Add optional compileOnly dependency on opentelemetry-netty-4.1 in rbcs-server - Add runtime guard to only activate instrumentation when OTel classes are on classpath - Insert OTel combined handler after HttpServerCodec in the Netty pipeline - Add requires-static JPMS directives for optional module support
This commit is contained in:
@@ -30,7 +30,6 @@ configurations {
|
||||
transitive = false
|
||||
canBeConsumed = true
|
||||
canBeResolved = true
|
||||
visible = true
|
||||
}
|
||||
|
||||
configureNativeImageImplementation {
|
||||
@@ -51,6 +50,7 @@ dependencies {
|
||||
configureNativeImageImplementation project
|
||||
configureNativeImageImplementation project(':rbcs-server-memcache')
|
||||
configureNativeImageImplementation project(':rbcs-server-redis')
|
||||
// configureNativeImageImplementation project(':rbcs-server-otel')
|
||||
|
||||
implementation catalog.jwo
|
||||
implementation catalog.slf4j.api
|
||||
@@ -59,9 +59,7 @@ dependencies {
|
||||
implementation project(':rbcs-client')
|
||||
implementation project(':rbcs-server')
|
||||
|
||||
// runtimeOnly catalog.slf4j.jdk14
|
||||
runtimeOnly catalog.logback.classic
|
||||
// runtimeOnly catalog.slf4j.simple
|
||||
nativeImage project(':rbcs-server-memcache')
|
||||
nativeImage project(':rbcs-server-redis')
|
||||
|
||||
@@ -142,7 +140,12 @@ Provider<JlinkTask> jlinkTaskProvider = tasks.named(JlinkPlugin.JLINK_TASK_NAME,
|
||||
'net.woggioni.rbcs.server.memcache',
|
||||
'net.woggioni.rbcs.server.redis',
|
||||
'ch.qos.logback.classic',
|
||||
'jdk.crypto.ec'
|
||||
'jdk.crypto.ec',
|
||||
// 'io.opentelemetry.api',
|
||||
// 'io.opentelemetry.instrumentation.netty_4_1',
|
||||
// 'io.opentelemetry.sdk.autoconfigure',
|
||||
// 'io.opentelemetry.instrumentation.logback_appender_1_0',
|
||||
// 'io.opentelemetry.extension.trace.propagation'
|
||||
]
|
||||
compressionLevel = 2
|
||||
stripDebug = false
|
||||
|
||||
@@ -120,10 +120,11 @@ object GraalNativeImageConfiguration {
|
||||
val serverConfiguration = Configuration(
|
||||
"127.0.0.1",
|
||||
serverPort,
|
||||
null,
|
||||
false,
|
||||
emptyList(),
|
||||
false,
|
||||
100,
|
||||
null,
|
||||
Configuration.EventExecutor(true),
|
||||
Configuration.RateLimiter(
|
||||
false, 0x100000, 10
|
||||
|
||||
Reference in New Issue
Block a user