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 2284b20
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,24 @@ public QuarkusInfinispanContainer(String clientName, InfinispanDevServicesConfig
return " -c " + userConfigFile;
}).collect(Collectors.joining())).orElse("");

if (config.tracing.isPresent()) {
log.warn(
"Starting with Infinispan 15.0, Infinispan support for instrumentation of the server via OpenTelemetry has evolved. Enabling tracing setting `quarkus.infinispan-client.devservices.tracing.enabled` to true won't work.\n"
+
"You need to use the `quarkus.infinispan-client.devservices.tracing.enabled` property and provide a JSON, XML or YAML file as follows. Check xref:infinispan-dev-services.adoc[Infinispan Dev Services guide]");
log.warn("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 2284b20

Please sign in to comment.