Package zipkin2.collector
Class CollectorComponent.Builder
- java.lang.Object
-
- zipkin2.collector.CollectorComponent.Builder
-
- Enclosing class:
- CollectorComponent
public abstract static class CollectorComponent.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CollectorComponent
build()
abstract CollectorComponent.Builder
metrics(CollectorMetrics metrics)
Aggregates and reports collection metrics to a monitoring system.abstract CollectorComponent.Builder
sampler(CollectorSampler sampler)
samples spans
to reduce load on the storage system.abstract CollectorComponent.Builder
storage(StorageComponent storage)
Once spans are sampled, they areSpanConsumer.accept(List)
queued for storage} using this component.
-
-
-
Method Detail
-
storage
public abstract CollectorComponent.Builder storage(StorageComponent storage)
Once spans are sampled, they areSpanConsumer.accept(List)
queued for storage} using this component.
-
metrics
public abstract CollectorComponent.Builder metrics(CollectorMetrics metrics)
Aggregates and reports collection metrics to a monitoring system. Should bescoped to this transport
. Defaults to no-op.
-
sampler
public abstract CollectorComponent.Builder sampler(CollectorSampler sampler)
samples spans
to reduce load on the storage system. Defaults to always sample.
-
build
public abstract CollectorComponent build()
-
-