From 4f8a2e77c5995f4e12715e7678b963e9f2e21303 Mon Sep 17 00:00:00 2001 From: Katia Aresti Date: Mon, 10 Jun 2024 17:28:39 +0200 Subject: [PATCH] Clean up tracing option from dev services for 15.0 --- .../InfinispanDevServiceProcessor.java | 18 +++++++++++++----- .../runtime/InfinispanDevServicesConfig.java | 2 ++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/devservices/InfinispanDevServiceProcessor.java b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/devservices/InfinispanDevServiceProcessor.java index ae49676cb305f..800c24e3428d1 100644 --- a/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/devservices/InfinispanDevServiceProcessor.java +++ b/extensions/infinispan-client/deployment/src/main/java/io/quarkus/infinispan/client/deployment/devservices/InfinispanDevServiceProcessor.java @@ -283,14 +283,22 @@ public QuarkusInfinispanContainer(String clientName, InfinispanDevServicesConfig return " -c " + userConfigFile; }).collect(Collectors.joining())).orElse(""); + if (config.tracing.isPresent()) { + log.info( + "This option won't work from 15.0. You have to use `configFiles` and provide an json, xml or yaml file, as this example:"); + log.info("infinispan:\n" + + " cacheContainer:\n" + + " tracing:\n" + + " collector-endpoint: \"http://jaeger:4318\"\n" + + " enabled: true\n" + + " exporter-protocol: \"OTLP\"\n" + + " service-name: \"infinispan-server\"\n" + + " security: false"); + } + if (config.mcastPort.isPresent()) { command = command + " -Djgroups.mcast_port=" + config.mcastPort.getAsInt(); } - if (config.tracing.isPresent()) { - command = command + " -Dinfinispan.tracing.enabled=" + config.tracing.get(); - command = command + " -Dotel.exporter.otlp.endpoint=" + config.exporterOtlpEndpoint.get(); - command = command + " -Dotel.service.name=infinispan-server-service -Dotel.metrics.exporter=none"; - } config.artifacts.ifPresent(a -> withArtifacts(a.toArray(new String[0]))); diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanDevServicesConfig.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanDevServicesConfig.java index e4368b0126886..1a2a55c4a637e 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanDevServicesConfig.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanDevServicesConfig.java @@ -113,12 +113,14 @@ public class InfinispanDevServicesConfig { * Runs the Infinispan Server container with tracing enabled. Traces are disabled by default */ @ConfigItem(name = "tracing.enabled", defaultValue = "false") + @Deprecated(forRemoval = true) public Optional tracing; /** * Sets Infinispan Server otlp endpoint. Default value is http://localhost:4317 */ @ConfigItem(name = "tracing.exporter.otlp.endpoint", defaultValue = "http://localhost:4317") + @Deprecated(forRemoval = true) public Optional exporterOtlpEndpoint; /**