use of zipkin2.storage.StorageComponent in project zipkin by openzipkin.
the class ZipkinGrpcCollector method grpcCollectorConfigurator.
@Bean
ArmeriaServerConfigurator grpcCollectorConfigurator(StorageComponent storage, CollectorSampler sampler, CollectorMetrics metrics) {
CollectorMetrics grpcMetrics = metrics.forTransport("grpc");
Collector collector = Collector.newBuilder(getClass()).storage(storage).sampler(sampler).metrics(grpcMetrics).build();
return sb -> sb.service("/zipkin.proto3.SpanService/Report", new SpanService(collector, grpcMetrics));
}
Aggregations