diff --git a/bom/application/pom.xml b/bom/application/pom.xml
index 5c92e5a20767f..d6121d1e8d23e 100644
--- a/bom/application/pom.xml
+++ b/bom/application/pom.xml
@@ -33,7 +33,6 @@
0.1.5
1.30.1
1.30.0-alpha
- 1.8.1
5.0.3.Final
1.11.1
2.1.12
@@ -56,7 +55,6 @@
4.0.0
3.6.2
2.5.1
- 3.0.3
6.2.6
4.3.1
2.1.0
@@ -1229,16 +1227,6 @@
quarkus-infinispan-client-deployment
${project.version}
-
- io.quarkus
- quarkus-jaeger
- ${project.version}
-
-
- io.quarkus
- quarkus-jaeger-deployment
- ${project.version}
-
io.quarkus
quarkus-jdbc-db2
@@ -1606,16 +1594,6 @@
quarkus-smallrye-graphql-client-deployment
${project.version}
-
- io.quarkus
- quarkus-smallrye-opentracing
- ${project.version}
-
-
- io.quarkus
- quarkus-smallrye-opentracing-deployment
- ${project.version}
-
io.quarkus
quarkus-smallrye-stork
@@ -3389,52 +3367,6 @@
angus-activation
${angus-activation.version}
-
- io.jaegertracing
- jaeger-core
- ${jaeger.version}
-
-
- io.jaegertracing
- jaeger-thrift
- ${jaeger.version}
-
-
- org.apache.tomcat.embed
- tomcat-embed-core
-
-
-
- javax.annotation
- javax.annotation-api
-
-
-
-
- org.apache.tomcat
- tomcat-annotations-api
-
-
-
-
- io.jaegertracing
- jaeger-zipkin
- ${jaeger.version}
-
-
- commons-logging
- commons-logging
-
-
- javax.annotation
- javax.annotation-api
-
-
- org.apache.tomcat.embed
- tomcat-embed-core
-
-
-
com.h2database
h2
@@ -3955,22 +3887,6 @@
smallrye-graphql-client-implementation-vertx
${smallrye-graphql.version}
-
- io.smallrye
- smallrye-opentracing
- ${smallrye-opentracing.version}
-
-
- org.eclipse.microprofile.config
- microprofile-config-api
-
-
-
-
- io.smallrye
- smallrye-opentracing-contrib
- ${smallrye-opentracing.version}
-
io.smallrye
smallrye-fault-tolerance
@@ -6274,6 +6190,26 @@
quarkus-opentelemetry-exporter-otlp
${project.version}
+
+ io.quarkus
+ quarkus-jaeger
+ ${project.version}
+
+
+ io.quarkus
+ quarkus-jaeger-deployment
+ ${project.version}
+
+
+ io.quarkus
+ quarkus-smallrye-opentracing
+ ${project.version}
+
+
+ io.quarkus
+ quarkus-smallrye-opentracing-deployment
+ ${project.version}
+
diff --git a/devtools/bom-descriptor-json/pom.xml b/devtools/bom-descriptor-json/pom.xml
index cbdbc050e4dfc..02d144586d3ca 100644
--- a/devtools/bom-descriptor-json/pom.xml
+++ b/devtools/bom-descriptor-json/pom.xml
@@ -928,19 +928,6 @@
-
- io.quarkus
- quarkus-jaeger
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
io.quarkus
quarkus-jaxb
@@ -2514,19 +2501,6 @@
-
- io.quarkus
- quarkus-smallrye-opentracing
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
io.quarkus
quarkus-smallrye-reactive-messaging
diff --git a/docs/pom.xml b/docs/pom.xml
index dbf502dbfae57..97ca57313cc60 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -944,19 +944,6 @@
-
- io.quarkus
- quarkus-jaeger-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
io.quarkus
quarkus-jaxb-deployment
@@ -2530,19 +2517,6 @@
-
- io.quarkus
- quarkus-smallrye-opentracing-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
io.quarkus
quarkus-smallrye-reactive-messaging-deployment
diff --git a/extensions/jaeger/deployment/pom.xml b/extensions/jaeger/deployment/pom.xml
deleted file mode 100644
index 5b8ad53ce4b32..0000000000000
--- a/extensions/jaeger/deployment/pom.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
- quarkus-jaeger-parent
- io.quarkus
- 999-SNAPSHOT
-
- 4.0.0
-
- quarkus-jaeger-deployment
- Quarkus - Jaeger - Deployment
-
-
-
- io.quarkus
- quarkus-core-deployment
-
-
- io.quarkus
- quarkus-jaeger
-
-
- jakarta.enterprise
- jakarta.enterprise.cdi-api
-
-
-
- io.quarkus
- quarkus-junit5-internal
- test
-
-
- io.quarkus
- quarkus-arc-deployment
-
-
- io.quarkus
- quarkus-smallrye-metrics-deployment
- test
-
-
- org.mockito
- mockito-core
- test
-
-
- io.jaegertracing
- jaeger-zipkin
- test
-
-
-
-
-
-
- maven-compiler-plugin
-
-
-
- io.quarkus
- quarkus-extension-processor
- ${project.version}
-
-
-
-
-
-
-
diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerAlwaysEnabledProcessor.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerAlwaysEnabledProcessor.java
deleted file mode 100644
index cb3ad4f399dc1..0000000000000
--- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerAlwaysEnabledProcessor.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package io.quarkus.jaeger.deployment;
-
-import io.quarkus.deployment.Feature;
-import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.builditem.FeatureBuildItem;
-
-// Executed even if the extension is disabled, see https://github.com/quarkusio/quarkus/pull/26966/
-public class JaegerAlwaysEnabledProcessor {
-
- @BuildStep
- public FeatureBuildItem build() {
- return new FeatureBuildItem(Feature.JAEGER);
- }
-
-}
diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerEnabled.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerEnabled.java
deleted file mode 100644
index 8f6b2e781b589..0000000000000
--- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerEnabled.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package io.quarkus.jaeger.deployment;
-
-import java.util.function.BooleanSupplier;
-
-import io.quarkus.jaeger.runtime.JaegerBuildTimeConfig;
-
-public class JaegerEnabled implements BooleanSupplier {
-
- private final JaegerBuildTimeConfig buildTimeConfig;
-
- public JaegerEnabled(JaegerBuildTimeConfig buildTimeConfig) {
- this.buildTimeConfig = buildTimeConfig;
- }
-
- @Override
- public boolean getAsBoolean() {
- return buildTimeConfig.enabled;
- }
-
-}
diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java
deleted file mode 100644
index 838ed596dfd69..0000000000000
--- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/JaegerProcessor.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package io.quarkus.jaeger.deployment;
-
-import java.util.Optional;
-
-import io.jaegertracing.internal.JaegerTracer;
-import io.quarkus.deployment.Feature;
-import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.BuildSteps;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
-import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
-import io.quarkus.deployment.metrics.MetricsCapabilityBuildItem;
-import io.quarkus.deployment.pkg.steps.NativeOrNativeSourcesBuild;
-import io.quarkus.jaeger.runtime.JaegerBuildTimeConfig;
-import io.quarkus.jaeger.runtime.JaegerConfig;
-import io.quarkus.jaeger.runtime.JaegerDeploymentRecorder;
-import io.quarkus.jaeger.runtime.ZipkinConfig;
-import io.quarkus.runtime.ApplicationConfig;
-import io.quarkus.runtime.metrics.MetricsFactory;
-
-@BuildSteps(onlyIf = JaegerEnabled.class)
-public class JaegerProcessor {
-
- @BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)
- @Record(ExecutionTime.STATIC_INIT)
- void setVersion(JaegerDeploymentRecorder jdr) {
- jdr.setJaegerVersion(JaegerTracer.getVersionFromProperties());
- }
-
- @BuildStep
- @Record(ExecutionTime.RUNTIME_INIT)
- ExtensionSslNativeSupportBuildItem setupTracer(JaegerDeploymentRecorder jdr, JaegerBuildTimeConfig buildTimeConfig,
- JaegerConfig jaeger, ApplicationConfig appConfig, Optional metricsCapability,
- ZipkinConfig zipkinConfig) {
-
- if (buildTimeConfig.metricsEnabled && metricsCapability.isPresent()) {
- if (metricsCapability.get().metricsSupported(MetricsFactory.MICROMETER)) {
- jdr.registerTracerWithMicrometerMetrics(jaeger, appConfig, zipkinConfig);
- } else {
- jdr.registerTracerWithMpMetrics(jaeger, appConfig, zipkinConfig);
- }
- } else {
- jdr.registerTracerWithoutMetrics(jaeger, appConfig, zipkinConfig);
- }
-
- // Indicates that this extension would like the SSL support to be enabled
- return new ExtensionSslNativeSupportBuildItem(Feature.JAEGER.getName());
- }
-
- @BuildStep
- public ReflectiveClassBuildItem reflectiveClasses() {
- return ReflectiveClassBuildItem
- .builder("io.jaegertracing.internal.samplers.http.OperationSamplingParameters",
- "io.jaegertracing.internal.samplers.http.PerOperationSamplingParameters",
- "io.jaegertracing.internal.samplers.http.ProbabilisticSamplingStrategy",
- "io.jaegertracing.internal.samplers.http.RateLimitingSamplingStrategy",
- "io.jaegertracing.internal.samplers.http.SamplingStrategyResponse")
- .fields()
- .build();
- }
-}
diff --git a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/ZipkinProcessor.java b/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/ZipkinProcessor.java
deleted file mode 100644
index f22d6af0c82b0..0000000000000
--- a/extensions/jaeger/deployment/src/main/java/io/quarkus/jaeger/deployment/ZipkinProcessor.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package io.quarkus.jaeger.deployment;
-
-import java.util.function.BooleanSupplier;
-
-import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
-import io.quarkus.deployment.annotations.BuildProducer;
-import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.BuildSteps;
-import io.quarkus.jaeger.runtime.JaegerDeploymentRecorder;
-import io.quarkus.jaeger.runtime.ZipkinConfig;
-import io.quarkus.jaeger.runtime.ZipkinReporterProvider;
-
-@BuildSteps(onlyIf = ZipkinProcessor.ZipkinEnabled.class)
-public class ZipkinProcessor {
-
- static final String REGISTRY_CLASS_NAME = "zipkin2.reporter.urlconnection.URLConnectionSender";
- static final Class> REGISTRY_CLASS = JaegerDeploymentRecorder.getClassForName(REGISTRY_CLASS_NAME);
-
- public static class ZipkinEnabled implements BooleanSupplier {
- ZipkinConfig config;
-
- public boolean getAsBoolean() {
- return REGISTRY_CLASS != null && config.compatibilityMode;
- }
- }
-
- @BuildStep
- void addZipkinClasses(BuildProducer additionalBeans) {
-
- // Add Zipkin classes
- additionalBeans.produce(AdditionalBeanBuildItem.builder().addBeanClass(ZipkinReporterProvider.class)
- .setUnremovable().build());
-
- }
-}
diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java
deleted file mode 100644
index a6400b1e1db24..0000000000000
--- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/CommaParseJaegerConfigurationTest.java
+++ /dev/null
@@ -1,42 +0,0 @@
-package io.quarkus.jaeger.test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-
-import java.text.NumberFormat;
-import java.util.Locale;
-
-import jakarta.inject.Inject;
-
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import io.jaegertracing.Configuration.SamplerConfiguration;
-import io.quarkus.jaeger.runtime.JaegerConfig;
-import io.quarkus.test.QuarkusUnitTest;
-
-/**
- * Some Locales, like FRENCH use a different separator between the integer and the fraction part. The internal
- * Jaeger configuration, read the value with the default locale, so we need the config to write the value to Jaeger in
- * the same expected format.
- */
-public class CommaParseJaegerConfigurationTest {
- private static final Locale DEFAULT_LOCALE = Locale.getDefault();
-
- @RegisterExtension
- static final QuarkusUnitTest TEST = new QuarkusUnitTest().withEmptyApplication()
- .setBeforeAllCustomizer(() -> Locale.setDefault(Locale.FRENCH))
- .setAfterAllCustomizer(() -> Locale.setDefault(DEFAULT_LOCALE))
- .overrideConfigKey("quarkus.jaeger.sampler-type", "probabilistic")
- .overrideConfigKey("quarkus.jaeger.sampler-param", "0.5");
-
- @Inject
- JaegerConfig jaegerConfig;
-
- @Test
- void localeParse() {
- assertEquals("0,5", NumberFormat.getInstance().format(jaegerConfig.samplerParam.get()));
-
- SamplerConfiguration samplerConfiguration = SamplerConfiguration.fromEnv();
- assertEquals(0.5d, samplerConfiguration.getParam().doubleValue());
- }
-}
diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java
deleted file mode 100644
index 3e0c864aeee0a..0000000000000
--- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/JaegerMetricsTestCase.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package io.quarkus.jaeger.test;
-
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-import java.util.Set;
-import java.util.stream.Collectors;
-
-import jakarta.inject.Inject;
-
-import org.eclipse.microprofile.metrics.MetricID;
-import org.eclipse.microprofile.metrics.MetricRegistry;
-import org.eclipse.microprofile.metrics.annotation.RegistryType;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import io.quarkus.test.QuarkusUnitTest;
-
-public class JaegerMetricsTestCase {
-
- @RegisterExtension
- static final QuarkusUnitTest config = new QuarkusUnitTest()
- .withEmptyApplication()
- .withConfigurationResource("application-metrics-enabled.properties");
-
- @Inject
- @RegistryType(type = MetricRegistry.Type.VENDOR)
- MetricRegistry registry;
-
- /**
- * We're not running a Jaeger instance to be able to test anything thoroughly,
- * so just check that the metrics are registered after start.
- */
- @Test
- public void test() {
- Set registeredMetrics = registry.getMetrics().keySet().stream().map(MetricID::getName)
- .collect(Collectors.toSet());
- assertTrue(registeredMetrics.contains("jaeger_tracer_baggage_restrictions_updates"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_baggage_updates"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_baggage_truncations"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_finished_spans"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_reporter_queue_length"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_reporter_spans"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_sampler_queries"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_sampler_updates"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_span_context_decoding_errors"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_started_spans"));
- assertTrue(registeredMetrics.contains("jaeger_tracer_traces"));
- }
-
-}
diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/NestedMdcScopesTest.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/NestedMdcScopesTest.java
deleted file mode 100644
index e3a9302a3dafb..0000000000000
--- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/NestedMdcScopesTest.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package io.quarkus.jaeger.test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNull;
-import static org.junit.jupiter.api.Assertions.assertSame;
-
-import java.util.Map;
-
-import org.jboss.logging.MDC;
-import org.junit.jupiter.api.Test;
-
-import io.jaegertracing.internal.JaegerSpanContext;
-import io.opentracing.Scope;
-import io.opentracing.Span;
-import io.opentracing.SpanContext;
-import io.opentracing.tag.Tag;
-import io.opentracing.util.ThreadLocalScopeManager;
-import io.quarkus.jaeger.runtime.MDCScopeManager;
-
-public class NestedMdcScopesTest {
- @Test
- public void mdcIsRestoredCorrectly() {
- ThreadLocalScopeManager threadLocalScopeManager = new ThreadLocalScopeManager();
- MDCScopeManager mdcScopeManager = new MDCScopeManager(threadLocalScopeManager);
-
- assertNull(mdcScopeManager.activeSpan());
- assertNull(threadLocalScopeManager.activeSpan());
- assertNull(MDC.get("traceId"));
- assertNull(MDC.get("parentId"));
-
- JaegerSpanContext span = new JaegerSpanContext(1, 1, 1, 0, Byte.parseByte("0"));
- Scope scope = mdcScopeManager.activate(new TestSpan(span));
- assertSame(span, threadLocalScopeManager.activeSpan().context());
- assertEquals("00000000000000010000000000000001", MDC.get("traceId"));
- assertEquals("0", MDC.get("parentId"));
-
- JaegerSpanContext subSpan = new JaegerSpanContext(2, 2, 2, 1, Byte.parseByte("0"));
- Scope subScope = mdcScopeManager.activate(new TestSpan(subSpan));
- assertSame(subSpan, threadLocalScopeManager.activeSpan().context());
- assertEquals("00000000000000020000000000000002", MDC.get("traceId"));
- assertEquals("1", MDC.get("parentId"));
-
- subScope.close();
-
- assertSame(span, threadLocalScopeManager.activeSpan().context());
- assertEquals("00000000000000010000000000000001", MDC.get("traceId"));
- assertEquals("0", MDC.get("parentId"));
-
- scope.close();
-
- assertNull(mdcScopeManager.activeSpan());
- assertNull(threadLocalScopeManager.activeSpan());
- assertNull(MDC.get("traceId"));
- assertNull(MDC.get("parentId"));
- }
-
- static class TestSpan implements Span {
- private final SpanContext spanContext;
-
- TestSpan(SpanContext spanContext) {
- this.spanContext = spanContext;
- }
-
- @Override
- public SpanContext context() {
- return spanContext;
- }
-
- @Override
- public Span setTag(String key, String value) {
- return this;
- }
-
- @Override
- public Span setTag(String key, boolean value) {
- return this;
- }
-
- @Override
- public Span setTag(String key, Number value) {
- return this;
- }
-
- @Override
- public Span setTag(final Tag tag, final T value) {
- return this;
- }
-
- @Override
- public Span log(Map fields) {
- return this;
- }
-
- @Override
- public Span log(long timestampMicroseconds, Map fields) {
- return this;
- }
-
- @Override
- public Span log(String event) {
- return this;
- }
-
- @Override
- public Span log(long timestampMicroseconds, String event) {
- return this;
- }
-
- @Override
- public Span setBaggageItem(String key, String value) {
- return this;
- }
-
- @Override
- public String getBaggageItem(String key) {
- return null;
- }
-
- @Override
- public Span setOperationName(String operationName) {
- return this;
- }
-
- @Override
- public void finish() {
- }
-
- @Override
- public void finish(long finishMicros) {
- }
- }
-}
diff --git a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java b/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java
deleted file mode 100644
index 1302b401001b8..0000000000000
--- a/extensions/jaeger/deployment/src/test/java/io/quarkus/jaeger/test/QuarkusJaegerTracerTest.java
+++ /dev/null
@@ -1,98 +0,0 @@
-package io.quarkus.jaeger.test;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertNull;
-
-import jakarta.enterprise.inject.Default;
-import jakarta.enterprise.inject.Instance;
-import jakarta.enterprise.inject.spi.CDI;
-
-import org.junit.jupiter.api.Test;
-import org.mockito.ArgumentCaptor;
-import org.mockito.MockedStatic;
-import org.mockito.Mockito;
-
-import io.jaegertracing.Configuration;
-import io.jaegertracing.internal.JaegerTracer;
-import io.jaegertracing.internal.JaegerTracer.Builder;
-import io.jaegertracing.spi.Reporter;
-import io.jaegertracing.zipkin.ZipkinV2Reporter;
-import io.opentracing.Tracer;
-import io.quarkus.jaeger.runtime.QuarkusJaegerTracer;
-import io.quarkus.jaeger.runtime.ReporterFactory;
-import io.quarkus.jaeger.runtime.ZipkinReporterFactoryImpl;
-
-public class QuarkusJaegerTracerTest {
-
- @Test
- @SuppressWarnings("unchecked")
- public void withZipkinCompatibilityMode() {
-
- try (MockedStatic mockedStaticConfiguration = Mockito.mockStatic(Configuration.class);
- MockedStatic mockedStaticCDI = Mockito.mockStatic(CDI.class)) {
-
- CDI
-
- io.quarkus
- quarkus-smallrye-opentracing-deployment
- test
-
-
- io.opentracing.contrib
- opentracing-mongo-common
- test
-
-
- io.opentracing
- opentracing-mock
- test
-
-
- io.opentracing
- opentracing-util
- test-jar
- test
-
diff --git a/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java
index 744b77a5cfeab..99da47258cee0 100644
--- a/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java
+++ b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientProcessor.java
@@ -73,13 +73,11 @@
import io.quarkus.mongodb.runtime.MongodbConfig;
import io.quarkus.mongodb.runtime.dns.MongoDnsClient;
import io.quarkus.mongodb.runtime.dns.MongoDnsClientProvider;
-import io.quarkus.mongodb.tracing.MongoTracingCommandListener;
import io.quarkus.runtime.metrics.MetricsFactory;
import io.quarkus.smallrye.health.deployment.spi.HealthBuildItem;
import io.quarkus.vertx.deployment.VertxBuildItem;
public class MongoClientProcessor {
- private static final String MONGODB_TRACING_COMMAND_LISTENER = MongoTracingCommandListener.class.getName();
private static final DotName MONGO_CLIENT_ANNOTATION = DotName.createSimple(MongoClientName.class.getName());
private static final DotName MONGO_CLIENT = DotName.createSimple(MongoClient.class.getName());
@@ -152,9 +150,6 @@ CommandListenerBuildItem collectCommandListeners(CombinedIndexBuildItem indexBui
List names = commandListenerClasses.stream()
.map(ci -> ci.name().toString())
.collect(Collectors.toList());
- if (buildTimeConfig.tracingEnabled && capabilities.isPresent(Capability.OPENTRACING)) {
- names.add(MONGODB_TRACING_COMMAND_LISTENER);
- }
return new CommandListenerBuildItem(names);
}
diff --git a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java b/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java
deleted file mode 100644
index 48fe208fdce7a..0000000000000
--- a/extensions/mongodb-client/deployment/src/test/java/io/quarkus/mongodb/MongoTracingCommandListenerTest.java
+++ /dev/null
@@ -1,73 +0,0 @@
-package io.quarkus.mongodb;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import jakarta.inject.Inject;
-
-import org.jboss.shrinkwrap.api.ShrinkWrap;
-import org.jboss.shrinkwrap.api.spec.JavaArchive;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import com.mongodb.client.MongoClient;
-
-import io.opentracing.mock.MockSpan;
-import io.opentracing.mock.MockTracer;
-import io.opentracing.util.GlobalTracer;
-import io.opentracing.util.GlobalTracerTestUtil;
-import io.quarkus.mongodb.tracing.MongoTracingCommandListener;
-import io.quarkus.test.QuarkusUnitTest;
-
-/**
- * Test the inclusion and config of the {@link MongoTracingCommandListener}.
- *
- * @see io.quarkus.smallrye.opentracing.deployment.TracingTest
- */
-public class MongoTracingCommandListenerTest extends MongoTestBase {
-
- @Inject
- MongoClient client;
-
- @RegisterExtension
- static final QuarkusUnitTest config = new QuarkusUnitTest()
- .setArchiveProducer(
- () -> ShrinkWrap.create(JavaArchive.class).addClasses(MongoTestBase.class))
- .withConfigurationResource("application-tracing-mongo.properties");
-
- static MockTracer mockTracer = new MockTracer();
- static {
- GlobalTracer.register(mockTracer);
- }
-
- @BeforeEach
- public void before() {
- mockTracer.reset();
- }
-
- @AfterAll
- public static void afterAll() {
- GlobalTracerTestUtil.resetGlobalTracer();
- }
-
- @AfterEach
- void cleanup() {
- if (client != null) {
- client.close();
- }
- }
-
- @Test
- void testClientInitialization() {
- assertThat(mockTracer.finishedSpans()).isEmpty();
-
- assertThat(client.listDatabaseNames().first()).isNotEmpty();
-
- assertThat(mockTracer.finishedSpans()).hasSize(1);
- MockSpan span = mockTracer.finishedSpans().get(0);
- assertThat(span.operationName()).isEqualTo("listDatabases");
- }
-
-}
diff --git a/extensions/mongodb-client/runtime/pom.xml b/extensions/mongodb-client/runtime/pom.xml
index 0d32b10af9339..c4b13424e4a02 100644
--- a/extensions/mongodb-client/runtime/pom.xml
+++ b/extensions/mongodb-client/runtime/pom.xml
@@ -72,17 +72,6 @@
true
-
- io.quarkus
- quarkus-smallrye-opentracing
- true
-
-
- io.opentracing.contrib
- opentracing-mongo-common
- true
-
-
org.graalvm.sdk
graal-sdk
diff --git a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/tracing/MongoTracingCommandListener.java b/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/tracing/MongoTracingCommandListener.java
deleted file mode 100644
index e218eab5960ca..0000000000000
--- a/extensions/mongodb-client/runtime/src/main/java/io/quarkus/mongodb/tracing/MongoTracingCommandListener.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package io.quarkus.mongodb.tracing;
-
-import org.jboss.logging.Logger;
-
-import com.mongodb.event.CommandFailedEvent;
-import com.mongodb.event.CommandListener;
-import com.mongodb.event.CommandStartedEvent;
-import com.mongodb.event.CommandSucceededEvent;
-
-import io.opentracing.contrib.mongo.common.TracingCommandListener;
-import io.opentracing.util.GlobalTracer;
-
-/**
- * Command Listener for Mongo client delegated to {@link TracingCommandListener}.
- *
- */
-public class MongoTracingCommandListener implements CommandListener {
-
- private static final Logger LOGGER = Logger.getLogger(MongoTracingCommandListener.class);
-
- private final TracingCommandListener delegate;
-
- public MongoTracingCommandListener() {
- this.delegate = new TracingCommandListener.Builder(GlobalTracer.get()).build();
- LOGGER.debug("TracingCommandListener Delegate created");
- }
-
- @Override
- public void commandStarted(CommandStartedEvent event) {
- LOGGER.trace("commandStarted event " + event.getCommandName());
- delegate.commandStarted(event);
- }
-
- @Override
- public void commandFailed(CommandFailedEvent event) {
- LOGGER.trace("commandFailed event " + event.getCommandName());
- delegate.commandFailed(event);
- }
-
- @Override
- public void commandSucceeded(CommandSucceededEvent event) {
- LOGGER.trace("commandSucceeded event " + event.getCommandName());
- delegate.commandSucceeded(event);
- }
-
-}
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 5734b8bde14df..acc804301bc04 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -47,9 +47,7 @@
smallrye-health
smallrye-metrics
- smallrye-opentracing
smallrye-fault-tolerance
- jaeger
micrometer
micrometer-registry-prometheus
opentelemetry
diff --git a/extensions/smallrye-opentracing/deployment/pom.xml b/extensions/smallrye-opentracing/deployment/pom.xml
deleted file mode 100644
index 8d5b5a09f8214..0000000000000
--- a/extensions/smallrye-opentracing/deployment/pom.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
- quarkus-smallrye-opentracing-parent
- io.quarkus
- 999-SNAPSHOT
-
- 4.0.0
-
- quarkus-smallrye-opentracing-deployment
- Quarkus - SmallRye OpenTracing - Deployment
-
-
-
- io.quarkus
- quarkus-resteasy-common-spi
-
-
- io.quarkus
- quarkus-undertow-spi
-
-
- io.quarkus
- quarkus-resteasy-reactive-spi-deployment
-
-
- io.quarkus
- quarkus-arc-deployment
-
-
- io.quarkus
- quarkus-smallrye-opentracing
-
-
- io.quarkus
- quarkus-jaeger-deployment
-
-
- io.quarkus
- quarkus-jsonp-deployment
-
-
-
- io.quarkus
- quarkus-resteasy-jackson-deployment
- test
-
-
- io.quarkus
- quarkus-rest-client-deployment
- test
-
-
- io.quarkus
- quarkus-smallrye-fault-tolerance-deployment
- test
-
-
- io.quarkus
- quarkus-hibernate-orm-deployment
- test
-
-
- io.quarkus
- quarkus-agroal-deployment
- test
-
-
- io.quarkus
- quarkus-jdbc-h2-deployment
- test
-
-
- io.quarkus
- quarkus-junit5-internal
- test
-
-
- io.rest-assured
- rest-assured
- test
-
-
- io.opentracing
- opentracing-mock
- test
-
-
- io.opentracing
- opentracing-util
- test-jar
- test
-
-
- org.awaitility
- awaitility
- test
-
-
- io.opentracing.contrib
- opentracing-jdbc
- test
-
-
-
-
-
-
- maven-compiler-plugin
-
-
-
- io.quarkus
- quarkus-extension-processor
- ${project.version}
-
-
-
-
-
-
-
-
diff --git a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java b/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java
deleted file mode 100644
index 23687250ed9e1..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/main/java/io/quarkus/smallrye/opentracing/deployment/SmallRyeOpenTracingProcessor.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import java.lang.reflect.Method;
-
-import jakarta.enterprise.inject.spi.ObserverMethod;
-import jakarta.servlet.DispatcherType;
-
-import io.opentracing.Tracer;
-import io.quarkus.arc.deployment.AdditionalBeanBuildItem;
-import io.quarkus.arc.deployment.UnremovableBeanBuildItem;
-import io.quarkus.deployment.Capabilities;
-import io.quarkus.deployment.Capability;
-import io.quarkus.deployment.Feature;
-import io.quarkus.deployment.annotations.BuildProducer;
-import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.ReflectiveMethodBuildItem;
-import io.quarkus.resteasy.common.spi.ResteasyJaxrsProviderBuildItem;
-import io.quarkus.resteasy.reactive.spi.CustomContainerResponseFilterBuildItem;
-import io.quarkus.resteasy.reactive.spi.DynamicFeatureBuildItem;
-import io.quarkus.resteasy.reactive.spi.WriterInterceptorBuildItem;
-import io.quarkus.smallrye.opentracing.runtime.QuarkusSmallRyeTracingDynamicFeature;
-import io.quarkus.smallrye.opentracing.runtime.QuarkusSmallRyeTracingStandaloneContainerResponseFilter;
-import io.quarkus.smallrye.opentracing.runtime.QuarkusSmallRyeTracingStandaloneVertxDynamicFeature;
-import io.quarkus.smallrye.opentracing.runtime.TracerProducer;
-import io.quarkus.undertow.deployment.FilterBuildItem;
-import io.smallrye.opentracing.contrib.interceptor.OpenTracingInterceptor;
-import io.smallrye.opentracing.contrib.jaxrs2.server.SpanFinishingFilter;
-
-public class SmallRyeOpenTracingProcessor {
-
- @BuildStep
- AdditionalBeanBuildItem registerBeans(BuildProducer unremovableBeans) {
- // Some components obtain the tracer via CDI.current().select(Tracer.class)
- // E.g. io.quarkus.smallrye.opentracing.runtime.QuarkusSmallRyeTracingDynamicFeature and io.smallrye.graphql.cdi.tracing.TracingService
- unremovableBeans.produce(UnremovableBeanBuildItem.beanTypes(Tracer.class));
- return new AdditionalBeanBuildItem(OpenTracingInterceptor.class, TracerProducer.class);
- }
-
- @BuildStep
- ReflectiveMethodBuildItem registerMethod() throws Exception {
- Method isAsync = ObserverMethod.class.getMethod("isAsync");
- return new ReflectiveMethodBuildItem(isAsync);
- }
-
- @BuildStep
- void setupFilter(
- BuildProducer additionalBeans,
- BuildProducer providers,
- BuildProducer filterProducer,
- BuildProducer feature,
- BuildProducer customResponseFilters,
- BuildProducer dynamicFeatures,
- BuildProducer writerInterceptors,
- Capabilities capabilities) {
-
- feature.produce(new FeatureBuildItem(Feature.SMALLRYE_OPENTRACING));
-
- additionalBeans.produce(new AdditionalBeanBuildItem(QuarkusSmallRyeTracingDynamicFeature.class));
- providers.produce(new ResteasyJaxrsProviderBuildItem(QuarkusSmallRyeTracingDynamicFeature.class.getName()));
-
- if (capabilities.isPresent(Capability.SERVLET)) {
- FilterBuildItem filterInfo = FilterBuildItem.builder("tracingFilter", SpanFinishingFilter.class.getName())
- .setAsyncSupported(true)
- .addFilterUrlMapping("*", DispatcherType.FORWARD)
- .addFilterUrlMapping("*", DispatcherType.INCLUDE)
- .addFilterUrlMapping("*", DispatcherType.REQUEST)
- .addFilterUrlMapping("*", DispatcherType.ASYNC)
- .addFilterUrlMapping("*", DispatcherType.ERROR)
- .build();
- filterProducer.produce(filterInfo);
- } else if (capabilities.isPresent(Capability.RESTEASY)) {
- providers.produce(
- new ResteasyJaxrsProviderBuildItem(QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.class.getName()));
- } else if (capabilities.isPresent(Capability.RESTEASY_REACTIVE)) {
- customResponseFilters.produce(new CustomContainerResponseFilterBuildItem(
- QuarkusSmallRyeTracingStandaloneContainerResponseFilter.class.getName()));
- dynamicFeatures.produce(new DynamicFeatureBuildItem(QuarkusSmallRyeTracingDynamicFeature.class.getName()));
- writerInterceptors.produce(
- new WriterInterceptorBuildItem.Builder(
- QuarkusSmallRyeTracingStandaloneContainerResponseFilter.class.getName()).build());
- }
- }
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java
deleted file mode 100644
index dfe69588a107f..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Fruit.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import jakarta.persistence.Cacheable;
-import jakarta.persistence.Column;
-import jakarta.persistence.Entity;
-import jakarta.persistence.GeneratedValue;
-import jakarta.persistence.GenerationType;
-import jakarta.persistence.Id;
-import jakarta.persistence.NamedQuery;
-import jakarta.persistence.QueryHint;
-import jakarta.persistence.SequenceGenerator;
-import jakarta.persistence.Table;
-
-@Entity
-@Table(name = "known_fruits")
-@NamedQuery(name = "Fruits.findAll", query = "SELECT f FROM Fruit f ORDER BY f.name", hints = @QueryHint(name = "org.hibernate.cacheable", value = "true"))
-@Cacheable
-public class Fruit {
-
- @Id
- @SequenceGenerator(name = "fruitsSequence", sequenceName = "known_fruits_id_seq", allocationSize = 1, initialValue = 10)
- @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "fruitsSequence")
- private Integer id;
-
- @Column(length = 40, unique = true)
- private String name;
-
- public Fruit() {
- }
-
- public Fruit(String name) {
- this.name = name;
- }
-
- public Integer getId() {
- return id;
- }
-
- public void setId(Integer id) {
- this.id = id;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java
deleted file mode 100644
index 0589f77db2830..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/RestService.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import java.util.List;
-import java.util.concurrent.CompletionStage;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.Produces;
-import jakarta.ws.rs.core.MediaType;
-import jakarta.ws.rs.core.Response;
-
-@Path("/")
-public interface RestService {
-
- @GET
- @Path("/hello")
- Response hello();
-
- @GET
- @Path("/cdi")
- Response cdi();
-
- @GET
- @Path("/restClient")
- Response restClient();
-
- @GET
- @Path("/faultTolerance")
- CompletionStage faultTolerance();
-
- @GET
- @Path("/jpa")
- @Produces(MediaType.APPLICATION_JSON)
- List jpa();
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java
deleted file mode 100644
index 5cf5fe0d47a54..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/Service.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import java.time.temporal.ChronoUnit;
-import java.util.List;
-import java.util.concurrent.CompletableFuture;
-import java.util.concurrent.CompletionStage;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.inject.Inject;
-import jakarta.persistence.EntityManager;
-
-import org.eclipse.microprofile.faulttolerance.Asynchronous;
-import org.eclipse.microprofile.faulttolerance.Fallback;
-import org.eclipse.microprofile.faulttolerance.Retry;
-import org.eclipse.microprofile.faulttolerance.Timeout;
-import org.eclipse.microprofile.opentracing.Traced;
-
-import io.opentracing.Tracer;
-
-@ApplicationScoped
-public class Service {
-
- @Inject
- Tracer tracer;
-
- @Inject
- EntityManager em;
-
- @Traced
- public void foo() {
- }
-
- // @Asynchronous methods (and their fallback methods) shouldn't be @Traced
- // because https://github.com/eclipse/microprofile-opentracing/issues/189
- @Asynchronous
- @Fallback(fallbackMethod = "fallback")
- @Timeout(value = 20L, unit = ChronoUnit.MILLIS)
- @Retry(delay = 10L, maxRetries = 2)
- public CompletionStage faultTolerance() {
- tracer.buildSpan("ft").start().finish();
- throw new RuntimeException();
- }
-
- public CompletionStage fallback() {
- tracer.buildSpan("fallback").start().finish();
- return CompletableFuture.completedFuture("fallback");
- }
-
- @Traced
- public List getFruits() {
- return em.createNamedQuery("Fruits.findAll", Fruit.class).getResultList();
- }
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java
deleted file mode 100644
index 1edb36a5409c0..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TestResource.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import java.util.List;
-import java.util.concurrent.CompletionStage;
-
-import jakarta.inject.Inject;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.core.Context;
-import jakarta.ws.rs.core.Response;
-import jakarta.ws.rs.core.UriInfo;
-
-import org.eclipse.microprofile.rest.client.RestClientBuilder;
-
-@Path("/")
-public class TestResource implements RestService {
-
- @Inject
- Service service;
-
- @Context
- private UriInfo uri;
-
- @Override
- public Response hello() {
- return Response.ok().build();
- }
-
- @Override
- public Response cdi() {
- service.foo();
- return Response.ok().build();
- }
-
- @Override
- public Response restClient() {
- RestService client = RestClientBuilder.newBuilder()
- .baseUri(uri.getBaseUri())
- .build(RestService.class);
- client.hello();
- return Response.ok().build();
- }
-
- @Override
- public CompletionStage faultTolerance() {
- return service.faultTolerance();
- }
-
- public List jpa() {
- return service.getFruits();
- }
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TracingTest.java b/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TracingTest.java
deleted file mode 100644
index bc06afbff985a..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/java/io/quarkus/smallrye/opentracing/deployment/TracingTest.java
+++ /dev/null
@@ -1,164 +0,0 @@
-package io.quarkus.smallrye.opentracing.deployment;
-
-import static org.hamcrest.Matchers.equalTo;
-import static org.hamcrest.Matchers.hasSize;
-
-import java.util.List;
-import java.util.concurrent.TimeUnit;
-
-import org.awaitility.Awaitility;
-import org.jboss.shrinkwrap.api.asset.EmptyAsset;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import io.opentracing.mock.MockSpan;
-import io.opentracing.mock.MockTracer;
-import io.opentracing.util.GlobalTracer;
-import io.opentracing.util.GlobalTracerTestUtil;
-import io.quarkus.test.QuarkusUnitTest;
-import io.restassured.RestAssured;
-import io.restassured.parsing.Parser;
-
-public class TracingTest {
-
- @RegisterExtension
- static final QuarkusUnitTest config = new QuarkusUnitTest()
- .withApplicationRoot((jar) -> jar
- .addClass(TestResource.class)
- .addClass(Service.class)
- .addClass(RestService.class)
- .addClass(Fruit.class)
- .addAsResource("application.properties")
- .addAsResource("import.sql")
- .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml"));
-
- static MockTracer mockTracer = new MockTracer();
- static {
- GlobalTracer.registerIfAbsent(mockTracer);
- }
-
- @BeforeEach
- public void before() {
- mockTracer.reset();
- }
-
- @AfterAll
- public static void afterAll() {
- GlobalTracerTestUtil.resetGlobalTracer();
- }
-
- @Test
- public void testSingleServerRequest() {
- try {
- RestAssured.defaultParser = Parser.TEXT;
- RestAssured.when().get("/hello")
- .then()
- .statusCode(200);
- Assertions.assertEquals(1, mockTracer.finishedSpans().size());
- Assertions.assertEquals("GET:io.quarkus.smallrye.opentracing.deployment.TestResource.hello",
- mockTracer.finishedSpans().get(0).operationName());
- } finally {
- RestAssured.reset();
- }
- }
-
- @Test
- public void testCDI() {
- try {
- RestAssured.defaultParser = Parser.TEXT;
- RestAssured.when().get("/cdi")
- .then()
- .statusCode(200);
- Assertions.assertEquals(2, mockTracer.finishedSpans().size());
- Assertions.assertEquals("io.quarkus.smallrye.opentracing.deployment.Service.foo",
- mockTracer.finishedSpans().get(0).operationName());
- Assertions.assertEquals("GET:io.quarkus.smallrye.opentracing.deployment.TestResource.cdi",
- mockTracer.finishedSpans().get(1).operationName());
- } finally {
- RestAssured.reset();
- }
- }
-
- @Test
- public void testMPRestClient() {
- try {
- RestAssured.defaultParser = Parser.TEXT;
- RestAssured.when().get("/restClient")
- .then()
- .statusCode(200);
- Assertions.assertEquals(3, mockTracer.finishedSpans().size());
- Assertions.assertEquals("GET:io.quarkus.smallrye.opentracing.deployment.TestResource.hello",
- mockTracer.finishedSpans().get(0).operationName());
- Assertions.assertEquals("GET", mockTracer.finishedSpans().get(1).operationName());
- Assertions.assertEquals("GET:io.quarkus.smallrye.opentracing.deployment.TestResource.restClient",
- mockTracer.finishedSpans().get(2).operationName());
- } finally {
- RestAssured.reset();
- }
- }
-
- @Test
- public void testContextPropagationInFaultTolerance() {
- try {
- RestAssured.defaultParser = Parser.TEXT;
- RestAssured.when().get("/faultTolerance")
- .then()
- .statusCode(200)
- .body(equalTo("fallback"));
- Awaitility.await().atMost(5, TimeUnit.SECONDS)
- .until(() -> mockTracer.finishedSpans().size() == 5);
- List spans = mockTracer.finishedSpans();
-
- Assertions.assertEquals(5, spans.size());
- for (MockSpan mockSpan : spans) {
- Assertions.assertEquals(spans.get(0).context().traceId(), mockSpan.context().traceId());
- }
-
- // if timeout occurs, subsequent retries/fallback can be interleaved with the execution that timed out,
- // resulting in varying span order
- Assertions.assertEquals(3, countSpansWithOperationName(spans, "ft"));
- Assertions.assertEquals(1, countSpansWithOperationName(spans, "fallback"));
- Assertions.assertEquals(1, countSpansWithOperationName(spans,
- "GET:io.quarkus.smallrye.opentracing.deployment.TestResource.faultTolerance"));
- } finally {
- RestAssured.reset();
- }
- }
-
- private long countSpansWithOperationName(List spans, String operationName) {
- return spans.stream().filter(span -> span.operationName().equals(operationName)).count();
- }
-
- @Test
- public void testJPA() {
- try {
- RestAssured.defaultParser = Parser.JSON;
- RestAssured.when().get("/jpa")
- .then()
- .statusCode(200)
- .body("", hasSize(3))
- .body("name[0]", equalTo("Apple"))
- .body("name[1]", equalTo("Banana"))
- .body("name[2]", equalTo("Cherry"));
- List spans = mockTracer.finishedSpans();
-
- Assertions.assertEquals(3, spans.size());
- for (MockSpan mockSpan : spans) {
- Assertions.assertEquals(spans.get(0).context().traceId(), mockSpan.context().traceId());
- }
- MockSpan firstSpan = mockTracer.finishedSpans().get(0);
- Assertions.assertEquals("Query", firstSpan.operationName());
- Assertions.assertTrue(firstSpan.tags().containsKey("db.statement"));
- Assertions.assertTrue(firstSpan.tags().get("db.statement").toString().contains("known_fruits"));
- Assertions.assertEquals("io.quarkus.smallrye.opentracing.deployment.Service.getFruits",
- mockTracer.finishedSpans().get(1).operationName());
- Assertions.assertEquals("GET:io.quarkus.smallrye.opentracing.deployment.TestResource.jpa",
- mockTracer.finishedSpans().get(2).operationName());
- } finally {
- RestAssured.reset();
- }
- }
-}
diff --git a/extensions/smallrye-opentracing/deployment/src/test/resources/application.properties b/extensions/smallrye-opentracing/deployment/src/test/resources/application.properties
deleted file mode 100644
index c474a0d75442b..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/resources/application.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-quarkus.datasource.db-kind=h2
-quarkus.datasource.jdbc.driver=io.opentracing.contrib.jdbc.TracingDriver
-quarkus.datasource.jdbc.url=jdbc:tracing:h2:mem:test
-quarkus.datasource.jdbc.max-size=8
-
-quarkus.hibernate-orm.database.generation=drop-and-create
-#quarkus.hibernate-orm.log.sql=true
-quarkus.hibernate-orm.sql-load-script=import.sql
-
-quarkus.jaeger.disable-tracer-registration=true
-
diff --git a/extensions/smallrye-opentracing/deployment/src/test/resources/import.sql b/extensions/smallrye-opentracing/deployment/src/test/resources/import.sql
deleted file mode 100644
index 2fffc825cfd97..0000000000000
--- a/extensions/smallrye-opentracing/deployment/src/test/resources/import.sql
+++ /dev/null
@@ -1,3 +0,0 @@
-INSERT INTO known_fruits(id, name) VALUES (1, 'Cherry');
-INSERT INTO known_fruits(id, name) VALUES (2, 'Apple');
-INSERT INTO known_fruits(id, name) VALUES (3, 'Banana');
diff --git a/extensions/smallrye-opentracing/pom.xml b/extensions/smallrye-opentracing/pom.xml
deleted file mode 100644
index e7c787b9a7fb1..0000000000000
--- a/extensions/smallrye-opentracing/pom.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
- quarkus-extensions-parent
- io.quarkus
- 999-SNAPSHOT
- ../pom.xml
-
- 4.0.0
-
- quarkus-smallrye-opentracing-parent
- Quarkus - SmallRye OpenTracing
- pom
-
- deployment
- runtime
-
-
diff --git a/extensions/smallrye-opentracing/runtime/pom.xml b/extensions/smallrye-opentracing/runtime/pom.xml
deleted file mode 100644
index 991ad47e2eba5..0000000000000
--- a/extensions/smallrye-opentracing/runtime/pom.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
- quarkus-smallrye-opentracing-parent
- io.quarkus
- 999-SNAPSHOT
-
- 4.0.0
-
- quarkus-smallrye-opentracing
- Quarkus - SmallRye OpenTracing - Runtime
- Trace your services with SmallRye OpenTracing
-
-
- org.eclipse.microprofile.config
- microprofile-config-api
-
-
- org.eclipse.microprofile.opentracing
- microprofile-opentracing-api
-
-
- io.smallrye
- smallrye-opentracing
-
-
- javax.inject
- javax.inject
-
-
-
-
-
- jakarta.ws.rs
- jakarta.ws.rs-api
-
-
- io.smallrye
- smallrye-fault-tolerance-tracing-propagation
-
-
- *
- *
-
-
-
-
- jakarta.inject
- jakarta.inject-api
-
-
- io.quarkus
- quarkus-arc
-
-
- io.quarkus
- quarkus-jaeger
-
-
- io.quarkus
- quarkus-resteasy
- true
-
-
- io.quarkus
- quarkus-resteasy-reactive
- true
-
-
- io.quarkus
- quarkus-jsonp
-
-
- jakarta.servlet
- jakarta.servlet-api
-
-
-
-
-
-
- io.quarkus
- quarkus-extension-maven-plugin
-
-
- io.quarkus.smallrye.opentracing
-
-
-
-
- maven-compiler-plugin
-
-
-
- io.quarkus
- quarkus-extension-processor
- ${project.version}
-
-
-
-
-
-
-
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/FilterUtil.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/FilterUtil.java
deleted file mode 100644
index 0449b4932a1b1..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/FilterUtil.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import io.opentracing.Span;
-import io.opentracing.tag.Tags;
-
-final class FilterUtil {
-
- private FilterUtil() {
- }
-
- static void addExceptionLogs(Span span, Throwable throwable) {
- Tags.ERROR.set(span, true);
- if (throwable != null) {
- Map errorLogs = new HashMap<>(2);
- errorLogs.put("event", Tags.ERROR.getKey());
- errorLogs.put("error.object", throwable);
- span.log(errorLogs);
- }
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java
deleted file mode 100644
index bc115097f088b..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingDynamicFeature.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import jakarta.enterprise.inject.spi.CDI;
-import jakarta.inject.Inject;
-import jakarta.ws.rs.container.DynamicFeature;
-import jakarta.ws.rs.container.ResourceInfo;
-import jakarta.ws.rs.core.FeatureContext;
-import jakarta.ws.rs.ext.Provider;
-
-import io.opentracing.Tracer;
-import io.smallrye.opentracing.contrib.jaxrs2.server.OperationNameProvider;
-import io.smallrye.opentracing.contrib.jaxrs2.server.ServerTracingDynamicFeature;
-
-@Provider
-public class QuarkusSmallRyeTracingDynamicFeature implements DynamicFeature {
- @Inject
- TracingConfig tracingConfig;
-
- @Override
- public void configure(ResourceInfo resourceInfo, FeatureContext context) {
- ServerTracingDynamicFeature.Builder builder = new ServerTracingDynamicFeature.Builder(
- CDI.current().select(Tracer.class).get())
- .withOperationNameProvider(OperationNameProvider.ClassNameOperationName.newBuilder())
- .withTraceSerialization(false);
-
- tracingConfig.skipPattern.ifPresent(builder::withSkipPattern);
- if (tracingConfig.operationNameProvider.isPresent()) {
- if (tracingConfig.operationNameProvider.get().equals(TracingConfig.OperationNameProvider.HTTP_PATH)) {
- builder.withOperationNameProvider(OperationNameProvider.WildcardOperationName.newBuilder());
- }
- }
-
- ServerTracingDynamicFeature serverTracing = builder.build();
- serverTracing.configure(resourceInfo, context);
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java
deleted file mode 100644
index ba2320371a1ad..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneContainerResponseFilter.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import java.io.IOException;
-
-import jakarta.annotation.Priority;
-import jakarta.interceptor.Interceptor;
-import jakarta.ws.rs.Priorities;
-import jakarta.ws.rs.container.ContainerRequestContext;
-import jakarta.ws.rs.container.ContainerResponseContext;
-import jakarta.ws.rs.ext.Provider;
-import jakarta.ws.rs.ext.WriterInterceptor;
-import jakarta.ws.rs.ext.WriterInterceptorContext;
-
-import org.jboss.resteasy.reactive.server.ServerResponseFilter;
-
-import io.opentracing.tag.Tags;
-import io.smallrye.opentracing.contrib.jaxrs2.internal.SpanWrapper;
-
-@Provider
-// We must close the span after everything else has finished
-@Priority(Interceptor.Priority.PLATFORM_BEFORE)
-public class QuarkusSmallRyeTracingStandaloneContainerResponseFilter implements WriterInterceptor {
-
- @ServerResponseFilter(priority = Priorities.HEADER_DECORATOR - 1) // this needs to be executed after ServerTracingFilter
- public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext, Throwable t) {
- Object wrapperObj = requestContext.getProperty(SpanWrapper.PROPERTY_NAME);
- if (!(wrapperObj instanceof SpanWrapper)) {
- return;
- }
- SpanWrapper wrapper = (SpanWrapper) wrapperObj;
- Tags.HTTP_STATUS.set(wrapper.get(), responseContext.getStatus());
- if (t != null) {
- FilterUtil.addExceptionLogs(wrapper.get(), t);
- }
- }
-
- @Override
- public void aroundWriteTo(WriterInterceptorContext wic) throws IOException {
- try {
- wic.proceed();
- } finally {
- Object wrapperObj = wic.getProperty(SpanWrapper.PROPERTY_NAME);
- if (wrapperObj instanceof SpanWrapper) {
- SpanWrapper wrapper = (SpanWrapper) wrapperObj;
- wrapper.getScope().close();
- wrapper.finish();
- }
- }
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java
deleted file mode 100644
index 681b78b369eed..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/QuarkusSmallRyeTracingStandaloneVertxDynamicFeature.java
+++ /dev/null
@@ -1,57 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import java.io.IOException;
-
-import jakarta.enterprise.inject.spi.CDI;
-import jakarta.ws.rs.container.ContainerRequestContext;
-import jakarta.ws.rs.container.ContainerRequestFilter;
-import jakarta.ws.rs.container.DynamicFeature;
-import jakarta.ws.rs.container.ResourceInfo;
-import jakarta.ws.rs.core.FeatureContext;
-import jakarta.ws.rs.ext.Provider;
-
-import io.opentracing.tag.Tags;
-import io.quarkus.vertx.http.runtime.CurrentVertxRequest;
-import io.smallrye.opentracing.contrib.jaxrs2.internal.SpanWrapper;
-import io.vertx.core.Handler;
-import io.vertx.ext.web.RoutingContext;
-
-@Provider
-public class QuarkusSmallRyeTracingStandaloneVertxDynamicFeature implements DynamicFeature {
-
- @Override
- public void configure(ResourceInfo resourceInfo, FeatureContext context) {
- context.register(StandaloneFilter.class);
- }
-
- public static class StandaloneFilter implements ContainerRequestFilter {
-
- volatile CurrentVertxRequest currentVertxRequest;
-
- CurrentVertxRequest request() {
- if (currentVertxRequest == null) {
- currentVertxRequest = CDI.current().select(CurrentVertxRequest.class).get();
- }
- return currentVertxRequest;
- }
-
- @Override
- public void filter(ContainerRequestContext requestContext) throws IOException {
- RoutingContext routingContext = request().getCurrent();
- routingContext.addHeadersEndHandler(new Handler() {
- @Override
- public void handle(Void event) {
- SpanWrapper wrapper = routingContext.get(SpanWrapper.PROPERTY_NAME);
- if (wrapper != null) {
- wrapper.getScope().close();
- Tags.HTTP_STATUS.set(wrapper.get(), routingContext.response().getStatusCode());
- if (routingContext.failure() != null) {
- FilterUtil.addExceptionLogs(wrapper.get(), routingContext.failure());
- }
- wrapper.finish();
- }
- }
- });
- }
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java
deleted file mode 100644
index 4af785fbacfb7..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracerProducer.java
+++ /dev/null
@@ -1,20 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.enterprise.context.Dependent;
-import jakarta.enterprise.inject.Produces;
-
-import io.opentracing.Tracer;
-import io.opentracing.util.GlobalTracer;
-
-/**
- * Created by bob on 8/6/18.
- */
-@Dependent
-public class TracerProducer {
- @Produces
- @ApplicationScoped
- Tracer tracer() {
- return GlobalTracer.get();
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfig.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfig.java
deleted file mode 100644
index 64396e9dc8f63..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfig.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import java.util.Optional;
-
-import io.quarkus.runtime.annotations.ConfigItem;
-import io.quarkus.runtime.annotations.ConfigPhase;
-import io.quarkus.runtime.annotations.ConfigRoot;
-
-@ConfigRoot(name = "opentracing", phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
-public class TracingConfig {
- /**
- *
- */
- @ConfigItem(name = "server.skip-pattern")
- public Optional skipPattern;
-
- /**
- *
- */
- @ConfigItem(name = "server.operation-name-provider", defaultValue = "class-method")
- public Optional operationNameProvider;
-
- public enum OperationNameProvider {
- HTTP_PATH,
- CLASS_METHOD;
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java b/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java
deleted file mode 100644
index 9f1a0fe73a226..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/java/io/quarkus/smallrye/opentracing/runtime/TracingConfigRelocateConfigSourceInterceptor.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package io.quarkus.smallrye.opentracing.runtime;
-
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Set;
-
-import jakarta.annotation.Priority;
-
-import io.smallrye.config.ConfigSourceInterceptorContext;
-import io.smallrye.config.ConfigValue;
-import io.smallrye.config.Priorities;
-import io.smallrye.config.RelocateConfigSourceInterceptor;
-
-@Priority(Priorities.LIBRARY + 600 - 5)
-public class TracingConfigRelocateConfigSourceInterceptor extends RelocateConfigSourceInterceptor {
- private static final Map RELOCATIONS = relocations();
-
- public TracingConfigRelocateConfigSourceInterceptor() {
- super(RELOCATIONS);
- }
-
- @Override
- public Iterator iterateNames(final ConfigSourceInterceptorContext context) {
- final Set names = new HashSet<>();
- final Iterator namesIterator = context.iterateNames();
- while (namesIterator.hasNext()) {
- final String name = namesIterator.next();
- names.add(name);
- final String mappedName = RELOCATIONS.get(name);
- if (mappedName != null) {
- names.add(mappedName);
- }
- }
- return names.iterator();
- }
-
- @Override
- public Iterator iterateValues(final ConfigSourceInterceptorContext context) {
- return context.iterateValues();
- }
-
- private static Map relocations() {
- Map relocations = new HashMap<>();
- relocations.put("mp.opentracing.server.skip-pattern", "quarkus.opentracing.server.skip-pattern");
- relocations.put("quarkus.opentracing.server.skip-pattern", "mp.opentracing.server.skip-pattern");
- relocations.put("mp.opentracing.server.operation-name-provider", "quarkus.opentracing.server.operation-name-provider");
- relocations.put("quarkus.opentracing.server.operation-name-provider", "mp.opentracing.server.operation-name-provider");
- return Collections.unmodifiableMap(relocations);
- }
-}
diff --git a/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/quarkus-extension.yaml
deleted file mode 100644
index ef5bb82541cfe..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/quarkus-extension.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
----
-artifact: ${project.groupId}:${project.artifactId}:${project.version}
-name: "SmallRye OpenTracing"
-metadata:
- keywords:
- - "smallrye-opentracing"
- - "opentracing"
- - "tracing"
- - "distributed-tracing"
- - "jaeger"
- guide: "https://quarkus.io/guides/opentracing"
- categories:
- - "observability"
- status: "deprecated"
- config:
- - "quarkus.jaeger."
- - "mp.opentracing."
diff --git a/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor b/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
deleted file mode 100644
index 9a80fdce3e0e8..0000000000000
--- a/extensions/smallrye-opentracing/runtime/src/main/resources/META-INF/services/io.smallrye.config.ConfigSourceInterceptor
+++ /dev/null
@@ -1 +0,0 @@
-io.quarkus.smallrye.opentracing.runtime.TracingConfigRelocateConfigSourceInterceptor
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index 4ffed18b7049f..9e2a87421bd04 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -316,7 +316,6 @@
smallrye-metrics
smallrye-graphql
smallrye-graphql-client
- smallrye-opentracing
smallrye-stork-registration
jpa-without-entity
quartz
diff --git a/integration-tests/smallrye-config/pom.xml b/integration-tests/smallrye-config/pom.xml
index 190438f577f7f..fed494bc78019 100644
--- a/integration-tests/smallrye-config/pom.xml
+++ b/integration-tests/smallrye-config/pom.xml
@@ -36,12 +36,6 @@
io.quarkus
quarkus-resteasy-reactive-jackson
-
-
-
- io.quarkus
- quarkus-smallrye-opentracing
-
io.quarkus
@@ -147,19 +141,6 @@
-
- io.quarkus
- quarkus-smallrye-opentracing-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
io.quarkus
quarkus-config-yaml-deployment
diff --git a/integration-tests/smallrye-opentracing/pom.xml b/integration-tests/smallrye-opentracing/pom.xml
deleted file mode 100644
index 9c1c6568ba67c..0000000000000
--- a/integration-tests/smallrye-opentracing/pom.xml
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
- quarkus-integration-tests-parent
- io.quarkus
- 999-SNAPSHOT
-
- 4.0.0
- quarkus-integration-test-smallrye-opentracing
- Quarkus - Integration Tests - Smallrye Opentracing
-
-
-
-
- org.hamcrest
- hamcrest-core
- 2.1
-
-
-
-
-
-
-
- io.quarkus
- quarkus-resteasy-reactive-jackson
-
-
- io.quarkus
- quarkus-smallrye-opentracing
-
-
- io.opentracing.contrib
- opentracing-jdbc
-
-
- io.quarkus
- quarkus-jdbc-postgresql
-
-
- io.quarkus
- quarkus-agroal
-
-
-
-
- io.quarkus
- quarkus-rest-client-reactive
-
-
-
-
- io.opentracing
- opentracing-mock
-
-
-
-
- io.quarkus
- quarkus-junit5
- test
-
-
- io.rest-assured
- rest-assured
- test
-
-
- org.awaitility
- awaitility
- test
-
-
- org.jboss.logging
- commons-logging-jboss-logging
- test
-
-
- org.testcontainers
- postgresql
- test
-
-
- org.testcontainers
- junit-jupiter
- test
-
-
-
-
- io.quarkus
- quarkus-agroal-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
-
- io.quarkus
- quarkus-jdbc-postgresql-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
-
- io.quarkus
- quarkus-resteasy-reactive-jackson-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
-
- io.quarkus
- quarkus-rest-client-reactive-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
-
- io.quarkus
- quarkus-smallrye-opentracing-deployment
- ${project.version}
- pom
- test
-
-
- *
- *
-
-
-
-
-
-
-
-
- src/main/resources
- true
-
-
-
-
- io.quarkus
- quarkus-maven-plugin
-
-
-
- build
-
-
-
-
-
- org.apache.maven.plugins
- maven-surefire-plugin
-
-
-
-
-
-
- native-image
-
-
- native
-
-
-
-
-
- org.apache.maven.plugins
- maven-failsafe-plugin
-
-
-
-
-
-
-
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java
deleted file mode 100644
index 62373546b1dcf..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/ExporterResource.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import java.util.List;
-import java.util.stream.Collectors;
-
-import jakarta.inject.Inject;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-import io.opentracing.mock.MockSpan;
-import io.opentracing.mock.MockTracer;
-
-@Path("/export")
-public class ExporterResource {
- @Inject
- MockTracer mockTracer;
-
- @GET
- @Path("/clear")
- public void clearExporter() {
- mockTracer.reset();
- }
-
- @GET
- public List retrieve() {
- return mockTracer.finishedSpans().stream()
- .filter(span -> !span.operationName().equals("GET:io.quarkus.it.opentracing.ExporterResource.clearExporter") &&
- !span.operationName().equals("GET:io.quarkus.it.opentracing.ExporterResource.retrieve"))
- .collect(Collectors.toList());
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java
deleted file mode 100644
index 0dd46624da87a..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/JdbcResource.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import javax.sql.DataSource;
-
-import jakarta.inject.Inject;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-@Path("/jdbc")
-public class JdbcResource {
- @Inject
- DataSource defaultDataSource;
-
- @GET
- public TraceData jdbc() throws SQLException {
- Connection con = defaultDataSource.getConnection();
- try (Statement stmt = con.createStatement()) {
- ResultSet resultSet = stmt.executeQuery("select 1");
- resultSet.next();
- String result = resultSet.getString(1);
- TraceData data = new TraceData();
- data.message = result;
- return data;
- }
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java
deleted file mode 100644
index 1eb5145dbca5b..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/MockTracerProvider.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import jakarta.annotation.Priority;
-import jakarta.enterprise.context.ApplicationScoped;
-import jakarta.enterprise.inject.Alternative;
-import jakarta.enterprise.inject.Produces;
-import jakarta.inject.Singleton;
-
-import io.opentracing.mock.MockTracer;
-import io.opentracing.util.GlobalTracer;
-
-@ApplicationScoped
-public class MockTracerProvider {
-
- @Produces
- @Singleton
- @Alternative
- @Priority(1)
- public MockTracer createInMemoryExporter() {
- MockTracer tracer = new MockTracer();
- GlobalTracer.registerIfAbsent(tracer);
- return tracer;
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java
deleted file mode 100644
index 10baa8c973e4c..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/PingPongResource.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import jakarta.inject.Inject;
-import jakarta.inject.Singleton;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.PathParam;
-
-import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
-import org.eclipse.microprofile.rest.client.inject.RestClient;
-
-import io.smallrye.common.annotation.Blocking;
-import io.smallrye.mutiny.Uni;
-
-@Singleton
-@Path("/client")
-public class PingPongResource {
- @RegisterRestClient(configKey = "pingpong")
- public interface PingPongRestClient {
-
- @Path("/client/pong/{message}")
- @GET
- String pingpong(@PathParam("message") String message);
-
- @GET
- @Path("/client/pong/{message}")
- Uni asyncPingpong(@PathParam("message") String message);
- }
-
- @Inject
- @RestClient
- PingPongRestClient pingRestClient;
-
- @GET
- @Path("pong/{message}")
- public String pong(@PathParam("message") String message) {
- return message;
- }
-
- @GET
- @Blocking
- @Path("ping/{message}")
- public String ping(@PathParam("message") String message) {
- return pingRestClient.pingpong(message);
- }
-
- @GET
- @Path("async-ping/{message}")
- public Uni asyncPing(@PathParam("message") String message) {
- return pingRestClient.asyncPingpong(message);
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java
deleted file mode 100644
index 0060eb38197ff..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/SimpleResource.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import jakarta.inject.Inject;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.PathParam;
-import jakarta.ws.rs.Produces;
-import jakarta.ws.rs.core.MediaType;
-
-@Path("/")
-@Produces(MediaType.APPLICATION_JSON)
-public class SimpleResource {
-
- @Inject
- TracedService tracedService;
-
- @GET
- @Path("/direct")
- public TraceData directTrace() {
- TraceData data = new TraceData();
- data.message = "Direct trace";
-
- return data;
- }
-
- @GET
- @Path("/chained")
- public TraceData chainedTrace() {
- TraceData data = new TraceData();
- data.message = tracedService.call();
-
- return data;
- }
-
- @GET
- @Path("/deep/path")
- public TraceData deepUrlPathTrace() {
- TraceData data = new TraceData();
- data.message = "Deep url path";
-
- return data;
- }
-
- @GET
- @Path("/param/{paramId}")
- public TraceData pathParameters(@PathParam("paramId") String paramId) {
- TraceData data = new TraceData();
- data.message = "ParameterId: " + paramId;
-
- return data;
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TraceData.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TraceData.java
deleted file mode 100644
index e847bcf131805..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TraceData.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package io.quarkus.it.opentracing;
-
-public class TraceData {
- public String message;
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java
deleted file mode 100644
index ec2b2dbd17c7b..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracedService.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import jakarta.enterprise.context.ApplicationScoped;
-
-@ApplicationScoped
-public class TracedService {
- public String call() {
- return "Chained trace";
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java
deleted file mode 100644
index b6fa2ada998f7..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/TracingProperyJdbcResource.java
+++ /dev/null
@@ -1,87 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import java.sql.Connection;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-
-import javax.sql.DataSource;
-
-import jakarta.inject.Inject;
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-
-@Path("/tracingpropertyjdbc")
-public class TracingProperyJdbcResource {
- @Inject
- @io.quarkus.agroal.DataSource("postgres")
- DataSource postgresDataSource;
-
- @Inject
- @io.quarkus.agroal.DataSource("postgres2")
- DataSource postgresDataSource2;
-
- @Inject
- @io.quarkus.agroal.DataSource("postgres3")
- DataSource postgresDataSource3;
-
- @Inject
- @io.quarkus.agroal.DataSource("postgres4")
- DataSource postgresDataSource4;
-
- @GET()
- @Path("tracingenabled")
- public TraceData jdbcTracingEnabled() throws SQLException {
- Connection con = postgresDataSource.getConnection();
- try (Statement stmt = con.createStatement()) {
- ResultSet resultSet = stmt.executeQuery("select 1");
- resultSet.next();
- String result = resultSet.getString(1);
- TraceData data = new TraceData();
- data.message = result;
- return data;
- }
- }
-
- @GET()
- @Path("tracingdisabled")
- public TraceData jdbcTracingDisabled() throws SQLException {
- Connection con = postgresDataSource2.getConnection();
- try (Statement stmt = con.createStatement()) {
- ResultSet resultSet = stmt.executeQuery("select 1");
- resultSet.next();
- String result = resultSet.getString(1);
- TraceData data = new TraceData();
- data.message = result;
- return data;
- }
- }
-
- @GET()
- @Path("traceactivespanonly")
- public TraceData traceActiveSpanOnly() throws SQLException {
- Connection con = postgresDataSource3.getConnection();
- try (Statement stmt = con.createStatement()) {
- ResultSet resultSet = stmt.executeQuery("select 1");
- resultSet.next();
- String result = resultSet.getString(1);
- TraceData data = new TraceData();
- data.message = result;
- return data;
- }
- }
-
- @GET()
- @Path("traceignoresql")
- public TraceData traceIgnoreSql() throws SQLException {
- Connection con = postgresDataSource4.getConnection();
- try (Statement stmt = con.createStatement()) {
- ResultSet resultSet = stmt.executeQuery("select 1");
- resultSet.next();
- String result = resultSet.getString(1);
- TraceData data = new TraceData();
- data.message = result;
- return data;
- }
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java
deleted file mode 100644
index d48e38d6149e4..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanModuleSerializer.java
+++ /dev/null
@@ -1,19 +0,0 @@
-package io.quarkus.it.opentracing.json;
-
-import jakarta.inject.Singleton;
-
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.module.SimpleModule;
-
-import io.opentracing.mock.MockSpan;
-import io.quarkus.jackson.ObjectMapperCustomizer;
-
-@Singleton
-public class MockSpanModuleSerializer implements ObjectMapperCustomizer {
- @Override
- public void customize(ObjectMapper objectMapper) {
- SimpleModule simpleModule = new SimpleModule();
- simpleModule.addSerializer(MockSpan.class, new MockSpanSerializer());
- objectMapper.registerModule(simpleModule);
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanSerializer.java b/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanSerializer.java
deleted file mode 100644
index 0ddcec9edfc82..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/java/io/quarkus/it/opentracing/json/MockSpanSerializer.java
+++ /dev/null
@@ -1,46 +0,0 @@
-package io.quarkus.it.opentracing.json;
-
-import java.io.IOException;
-
-import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-
-import io.opentracing.mock.MockSpan;
-
-public class MockSpanSerializer extends StdSerializer {
-
- public MockSpanSerializer() {
- super(MockSpan.class);
- }
-
- @Override
- public void serialize(MockSpan mockSpan, JsonGenerator jsonGenerator, SerializerProvider serializerProvider)
- throws IOException {
- jsonGenerator.writeStartObject();
-
- jsonGenerator.writeStringField("spanId", mockSpan.context().toSpanId());
- jsonGenerator.writeStringField("traceId", mockSpan.context().toTraceId());
- jsonGenerator.writeStringField("operation_name", mockSpan.operationName());
-
- jsonGenerator.writeNumberField("parent_spanId", mockSpan.parentId());
-
- mockSpan.tags().forEach((k, v) -> {
- try {
- jsonGenerator.writeStringField("tag_" + k, v.toString());
- } catch (IOException e) {
- e.printStackTrace();
- }
- });
-
- mockSpan.context().baggageItems().forEach(entry -> {
- try {
- jsonGenerator.writeStringField("baggage_" + entry.getKey(), entry.getValue());
- } catch (IOException e) {
- e.printStackTrace();
- }
- });
-
- jsonGenerator.writeEndObject();
- }
-}
diff --git a/integration-tests/smallrye-opentracing/src/main/resources/application.properties b/integration-tests/smallrye-opentracing/src/main/resources/application.properties
deleted file mode 100644
index f0db68e6da507..0000000000000
--- a/integration-tests/smallrye-opentracing/src/main/resources/application.properties
+++ /dev/null
@@ -1,42 +0,0 @@
-quarkus.datasource.db-kind=postgresql
-quarkus.datasource.jdbc.url=jdbc:tracing:postgresql://localhost:5432/mydatabase
-quarkus.datasource.jdbc.driver=io.opentracing.contrib.jdbc.TracingDriver
-quarkus.datasource.username=sa
-quarkus.datasource.password=sa
-quarkus.rest.single-default-produces=false
-
-pingpong/mp-rest/url=${test.url}
-
-quarkus.datasource.postgres.db-kind=postgresql
-quarkus.datasource.postgres.jdbc.url=jdbc:postgresql://localhost:5432/mydatabase
-quarkus.datasource.postgres.jdbc.driver=org.postgresql.Driver
-quarkus.datasource.postgres.username=sa
-quarkus.datasource.postgres.password=sa
-quarkus.datasource.postgres.jdbc.tracing=true
-quarkus.datasource.postgres.jdbc.tracing.enabled=true
-
-quarkus.datasource.postgres2.db-kind=postgresql
-quarkus.datasource.postgres2.jdbc.url=jdbc:postgresql://localhost:5432/mydatabase
-quarkus.datasource.postgres2.jdbc.driver=org.postgresql.Driver
-quarkus.datasource.postgres2.username=sa
-quarkus.datasource.postgres2.password=sa
-quarkus.datasource.postgres2.jdbc.tracing=true
-quarkus.datasource.postgres2.jdbc.tracing.enabled=false
-
-quarkus.datasource.postgres3.db-kind=postgresql
-quarkus.datasource.postgres3.jdbc.url=jdbc:postgresql://localhost:5432/mydatabase
-quarkus.datasource.postgres3.jdbc.driver=org.postgresql.Driver
-quarkus.datasource.postgres3.username=sa
-quarkus.datasource.postgres3.password=sa
-quarkus.datasource.postgres3.jdbc.tracing=true
-quarkus.datasource.postgres3.jdbc.tracing.enabled=true
-quarkus.datasource.postgres3.jdbc.tracing.trace-with-active-span-only=true
-
-quarkus.datasource.postgres4.db-kind=postgresql
-quarkus.datasource.postgres4.jdbc.url=jdbc:postgresql://localhost:5432/mydatabase
-quarkus.datasource.postgres4.jdbc.driver=org.postgresql.Driver
-quarkus.datasource.postgres4.username=sa
-quarkus.datasource.postgres4.password=sa
-quarkus.datasource.postgres4.jdbc.tracing=true
-quarkus.datasource.postgres4.jdbc.tracing.enabled=true
-quarkus.datasource.postgres4.jdbc.tracing.ignore-for-tracing=select 1
diff --git a/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingITCase.java b/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingITCase.java
deleted file mode 100644
index 619c69d90e5ef..0000000000000
--- a/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingITCase.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import io.quarkus.test.junit.QuarkusIntegrationTest;
-
-@QuarkusIntegrationTest
-public class OpenTracingITCase extends OpenTracingTestCase {
-}
diff --git a/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingTestCase.java b/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingTestCase.java
deleted file mode 100644
index 0cb371027fe2e..0000000000000
--- a/integration-tests/smallrye-opentracing/src/test/java/io/quarkus/it/opentracing/OpenTracingTestCase.java
+++ /dev/null
@@ -1,438 +0,0 @@
-package io.quarkus.it.opentracing;
-
-import static io.restassured.RestAssured.get;
-import static io.restassured.RestAssured.given;
-import static org.hamcrest.CoreMatchers.containsString;
-import static org.hamcrest.CoreMatchers.equalTo;
-
-import java.time.Duration;
-import java.util.List;
-import java.util.Map;
-
-import org.awaitility.Awaitility;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.condition.DisabledOnOs;
-import org.junit.jupiter.api.condition.OS;
-import org.testcontainers.containers.GenericContainer;
-import org.testcontainers.containers.PostgreSQLContainer;
-
-import io.quarkus.test.junit.QuarkusTest;
-import io.restassured.common.mapper.TypeRef;
-
-@QuarkusTest
-@DisabledOnOs({ OS.WINDOWS, OS.MAC })
-public class OpenTracingTestCase {
-
- static GenericContainer postgreSQLContainer;
-
- @BeforeAll
- static void initPostgres() {
- postgreSQLContainer = new PostgreSQLContainer(PostgreSQLContainer.IMAGE)
- .withDatabaseName("mydatabase").withUsername("sa").withPassword("sa");
- postgreSQLContainer.setPortBindings(List.of("5432:5432"));
- postgreSQLContainer.start();
- }
-
- private void resetExporter() {
- given()
- .when().get("/export/clear")
- .then()
- .statusCode(204);
- }
-
- private List