Skip to content

Commit

Permalink
Clean up tracing option from dev services for 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Jun 11, 2024
1 parent 250eb95 commit 4f8a2e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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])));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Boolean> 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<String> exporterOtlpEndpoint;

/**
Expand Down

0 comments on commit 4f8a2e7

Please sign in to comment.