Class ClientTracingRegistrar

java.lang.Object
org.eclipse.microprofile.opentracing.ClientTracingRegistrar

public class ClientTracingRegistrar extends Object
This class registers tracing components into ClientBuilder. It is required to call configure(ClientBuilder) or its variants to enable tracing in Client, however implementation might enable tracing globally. Invoking configure(ClientBuilder) returns a ClientBuilder with enabled tracing integration. Note that following calls to ClientBuilder which change ExecutorService might break tracing integration. If a custom ExecutorService has to be used use configure(ClientBuilder, ExecutorService).
Author:
Pavol Loffay
  • Method Summary

    Modifier and Type
    Method
    Description
    static jakarta.ws.rs.client.ClientBuilder
    configure(jakarta.ws.rs.client.ClientBuilder clientBuilder)
    Register tracing components into client builder instance.
    static jakarta.ws.rs.client.ClientBuilder
    configure(jakarta.ws.rs.client.ClientBuilder clientBuilder, ExecutorService executorService)
    Register tracing components into client builder instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • configure

      public static jakarta.ws.rs.client.ClientBuilder configure(jakarta.ws.rs.client.ClientBuilder clientBuilder)
      Register tracing components into client builder instance.
      Parameters:
      clientBuilder - client builder
      Returns:
      clientBuilder with tracing integration
    • configure

      public static jakarta.ws.rs.client.ClientBuilder configure(jakarta.ws.rs.client.ClientBuilder clientBuilder, ExecutorService executorService)
      Register tracing components into client builder instance.
      Parameters:
      clientBuilder - client builder
      executorService - executorService which will be added to the client. Note that this overrides executor service added previously to the client.
      Returns:
      clientBuilder with tracing integration