Class ZipkinSpanExporterBuilder

    • Constructor Detail

      • ZipkinSpanExporterBuilder

        public ZipkinSpanExporterBuilder()
    • Method Detail

      • setSender

        public ZipkinSpanExporterBuilder setSender​(zipkin2.reporter.Sender sender)
        Sets the Zipkin sender. Implements the client side of the span transport. A OkHttpSender is a good default.

        The Component.close() method will be called when the exporter is shut down.

        Parameters:
        sender - the Zipkin sender implementation.
        Returns:
        this.
      • setEncoder

        public ZipkinSpanExporterBuilder setEncoder​(zipkin2.codec.BytesEncoder<zipkin2.Span> encoder)
        Sets the BytesEncoder, which controls the format used by the Sender. Defaults to the SpanBytesEncoder.JSON_V2.
        Parameters:
        encoder - the BytesEncoder to use.
        Returns:
        this.
        See Also:
        SpanBytesEncoder
      • setEndpoint

        public ZipkinSpanExporterBuilder setEndpoint​(String endpoint)
        Sets the zipkin endpoint. This will use the endpoint to assign a OkHttpSender instance to this builder.
        Parameters:
        endpoint - The Zipkin endpoint URL, ex. "http://zipkinhost:9411/api/v2/spans".
        Returns:
        this.
        See Also:
        OkHttpSender