diff --git a/bom/application/pom.xml b/bom/application/pom.xml
index 12ba92c88e127..8d317925da1f7 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.5
2.1.12
@@ -56,7 +55,6 @@
4.0.0
3.7.0
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
@@ -6307,6 +6223,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/core/deployment/src/main/java/io/quarkus/deployment/Capability.java b/core/deployment/src/main/java/io/quarkus/deployment/Capability.java
index 5f3d5d46246d1..73cd3cff70287 100644
--- a/core/deployment/src/main/java/io/quarkus/deployment/Capability.java
+++ b/core/deployment/src/main/java/io/quarkus/deployment/Capability.java
@@ -113,16 +113,8 @@ public interface Capability {
String KEYCLOAK_AUTHORIZATION = QUARKUS_PREFIX + ".keycloak.authorization";
- /**
- * Presence of an io.opentracing tracer (for example, Jaeger).
- */
- String OPENTRACING = QUARKUS_PREFIX + ".opentracing";
- /**
- * Presence of SmallRye OpenTracing.
- */
String SCHEDULER = QUARKUS_PREFIX + ".scheduler";
- String SMALLRYE_OPENTRACING = QUARKUS_PREFIX + ".smallrye.opentracing";
String SMALLRYE_HEALTH = QUARKUS_PREFIX + ".smallrye.health";
String SMALLRYE_OPENAPI = QUARKUS_PREFIX + ".smallrye.openapi";
String SMALLRYE_GRAPHQL = QUARKUS_PREFIX + ".smallrye.graphql";
diff --git a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java
index cebff1c71face..1f52df61cac15 100644
--- a/core/deployment/src/main/java/io/quarkus/deployment/Feature.java
+++ b/core/deployment/src/main/java/io/quarkus/deployment/Feature.java
@@ -38,7 +38,6 @@ public enum Feature {
HIBERNATE_VALIDATOR,
INFINISPAN_CLIENT,
INFINISPAN_EMBEDDED,
- JAEGER,
JDBC_DB2,
JDBC_DERBY,
JDBC_H2,
@@ -129,7 +128,6 @@ public enum Feature {
SMALLRYE_JWT,
SMALLRYE_METRICS,
SMALLRYE_OPENAPI,
- SMALLRYE_OPENTRACING,
SMALLRYE_REACTIVE_MESSAGING,
SMALLRYE_REACTIVE_MESSAGING_KAFKA,
SMALLRYE_REACTIVE_MESSAGING_AMQP,
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 ab9fe672999ad..49d905f237413 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/docs/src/main/asciidoc/mongodb.adoc b/docs/src/main/asciidoc/mongodb.adoc
index a08b5a42a1257..91f52129ce13c 100644
--- a/docs/src/main/asciidoc/mongodb.adoc
+++ b/docs/src/main/asciidoc/mongodb.adoc
@@ -616,13 +616,6 @@ This behavior must first be enabled by setting the `quarkus.mongodb.metrics.enab
So when you access the `/q/metrics` endpoint of your application you will have information about the connection pool status.
When using xref:smallrye-metrics.adoc[SmallRye Metrics], connection pool metrics will be available under the `vendor` scope.
-== Tracing
-
-If you are using the `quarkus-smallrye-opentracing` extension, `quarkus-mongodb-client` can register traces about the commands executed.
-This behavior must be enabled by setting the `quarkus.mongodb.tracing.enabled` property to `true` in your `application.properties` and adding the dependency `io.opentracing.contrib:opentracing-mongo-common` to your pom.xml (for more info read the xref:opentracing.adoc#mongodb-client[OpenTracing - MongoDB client] section).
-
-Read the xref:opentracing.adoc[OpenTracing] guide, for how to configure OpenTracing and how to use the Jaeger tracer.
-
== Testing helpers
xref:#dev-services[Dev Services for MongoDB] is your best option to start a MongoDB database for your unit tests.
diff --git a/docs/src/main/asciidoc/opentracing.adoc b/docs/src/main/asciidoc/opentracing.adoc
deleted file mode 100644
index c089dc6847c94..0000000000000
--- a/docs/src/main/asciidoc/opentracing.adoc
+++ /dev/null
@@ -1,354 +0,0 @@
-////
-This guide is maintained in the main Quarkus repository
-and pull requests should be submitted there:
-https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc
-////
-= Using OpenTracing
-:extension-status: deprecated
-include::_attributes.adoc[]
-:categories: observability
-:summary: This guide explains how your Quarkus application can utilize OpenTracing to provide distributed tracing for interactive web applications.
-:topics: observability,opentracing
-:extensions: io.quarkus:quarkus-smallrye-opentracing
-
-This guide explains how your Quarkus application can utilize OpenTracing to provide distributed tracing for
-interactive web applications.
-
-[IMPORTANT]
-====
-xref:opentelemetry.adoc[OpenTelemetry] is the recommended approach to tracing and telemetry for Quarkus and xref:telemetry-opentracing-to-otel-tutorial.adoc[a guide to help with the migration] is available.
-
-When Quarkus will upgrade to Eclipse MicroProfile 6, the SmallRye OpenTracing support will be discontinued.
-====
-
-include::{includes}/extension-status.adoc[]
-
-== Prerequisites
-
-:prerequisites-docker:
-include::{includes}/prerequisites.adoc[]
-
-== Architecture
-
-In this guide, we create a straightforward REST application to demonstrate distributed tracing.
-
-== Solution
-
-We recommend that you follow the instructions in the next sections and create the application step by step.
-However, you can skip right to the completed example.
-
-Clone the Git repository: `git clone {quickstarts-clone-url}`, or download an {quickstarts-archive-url}[archive].
-
-The solution is located in the `opentracing-quickstart` link:{quickstarts-tree-url}/opentracing-quickstart[directory].
-
-== Creating the Maven project
-
-First, we need a new project. Create a new project with the following command:
-
-:create-app-artifact-id: opentracing-quickstart
-:create-app-extensions: resteasy-reactive,quarkus-smallrye-opentracing
-include::{includes}/devtools/create-app.adoc[]
-
-This command generates the Maven project and imports the `smallrye-opentracing` extension, which
-includes the OpenTracing support and the default https://www.jaegertracing.io/[Jaeger] tracer.
-
-If you already have your Quarkus project configured, you can add the `smallrye-opentracing` extension
-to your project by running the following command in your project base directory:
-
-:add-extension-extensions: smallrye-opentracing
-include::{includes}/devtools/extension-add.adoc[]
-
-This will add the following to your build file:
-
-[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
-.pom.xml
-----
-
- io.quarkus
- quarkus-smallrye-opentracing
-
-----
-
-[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
-.build.gradle
-----
-implementation("io.quarkus:quarkus-smallrye-opentracing")
-----
-
-=== Examine the Jakarta REST resource
-
-Create the `src/main/java/org/acme/opentracing/TracedResource.java` file with the following content:
-
-[source,java]
-----
-package org.acme.opentracing;
-
-import jakarta.ws.rs.GET;
-import jakarta.ws.rs.Path;
-import jakarta.ws.rs.Produces;
-import jakarta.ws.rs.core.MediaType;
-import org.jboss.logging.Logger;
-
-@Path("/hello")
-public class TracedResource {
-
- private static final Logger LOG = Logger.getLogger(TracedResource.class);
-
- @GET
- @Produces(MediaType.TEXT_PLAIN)
- public String hello() {
- LOG.info("hello"); // <1>
- return "hello";
- }
-}
-----
-
-<1> The log event carries OpenTracing information as well. In order to print OpenTracing information to the console output, the console log handler with the required OpenTracing event's keys needs to be defined in the `application.properties` file.
-
-Notice that there is no tracing specific code included in the application. By default, requests sent to this
-endpoint will be traced without any code changes being required. It is also possible to enhance the tracing information.
-This can be achieved by https://github.com/smallrye/smallrye-opentracing/[SmallRye OpenTracing] an implementation of
-https://github.com/eclipse/microprofile-opentracing/[MicroProfile OpenTracing].
-
-=== Create the configuration
-
-There are two ways to configure the Jaeger tracer within the application.
-
-The first approach is by providing the properties within the `src/main/resources/application.properties` file:
-
-[source,properties]
-----
-quarkus.jaeger.service-name=myservice // <1>
-quarkus.jaeger.sampler-type=const // <2>
-quarkus.jaeger.sampler-param=1 // <3>
-quarkus.log.console.format=%d{HH:mm:ss} %-5p traceId=%X{traceId}, parentId=%X{parentId}, spanId=%X{spanId}, sampled=%X{sampled} [%c{2.}] (%t) %s%e%n // <4>
-----
-
-<1> If the `quarkus.jaeger.service-name` property (or `JAEGER_SERVICE_NAME` environment variable) is not provided then a "no-op" tracer will be configured, resulting in no tracing data being reported to the backend.
-<2> Set up a sampler that uses a constant sampling strategy.
-<3> Sample all requests. Set sampler-param to somewhere between 0 and 1, e.g. 0.50, if you do not wish to sample all requests.
-<4> Add trace IDs into log message.
-
-The second approach is to supply the properties as https://www.jaegertracing.io/docs/latest/client-features/[environment variables]. These can be specified using `jvm.args` as shown in the following section.
-
-== Run the application
-
-The first step is to start the tracing system to collect and display the captured traces:
-
-[source,bash]
-----
-docker run -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:latest
-----
-
-Now we are ready to run our application. If using `application.properties` to configure the tracer:
-
-include::{includes}/devtools/dev.adoc[]
-
-or if configuring the tracer via environment variables:
-
-:dev-additional-parameters: -Djvm.args="-DJAEGER_SERVICE_NAME=myservice -DJAEGER_SAMPLER_TYPE=const -DJAEGER_SAMPLER_PARAM=1"
-include::{includes}/devtools/dev.adoc[]
-:!dev-additional-parameters:
-
-Once both the application and tracing system are started, you can make a request to the provided endpoint:
-
-[source,shell]
-----
-$ curl http://localhost:8080/hello
-hello
-----
-When the first request has been submitted, the Jaeger tracer within the app will be initialized:
-
-[source]
-----
-2019-10-16 09:35:23,464 INFO [io.jae.Configuration] (executor-thread-1) Initialized tracer=JaegerTracer(version=Java-0.34.0, serviceName=myservice, reporter=RemoteReporter(sender=UdpSender(), closeEnqueueTimeout=1000), sampler=ConstSampler(decision=true, tags={sampler.type=const, sampler.param=true}), tags={hostname=localhost.localdomain, jaeger.version=Java-0.34.0, ip=127.0.0.1}, zipkinSharedRpcSpan=false, expandExceptionLogs=false, useTraceId128Bit=false)
-13:20:11 INFO traceId=1336b2b0a76a96a3, parentId=0, spanId=1336b2b0a76a96a3, sampled=true [or.ac.qu.TracedResource] (executor-thread-63) hello
-----
-
-Then visit the http://localhost:16686[Jaeger UI] to see the tracing information.
-
-Hit `CTRL+C` to stop the application.
-
-== Tracing additional methods
-
-REST endpoints are automatically traced.
-If you need to trace additional methods, you can add the `org.eclipse.microprofile.opentracing.Traced` annotation to CDI bean classes or their non-private methods.
-
-This can be useful to trace incoming requests from non-REST calls (like request coming from a message) or to create spans inside a trace.
-
-Here is an example of a `FrancophoneService` which methods are traced.
-
-[source, java]
-----
-import jakarta.enterprise.context.ApplicationScoped;
-
-import org.eclipse.microprofile.opentracing.Traced;
-
-@Traced
-@ApplicationScoped
-public class FrancophoneService {
-
- public String bonjour() {
- return "bonjour";
- }
-}
-----
-
-NOTE: The best way to add OpenTracing capability to reactive messaging based applications is by adding the `Traced` annotation to all incoming methods.
-
-== Additional instrumentation
-
-The https://github.com/opentracing-contrib[OpenTracing API Contributions project] offers additional instrumentation that can be used to add tracing to a large variety of technologies/components.
-
-The instrumentation documented in this section has been tested with Quarkus and works in both standard and native mode.
-
-=== JDBC
-
-The https://github.com/opentracing-contrib/java-jdbc[JDBC instrumentation] will add a span for each JDBC queries done by your application, to enable it, add the following dependency to your build file:
-
-[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
-.pom.xml
-----
-
- io.opentracing.contrib
- opentracing-jdbc
-
-----
-
-[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
-.build.gradle
-----
-implementation("io.opentracing.contrib:opentracing-jdbc")
-----
-
-Then, you need to enable it in the configuration:
-
-[source, properties]
-----
-quarkus.datasource.jdbc.tracing=true
-----
-
-`quarkus.datasource.jdbc.tracing` is a build time configuration property:
-it makes sure all the tracing infrastructure is included in your application.
-
-[NOTE]
-====
-This is especially important when building a native executable as we need to
-make sure the OpenTracing JDBC driver has been registered for reflection,
-together with the underlying JDBC driver.
-====
-
-The Agroal extension will take care of adjusting the JDBC URL with the `tracing` prefix
-when tracing is enabled,
-so you do not have to adjust the JDBC URL yourself.
-
-By default, when `quarkus.datasource.jdbc.tracing` is true, tracing is enabled at runtime
-but you can explicitly disable it by setting the following property:
-
-[source, properties]
-----
-quarkus.datasource.jdbc.tracing.enabled=false
-----
-
-This way, you can have your Quarkus application ready for tracing and toggle JDBC tracing at runtime.
-
-=== Kafka
-
-The https://github.com/opentracing-contrib/java-kafka-client[Kafka instrumentation] will add a span for each message sent to or received from a Kafka topic. To enable it, add the following dependency to your build file:
-
-[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
-.pom.xml
-----
-
- io.opentracing.contrib
- opentracing-kafka-client
-
-----
-
-[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
-.build.gradle
-----
-implementation("io.opentracing.contrib:opentracing-kafka-client")
-----
-
-It contains OpenTracing interceptors that must be registered on Kafka producers and consumers.
-
-If you followed the xref:kafka.adoc[Kafka guide], the interceptors can be added on the `generated-price` and the `prices` channels as follows:
-
-[source, properties]
-----
-# Configure the Kafka sink (we write to it)
-mp.messaging.outgoing.generated-price.connector=smallrye-kafka
-mp.messaging.outgoing.generated-price.topic=prices
-mp.messaging.outgoing.generated-price.value.serializer=org.apache.kafka.common.serialization.IntegerSerializer
-mp.messaging.outgoing.generated-price.interceptor.classes=io.opentracing.contrib.kafka.TracingProducerInterceptor
-
-# Configure the Kafka source (we read from it)
-mp.messaging.incoming.prices.connector=smallrye-kafka
-mp.messaging.incoming.prices.value.deserializer=org.apache.kafka.common.serialization.IntegerDeserializer
-mp.messaging.incoming.prices.interceptor.classes=io.opentracing.contrib.kafka.TracingConsumerInterceptor
-----
-
-NOTE: `interceptor.classes` accept a list of classes separated by a comma.
-
-
-=== MongoDB client
-
-The https://github.com/opentracing-contrib/java-mongo-driver[Mongo Driver instrumentation] will add a span for each command executed by your application. To enable it, add the following dependency to your build file:
-
-[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
-.pom.xml
-----
-
- io.opentracing.contrib
- opentracing-mongo-common
-
-----
-
-[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
-.build.gradle
-----
-implementation("io.opentracing.contrib:opentracing-mongo-common")
-----
-
-It contains the OpenTracing CommandListener that will be registered on the configuration of the mongo client.
-Following the xref:mongodb.adoc[MongoDB guide], the command listener will be registered defining the config property as follows:
-
-[source, properties]
-----
-# Enable tracing commands in mongodb client
-quarkus.mongodb.tracing.enabled=true
-----
-
-=== Zipkin compatibility mode
-
-To enable it, add the following dependency to your build file:
-
-[source,xml,role="primary asciidoc-tabs-target-sync-cli asciidoc-tabs-target-sync-maven"]
-.pom.xml
-----
-
- io.jaegertracing
- jaeger-zipkin
-
-----
-
-[source,gradle,role="secondary asciidoc-tabs-target-sync-gradle"]
-.build.gradle
-----
-implementation("io.jaegertracing:jaeger-zipkin")
-----
-
-It contains the dependencies to convert the request to zipkin format.
-The zipkin compatibility mode will be activated after defining the config property as follows:
-
-[source, properties]
-----
-# Enable zipkin compatibility mode
-quarkus.jaeger.zipkin.compatibility-mode=true
-----
-
-[[configuration-reference]]
-== Jaeger Configuration Reference
-
-include::{generated-dir}/config/quarkus-jaeger.adoc[leveloffset=+1, opts=optional]
diff --git a/docs/src/main/asciidoc/reaugmentation.adoc b/docs/src/main/asciidoc/reaugmentation.adoc
index 0c5c976565bdc..3458f8ffac097 100644
--- a/docs/src/main/asciidoc/reaugmentation.adoc
+++ b/docs/src/main/asciidoc/reaugmentation.adoc
@@ -27,7 +27,7 @@ It doesn't matter if you use profiles or any other way to override the propertie
== When is re-augmentation useful?
Re-augmentation is useful in case the users of your application want to be able to change some of its build time properties.
-For instance changing the database driver or switching features on or off (e.g. xref:opentracing.adoc[OpenTracing] or link:{config-consul-guide}[Config Consul]).
+For instance changing the database driver or switching features on or off (e.g. xref:opentelemetry.adoc[OpenTelemetry] or link:{config-consul-guide}[Config Consul]).
If there are only two or three build time properties that depend on the user environment, you may consider providing alternative builds of the application. However, in case there are more such properties you may prefer shipping a mutable jar instead and let your users re-augment the application for their environment.
Please notice that you won't be able to use native images with the package type `mutable-jar`.
Think of the consequences and what other options you have!
diff --git a/docs/src/main/asciidoc/telemetry-opentracing-to-otel-tutorial.adoc b/docs/src/main/asciidoc/telemetry-opentracing-to-otel-tutorial.adoc
index 63348b95ea7f1..66046da528010 100644
--- a/docs/src/main/asciidoc/telemetry-opentracing-to-otel-tutorial.adoc
+++ b/docs/src/main/asciidoc/telemetry-opentracing-to-otel-tutorial.adoc
@@ -11,7 +11,7 @@ include::_attributes.adoc[]
:topics: observability,opentracing,opentelemetry,tracing,migration
:extensions: io.quarkus:quarkus-smallrye-opentracing,io.quarkus:quarkus-opentelemetry
-Migrate an application from xref:opentracing.adoc[OpenTracing] to xref:opentelemetry.adoc[OpenTelemetry tracing] in Quarkus 3.x.
+Migrate an application from https://docs.quarkiverse.io/quarkus-smallrye-opentracing/dev/index.html[OpenTracing] to xref:opentelemetry.adoc[OpenTelemetry tracing] in Quarkus 3.x.
The legacy OpenTracing framework has been deprecated in favor of the new OpenTelemetry tracing framework. We announced the https://quarkus.io/blog/quarkus-observability-roadmap-2023/#opentracing-archived[OpenTracing deprecation on November 2022], and we are dropping the extension from Quarkus core repository and moving it to the Quarkiverse Hub.
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/MongoClientBuildTimeConfig.java b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientBuildTimeConfig.java
index 1d4ea4fe1a8bd..8bb10a921b7db 100644
--- a/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientBuildTimeConfig.java
+++ b/extensions/mongodb-client/deployment/src/main/java/io/quarkus/mongodb/deployment/MongoClientBuildTimeConfig.java
@@ -18,12 +18,6 @@ public class MongoClientBuildTimeConfig {
@ConfigItem(name = "metrics.enabled")
public boolean metricsEnabled;
- /**
- * Whether tracing spans of driver commands are sent in case the smallrye-opentracing extension is present.
- */
- @ConfigItem(name = "tracing.enabled")
- public boolean tracingEnabled;
-
/**
* If set to true, the default clients will always be created even if there are no injection points that use them
*/
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/deployment/src/test/resources/application-tracing-mongo.properties b/extensions/mongodb-client/deployment/src/test/resources/application-tracing-mongo.properties
deleted file mode 100644
index c5790c171979e..0000000000000
--- a/extensions/mongodb-client/deployment/src/test/resources/application-tracing-mongo.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-quarkus.mongodb.connection-string=mongodb://localhost:27018
-quarkus.mongodb.tracing.enabled=true
-
-
-quarkus.jaeger.enabled=true
-quarkus.jaeger.disable-tracer-registration=true
-quarkus.jaeger.service-name=tracing-test
-quarkus.jaeger.sampler-param=1
-quarkus.jaeger.sampler-type=const
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/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/TracerProcessor.java b/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/TracerProcessor.java
index 35641cf858a20..63337d717d8f0 100644
--- a/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/TracerProcessor.java
+++ b/extensions/opentelemetry/deployment/src/main/java/io/quarkus/opentelemetry/deployment/tracing/TracerProcessor.java
@@ -26,7 +26,6 @@
import io.quarkus.arc.processor.DotNames;
import io.quarkus.builder.Version;
import io.quarkus.deployment.Capabilities;
-import io.quarkus.deployment.Capability;
import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.annotations.BuildSteps;
@@ -36,7 +35,6 @@
import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.opentelemetry.runtime.tracing.TracerRecorder;
import io.quarkus.opentelemetry.runtime.tracing.cdi.TracerProducer;
-import io.quarkus.runtime.configuration.ConfigurationException;
import io.quarkus.vertx.http.deployment.spi.FrameworkEndpointsBuildItem;
import io.quarkus.vertx.http.deployment.spi.StaticResourcesBuildItem;
@@ -55,12 +53,6 @@ UnremovableBeanBuildItem ensureProducersAreRetained(
Capabilities capabilities,
BuildProducer additionalBeans) {
- if (capabilities.isPresent(Capability.OPENTRACING) ||
- capabilities.isPresent(Capability.SMALLRYE_OPENTRACING)) {
- throw new ConfigurationException("The OpenTelemetry extension tracer can not be used in " +
- "conjunction with either the SmallRye OpenTracing or Jaeger extensions.");
- }
-
additionalBeans.produce(AdditionalBeanBuildItem.builder()
.setUnremovable()
.addBeanClass(TracerProducer.class)
diff --git a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerWithInvalidExtensionTest.java b/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerWithInvalidExtensionTest.java
deleted file mode 100644
index cb7e67d871ece..0000000000000
--- a/extensions/opentelemetry/deployment/src/test/java/io/quarkus/opentelemetry/deployment/TracerWithInvalidExtensionTest.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package io.quarkus.opentelemetry.deployment;
-
-import java.util.List;
-
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.RegisterExtension;
-
-import io.quarkus.builder.Version;
-import io.quarkus.maven.dependency.Dependency;
-import io.quarkus.runtime.configuration.ConfigurationException;
-import io.quarkus.test.QuarkusProdModeTest;
-
-public class TracerWithInvalidExtensionTest {
- @RegisterExtension
- static final QuarkusProdModeTest config = new QuarkusProdModeTest()
- .withEmptyApplication()
- .setForcedDependencies(List.of(Dependency.of("io.quarkus", "quarkus-smallrye-opentracing", Version.getVersion())))
- .setExpectedException(ConfigurationException.class);
-
- @Test
- void failStart() {
- Assertions.fail("Test should not be run as deployment should fail");
- }
-}
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/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java b/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java
index 2cac5fa7164d7..4e64a18cec132 100644
--- a/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java
+++ b/extensions/resteasy-classic/rest-client/deployment/src/main/java/io/quarkus/restclient/deployment/RestClientProcessor.java
@@ -136,20 +136,6 @@ NativeImageProxyDefinitionBuildItem addProxy() {
return new NativeImageProxyDefinitionBuildItem(ResteasyConfiguration.class.getName());
}
- @BuildStep
- void registerRestClientListenerForTracing(
- Capabilities capabilities,
- BuildProducer resource,
- BuildProducer reflectiveClass) {
- if (capabilities.isPresent(Capability.SMALLRYE_OPENTRACING)) {
- resource.produce(new NativeImageResourceBuildItem(
- "META-INF/services/org.eclipse.microprofile.rest.client.spi.RestClientListener"));
- reflectiveClass
- .produce(ReflectiveClassBuildItem.builder("io.smallrye.opentracing.SmallRyeRestClientListener")
- .methods().fields().build());
- }
- }
-
@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void setup(BuildProducer feature,
diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java
index 04fd0a2d54494..00e1e0fe5a621 100644
--- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java
+++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java
@@ -83,7 +83,6 @@
import io.quarkus.deployment.builditem.ExtensionSslNativeSupportBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.GeneratedClassBuildItem;
-import io.quarkus.deployment.builditem.nativeimage.NativeImageResourceBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
import io.quarkus.gizmo.ClassCreator;
@@ -165,20 +164,6 @@ void setUpDefaultMediaType(BuildProducer con
}
}
- @BuildStep
- void registerRestClientListenerForTracing(
- Capabilities capabilities,
- BuildProducer resource,
- BuildProducer reflectiveClass) {
- if (capabilities.isPresent(Capability.SMALLRYE_OPENTRACING)) {
- resource.produce(new NativeImageResourceBuildItem(
- "META-INF/services/org.eclipse.microprofile.rest.client.spi.RestClientListener"));
- reflectiveClass
- .produce(ReflectiveClassBuildItem.builder("io.smallrye.opentracing.SmallRyeRestClientListener")
- .build());
- }
- }
-
@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void setupAdditionalBeans(BuildProducer additionalBeans,
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 b623b32388ee6..613865a7316aa 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -317,7 +317,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