本文整理汇总了Java中zipkin.collector.CollectorMetrics类的典型用法代码示例。如果您正苦于以下问题:Java CollectorMetrics类的具体用法?Java CollectorMetrics怎么用?Java CollectorMetrics使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CollectorMetrics类属于zipkin.collector包,在下文中一共展示了CollectorMetrics类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: eventHubCollector
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
EventHubCollector eventHubCollector(EventHubCollectorProperties properties,
CollectorSampler sampler,
CollectorMetrics metrics,
StorageComponent storage) {
logger.log(Level.INFO,"===========EventHubCollectorAutoConfiguration==============");
return properties.toBuilder()
.sampler(sampler)
.storage(storage)
.metrics(metrics)
.build()
.start();
}
示例2: eventHubCollector
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
EventHubCollector eventHubCollector(ZipkinEventHubCollectorProperties properties,
CollectorSampler sampler,
CollectorMetrics metrics,
StorageComponent storage) {
return properties.toBuilder()
.sampler(sampler)
.storage(storage)
.metrics(metrics)
.build()
.start();
}
示例3: start
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Before
public void start() {
scribe = ScribeCollector.builder()
.metrics(CollectorMetrics.NOOP_METRICS)
.storage(storage).build();
scribe.start();
}
示例4: sqsCollector
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
SQSCollector sqsCollector(ZipkinSQSCollectorProperties properties, AWSCredentialsProvider credentialsProvider,
CollectorSampler sampler, CollectorMetrics metrics, StorageComponent storage) {
return properties.toBuilder()
.queueUrl(properties.getQueueUrl())
.waitTimeSeconds(properties.getWaitTimeSeconds())
.parallelism(properties.getParallelism())
.endpointConfiguration(endpointConfiguration)
.credentialsProvider(credentialsProvider)
.sampler(sampler)
.metrics(metrics)
.storage(storage)
.build()
.start();
}
示例5: kinesisCollector
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
KinesisCollector kinesisCollector(ZipkinKinesisCollectorProperties properties,
AWSCredentialsProvider credentialsProvider,
CollectorSampler sampler, CollectorMetrics metrics, StorageComponent storage) {
return KinesisCollector.builder()
.credentialsProvider(credentialsProvider)
.sampler(sampler)
.metrics(metrics)
.storage(storage)
.streamName(properties.getStreamName())
.appName(properties.getAppName())
.build()
.start();
}
示例6: ZipkinMessageListener
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
/** lazy so transient storage errors don't crash bootstrap */
@Lazy
@Autowired
ZipkinMessageListener(StorageComponent storage, CollectorSampler sampler,
CollectorMetrics metrics) {
this.collector = Collector.builder(getClass())
.storage(storage)
.sampler(sampler)
.metrics(metrics.forTransport("stream")).build();
}
示例7: metrics
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
CollectorMetrics metrics() {
return CollectorMetrics.NOOP_METRICS;
}
开发者ID:aliostad,项目名称:zipkin-collector-eventhub,代码行数:5,代码来源:EventHubCollectorAutoConfigurationTest.java
示例8: metrics
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
CollectorMetrics metrics() {
return CollectorMetrics.NOOP_METRICS;
}
示例9: metrics
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(CollectorMetrics.class)
CollectorMetrics metrics(CounterService counterService, GaugeService gaugeService) {
return new ActuateCollectorMetrics(counterService, gaugeService);
}
示例10: ZipkinHttpCollector
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Autowired ZipkinHttpCollector(StorageComponent storage, CollectorSampler sampler,
CollectorMetrics metrics) {
this.metrics = metrics.forTransport("http");
this.collector = Collector.builder(getClass())
.storage(storage).sampler(sampler).metrics(this.metrics).build();
}
示例11: metrics
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean CollectorMetrics metrics() {
return CollectorMetrics.NOOP_METRICS;
}
示例12: KafkaStreamProcessor
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
KafkaStreamProcessor(
KafkaStream<byte[], byte[]> stream, Collector collector, CollectorMetrics metrics) {
this.stream = stream;
this.collector = collector;
this.metrics = metrics;
}
示例13: ZipkinDispatcher
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
ZipkinDispatcher(StorageComponent storage, CollectorMetrics metrics, MockWebServer server) {
this.store = storage.spanStore();
this.consumer = Collector.builder(getClass()).storage(storage).metrics(metrics).build();
this.metrics = metrics;
this.server = server;
}
示例14: metrics
import zipkin.collector.CollectorMetrics; //导入依赖的package包/类
@Bean
CollectorMetrics metrics() {
return CollectorMetrics.NOOP_METRICS;
}