Package zipkin2.finagle.http
Class HttpZipkinTracer.Config.Builder
- java.lang.Object
-
- zipkin2.finagle.http.HttpZipkinTracer.Config.Builder
-
- Enclosing class:
- HttpZipkinTracer.Config
public abstract static class HttpZipkinTracer.Config.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract HttpZipkinTracer.Config
build()
abstract HttpZipkinTracer.Config.Builder
compressionEnabled(boolean compressSpans)
True implies that spans will be gzipped before transport.abstract HttpZipkinTracer.Config.Builder
host(com.twitter.finagle.Name host)
The network location of the Zipkin http service.HttpZipkinTracer.Config.Builder
host(String host)
Shortcut for ahost(Name)
encoded as a Stringabstract HttpZipkinTracer.Config.Builder
hostHeader(String host)
The Host header used when sending spans to Zipkin.abstract HttpZipkinTracer.Config.Builder
initialSampleRate(float initialSampleRate)
abstract HttpZipkinTracer.Config.Builder
localServiceName(String localServiceName)
Lower-case label of the remote node in the service graph, such as "favstar".abstract HttpZipkinTracer.Config.Builder
path(String path)
The path to the Zipkin endpoint relative to the host.abstract HttpZipkinTracer.Config.Builder
tlsEnabled(boolean tlsEnabled)
Whether or not the Zipkin host uses TLS.abstract HttpZipkinTracer.Config.Builder
tlsValidationEnabled(boolean tlsValidationEnabled)
Whether or not to enable TLS validation for the TLS-enabled Zipkin host
-
-
-
Method Detail
-
localServiceName
public abstract HttpZipkinTracer.Config.Builder localServiceName(String localServiceName)
Lower-case label of the remote node in the service graph, such as "favstar". Avoid names with variables or unique identifiers embedded.When unset, the service name is derived from
Annotation.ServiceName
which is often incorrectly set to the remote service name.This is a primary label for trace lookup and aggregation, so it should be intuitive and consistent. Many use a name from service discovery.
-
host
public abstract HttpZipkinTracer.Config.Builder host(com.twitter.finagle.Name host)
The network location of the Zipkin http service. Defaults to "localhost:9411"
-
path
public abstract HttpZipkinTracer.Config.Builder path(String path)
The path to the Zipkin endpoint relative to the host. Defaults to "/api/v2/spans"
-
host
public final HttpZipkinTracer.Config.Builder host(String host)
Shortcut for ahost(Name)
encoded as a String
-
hostHeader
public abstract HttpZipkinTracer.Config.Builder hostHeader(String host)
The Host header used when sending spans to Zipkin. Defaults to "zipkin"
-
compressionEnabled
public abstract HttpZipkinTracer.Config.Builder compressionEnabled(boolean compressSpans)
True implies that spans will be gzipped before transport. Defaults to true.
-
initialSampleRate
public abstract HttpZipkinTracer.Config.Builder initialSampleRate(float initialSampleRate)
- See Also:
ZipkinTracer.Config.initialSampleRate()
-
tlsEnabled
public abstract HttpZipkinTracer.Config.Builder tlsEnabled(boolean tlsEnabled)
Whether or not the Zipkin host uses TLS. Defaults to false
-
tlsValidationEnabled
public abstract HttpZipkinTracer.Config.Builder tlsValidationEnabled(boolean tlsValidationEnabled)
Whether or not to enable TLS validation for the TLS-enabled Zipkin host
-
build
public abstract HttpZipkinTracer.Config build()
-
-