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 CollectorComponentbuild()abstract CollectorComponent.Buildermetrics(CollectorMetrics metrics)Aggregates and reports collection metrics to a monitoring system.abstract CollectorComponent.Buildersampler(CollectorSampler sampler)samples spansto reduce load on the storage system.abstract CollectorComponent.Builderstorage(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 spansto reduce load on the storage system. Defaults to always sample. 
- 
build
public abstract CollectorComponent build()
 
 - 
 
 -