Class ZipkinPublisher.Builder

    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(java.lang.String serviceName, zipkin2.reporter.Reporter<zipkin2.Span> reporter)
      Create a new instance.
    • Constructor Detail

      • Builder

        public Builder​(java.lang.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 Detail

      • localAddress

        public ZipkinPublisher.Builder localAddress​(java.net.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.