Class WebClientTelemetryTracing

java.lang.Object
io.helidon.webclient.telemetry.tracing.WebClientTelemetryTracing
All Implemented Interfaces:
NamedService, WebClientService

public class WebClientTelemetryTracing extends Object implements WebClientService
Implementation of OpenTelemetry semantic conventions for client tracing.
  • Method Details

    • create

      public static WebClientTelemetryTracing create()
      Creates a new service instance to emit tracing spans compliant with OpenTelemetry semantic conventions for clients.
      Returns:
      new tracing semantic conventions implementation
    • create

      public static WebClientTelemetryTracing create(Config config)
      Creates a new service instance to emit tracing spans compliant with OpenTelemetry semantic conventions for clients using the provided configuration.
      Parameters:
      config - telemetry tracing config
      Returns:
      new tracing semantic conventions implementation
    • create

      public static WebClientTelemetryTracing create(Config config, Tracer tracer)
      Creates a new service instance to emit tracing spans compliant with OpenTelemetry semantic conventions for clients using the provided configuration and tracer.
      Parameters:
      config - telemetry tracing config
      tracer - fallback tracer when the request context does not contain one
      Returns:
      new tracing semantic conventions implementation
    • create

      public static WebClientTelemetryTracing create(Config config, Supplier<Tracer> tracer)
      Creates a new service instance to emit tracing spans compliant with OpenTelemetry semantic conventions for clients using the provided configuration and tracer supplier.
      Parameters:
      config - telemetry tracing config
      tracer - supplier of the fallback tracer when the request context does not contain one
      Returns:
      new tracing semantic conventions implementation
    • handle

      Description copied from interface: WebClientService
      Invoke a service, call WebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest) to call the next service in the chain.
      Specified by:
      handle in interface WebClientService
      Parameters:
      chain - to invoke next web client service, or the HTTP call if this is the last service
      clientRequest - request from the client, or previous services
      Returns:
      response to be returned to the client