Builder<io.opentracing.Tracer>public class ZipkinTracerBuilder extends Object implements Builder<io.opentracing.Tracer>
Tracer to use with Zipkin.| Modifier and Type | Method | Description |
|---|---|---|
io.opentracing.Tracer |
build() |
Builds the
Tracer for Zipkin based on the configured parameters. |
static ZipkinTracerBuilder |
forService(String serviceName) |
Get a Zipkin
Tracer builder for processing tracing data of a service with a given name. |
ZipkinTracerBuilder |
sender(zipkin2.reporter.Sender sender) |
The sender to use for sending events to Zipkin.
|
ZipkinTracerBuilder |
zipkin(String endpoint) |
Set the Zipkin endpoint address.
|
ZipkinTracerBuilder |
zipkin(URI endpoint) |
Set the Zipkin endpoint address.
|
ZipkinTracerBuilder |
zipkinHost(String hostName) |
Set the Zipkin host name.
|
public static ZipkinTracerBuilder forService(String serviceName)
Tracer builder for processing tracing data of a service with a given name.serviceName - name of the service that will be using the tracer.Tracer builder for Zipkin.public ZipkinTracerBuilder zipkin(URI endpoint)
The resulting Tracer will be sending any tracing data to this location. The significant parts of the URI
are userInfo, host and port. Other parts of the endpoint URI are ignored.
endpoint - Zipkin endpoint address. Must not be null.public ZipkinTracerBuilder zipkin(String endpoint)
The resulting Tracer will be sending any tracing data to this location. The significant parts of the endpoint URI
are userInfo, host and port. Other parts of the endpoint URI are ignored.
endpoint - Zipkin endpoint address. May be null, in which case the default Zipkin endpoint address
will be used (http://127.0.0.1:9411/).public ZipkinTracerBuilder zipkinHost(String hostName)
The resulting Tracer will be sending any tracing data to the Zipkin location address constructed using the
supplied host name and the default Zipkin port (i.e. http://<hostName>:9411/).
hostName - Zipkin host name.public ZipkinTracerBuilder sender(zipkin2.reporter.Sender sender)
sender - the sender to useCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.