This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '4.x' into THORN-2063-4.x
- Loading branch information
Showing
17 changed files
with
165 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 0 additions & 47 deletions
47
...s/src/main/java/io/thorntail/jaxrs/impl/opentracing/jaxrs/ClientTracingFilterWrapper.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...ava/io/thorntail/jaxrs/impl/opentracing/jaxrs/ResteasyClientTracingRegistrarProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package io.thorntail.jaxrs.impl.opentracing.jaxrs; | ||
|
||
import io.opentracing.Tracer; | ||
import io.opentracing.contrib.concurrent.TracedExecutorService; | ||
import io.smallrye.opentracing.SmallRyeClientTracingFeature; | ||
import java.util.concurrent.ExecutorService; | ||
import java.util.concurrent.Executors; | ||
import javax.enterprise.inject.spi.CDI; | ||
import javax.ws.rs.client.ClientBuilder; | ||
import org.eclipse.microprofile.opentracing.ClientTracingRegistrarProvider; | ||
import org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder; | ||
|
||
/** | ||
* @author Pavol Loffay | ||
*/ | ||
public class ResteasyClientTracingRegistrarProvider implements ClientTracingRegistrarProvider { | ||
|
||
@Override | ||
public ClientBuilder configure(ClientBuilder clientBuilder) { | ||
// Make sure executor is the same as a default in resteasy ClientBuilder | ||
return configure(clientBuilder, Executors.newFixedThreadPool(10)); | ||
} | ||
|
||
@Override | ||
public ClientBuilder configure(ClientBuilder clientBuilder, ExecutorService executorService) { | ||
ResteasyClientBuilder resteasyClientBuilder = (ResteasyClientBuilder)clientBuilder; | ||
Tracer tracer = CDI.current().select(Tracer.class).get(); | ||
return resteasyClientBuilder.asyncExecutor(new TracedExecutorService(executorService, tracer)) | ||
.register(new SmallRyeClientTracingFeature(tracer)); | ||
} | ||
} |
38 changes: 0 additions & 38 deletions
38
core/jaxrs/src/main/java/io/thorntail/jaxrs/impl/opentracing/jaxrs/ServerTracingFeature.java
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...rc/main/java/io/thorntail/jaxrs/impl/opentracing/jaxrs/SmallRyeDynamicFeatureWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.thorntail.jaxrs.impl.opentracing.jaxrs; | ||
|
||
import io.smallrye.opentracing.SmallRyeTracingDynamicFeature; | ||
import javax.enterprise.context.ApplicationScoped; | ||
import javax.ws.rs.container.DynamicFeature; | ||
import javax.ws.rs.container.ResourceInfo; | ||
import javax.ws.rs.core.FeatureContext; | ||
import javax.ws.rs.ext.Provider; | ||
|
||
/** | ||
* | ||
* @author Pavol Loffay | ||
*/ | ||
@Provider | ||
@ApplicationScoped | ||
public class SmallRyeDynamicFeatureWrapper implements DynamicFeature { | ||
|
||
private SmallRyeTracingDynamicFeature delegate = new SmallRyeTracingDynamicFeature(); | ||
|
||
@Override | ||
public void configure(ResourceInfo resourceInfo, FeatureContext context) { | ||
this.delegate.configure(resourceInfo, context); | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
...src/main/java/io/thorntail/jaxrs/impl/opentracing/jaxrs/TracedClientBuilderInstaller.java
This file was deleted.
Oops, something went wrong.
139 changes: 0 additions & 139 deletions
139
.../src/main/java/io/thorntail/jaxrs/impl/opentracing/servlet/BetterSpanFinishingFilter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ces/META-INF/services/org.eclipse.microprofile.opentracing.ClientTracingRegistrarProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
io.thorntail.jaxrs.impl.opentracing.jaxrs.ResteasyClientTracingRegistrarProvider |
Oops, something went wrong.