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
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
storage
public ScribeCollector.Builder storage(StorageComponent storage)
- Specified by:
storage
in classCollectorComponent.Builder
-
metrics
public ScribeCollector.Builder metrics(CollectorMetrics metrics)
- Specified by:
metrics
in classCollectorComponent.Builder
-
sampler
public ScribeCollector.Builder sampler(CollectorSampler sampler)
- Specified by:
sampler
in classCollectorComponent.Builder
-
category
public ScribeCollector.Builder category(String category)
Category zipkin spans will be consumed from. Defaults to "zipkin"
-
port
public ScribeCollector.Builder port(int port)
The port to listen on. Defaults to 9410
-
build
public ScribeCollector build()
- Specified by:
build
in classCollectorComponent.Builder
-
-