forked from woggioni/rbcs
Add optional OpenTelemetry Netty server instrumentation
- 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:
@@ -16,6 +16,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
@Value
|
||||
public class Configuration {
|
||||
boolean enableTelemetry;
|
||||
String host;
|
||||
int port;
|
||||
boolean proxyProtocolEnabled;
|
||||
@@ -150,6 +151,7 @@ public class Configuration {
|
||||
}
|
||||
|
||||
public static Configuration of(
|
||||
boolean enableTelemetry,
|
||||
String host,
|
||||
int port,
|
||||
boolean proxyProtocolEnabled,
|
||||
@@ -166,6 +168,7 @@ public class Configuration {
|
||||
Tls tls
|
||||
) {
|
||||
return new Configuration(
|
||||
enableTelemetry,
|
||||
host,
|
||||
port,
|
||||
proxyProtocolEnabled,
|
||||
|
||||
Reference in New Issue
Block a user