Package zipkin2.collector.scribe
Class ScribeCollector.Builder
java.lang.Object
zipkin2.collector.CollectorComponent.Builder
zipkin2.collector.scribe.ScribeCollector.Builder
- Enclosing class:
- ScribeCollector
public static final class ScribeCollector.Builder extends CollectorComponent.Builder
Configuration including defaults needed to receive spans from a Scribe category.
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ScribeCollector
build()
ScribeCollector.Builder
category(String category)
Category zipkin spans will be consumed from.ScribeCollector.Builder
metrics(CollectorMetrics metrics)
ScribeCollector.Builder
port(int port)
The port to listen on.ScribeCollector.Builder
sampler(CollectorSampler sampler)
ScribeCollector.Builder
storage(StorageComponent storage)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
storage
- Specified by:
storage
in classCollectorComponent.Builder
-
metrics
- Specified by:
metrics
in classCollectorComponent.Builder
-
sampler
- Specified by:
sampler
in classCollectorComponent.Builder
-
category
Category zipkin spans will be consumed from. Defaults to "zipkin" -
port
The port to listen on. Defaults to 9410 -
build
- Specified by:
build
in classCollectorComponent.Builder
-