public abstract static class ZipkinExporterConfiguration.Builder extends Object
ZipkinExporterConfiguration.| Modifier and Type | Method and Description |
|---|---|
ZipkinExporterConfiguration |
build()
Builds a
ZipkinExporterConfiguration. |
abstract ZipkinExporterConfiguration.Builder |
setDeadline(io.opencensus.common.Duration deadline)
Sets the deadline for exporting to Zipkin.
|
abstract ZipkinExporterConfiguration.Builder |
setEncoder(zipkin2.codec.SpanBytesEncoder encoder)
Sets the
SpanBytesEncoder. |
abstract ZipkinExporterConfiguration.Builder |
setSender(zipkin2.reporter.Sender sender)
Sets the Zipkin sender.
|
abstract ZipkinExporterConfiguration.Builder |
setServiceName(String serviceName)
Sets the service name.
|
abstract ZipkinExporterConfiguration.Builder |
setV2Url(String v2Url)
Sets the Zipkin V2 URL, e.g.: "http://127.0.0.1:9411/api/v2/spans".
|
public abstract ZipkinExporterConfiguration.Builder setServiceName(String serviceName)
serviceName - the service name.public abstract ZipkinExporterConfiguration.Builder setV2Url(String v2Url)
At least one of V2Url and Sender needs to be specified. If both V2Url and Sender are set, Sender takes precedence.
v2Url - the Zipkin V2 URL.public abstract ZipkinExporterConfiguration.Builder setSender(zipkin2.reporter.Sender sender)
At least one of V2Url and Sender needs to be specified. If both V2Url and Sender are set, Sender takes precedence.
sender - the Zipkin sender.public abstract ZipkinExporterConfiguration.Builder setEncoder(zipkin2.codec.SpanBytesEncoder encoder)
SpanBytesEncoder.encoder - the SpanBytesEncoder.public abstract ZipkinExporterConfiguration.Builder setDeadline(io.opencensus.common.Duration deadline)
deadline - the export deadline.public ZipkinExporterConfiguration build()
ZipkinExporterConfiguration.ZipkinExporterConfiguration.