Class ZipkinPublisher.Builder

java.lang.Object
io.servicetalk.opentracing.zipkin.publisher.ZipkinPublisher.Builder
Enclosing class:
ZipkinPublisher

public static final class ZipkinPublisher.Builder extends Object
Builder for ZipkinPublisher.
  • Constructor Details

    • Builder

      public Builder(String serviceName, zipkin2.reporter.Reporter<zipkin2.Span> reporter)
      Create a new instance.
      Parameters:
      serviceName - the service name.
      reporter - a Reporter implementation to send Spans to
  • Method Details

    • localAddress

      public ZipkinPublisher.Builder localAddress(InetSocketAddress localAddress)
      Configures the local address.
      Parameters:
      localAddress - the local InetSocketAddress.
      Returns:
      this.
    • build

      public ZipkinPublisher build()
      Builds the ZipkinPublisher with supplied options.
      Returns:
      A ZipkinPublisher which can publish tracing data using the zipkin Reporter API.