本文整理汇总了Java中zipkin.collector.CollectorSampler类的典型用法代码示例。如果您正苦于以下问题:Java CollectorSampler类的具体用法?Java CollectorSampler怎么用?Java CollectorSampler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CollectorSampler类属于zipkin.collector包,在下文中一共展示了CollectorSampler类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: eventHubCollector
import zipkin.collector.CollectorSampler; //导入依赖的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();
}
开发者ID:aliostad,项目名称:zipkin-collector-eventhub,代码行数:17,代码来源:EventHubCollectorAutoConfiguration.java
示例2: setup
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Before
public void setup() {
store = new InMemoryStorage();
metrics = new InMemoryCollectorMetrics();
collector = new SQSCollector.Builder()
.queueUrl(sqsRule.queueUrl())
.parallelism(2)
.waitTimeSeconds(1) // using short wait time to make test teardown faster
.endpointConfiguration(new EndpointConfiguration(sqsRule.queueUrl(), "us-east-1"))
.credentialsProvider(new AWSStaticCredentialsProvider(new BasicAWSCredentials("x", "x")))
.metrics(metrics)
.sampler(CollectorSampler.ALWAYS_SAMPLE)
.storage(store)
.build()
.start();
}
开发者ID:openzipkin,项目名称:zipkin-aws,代码行数:18,代码来源:SQSCollectorTest.java
示例3: eventHubCollector
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean
EventHubCollector eventHubCollector(ZipkinEventHubCollectorProperties properties,
CollectorSampler sampler,
CollectorMetrics metrics,
StorageComponent storage) {
return properties.toBuilder()
.sampler(sampler)
.storage(storage)
.metrics(metrics)
.build()
.start();
}
开发者ID:openzipkin,项目名称:zipkin-azure,代码行数:14,代码来源:ZipkinEventHubCollectorAutoConfiguration.java
示例4: sqsCollector
import zipkin.collector.CollectorSampler; //导入依赖的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();
}
开发者ID:openzipkin,项目名称:zipkin-aws,代码行数:16,代码来源:ZipkinSQSCollectorAutoConfiguration.java
示例5: kinesisCollector
import zipkin.collector.CollectorSampler; //导入依赖的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();
}
开发者ID:openzipkin,项目名称:zipkin-aws,代码行数:15,代码来源:ZipkinKinesisCollectorAutoConfiguration.java
示例6: ZipkinMessageListener
import zipkin.collector.CollectorSampler; //导入依赖的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();
}
开发者ID:reshmik,项目名称:Zipkin,代码行数:11,代码来源:ZipkinMessageListener.java
示例7: sampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean
CollectorSampler sampler() {
return CollectorSampler.ALWAYS_SAMPLE;
}
开发者ID:aliostad,项目名称:zipkin-collector-eventhub,代码行数:5,代码来源:EventHubCollectorAutoConfigurationTest.java
示例8: sampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean
CollectorSampler sampler() {
return CollectorSampler.ALWAYS_SAMPLE;
}
开发者ID:openzipkin,项目名称:zipkin-azure,代码行数:5,代码来源:ZipkinEventHubCollectorAutoConfigurationTest.java
示例9: traceIdSampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(CollectorSampler.class)
CollectorSampler traceIdSampler(@Value("${zipkin.collector.sample-rate:1.0}") float rate) {
return CollectorSampler.create(rate);
}
开发者ID:liaominghua,项目名称:zipkin,代码行数:6,代码来源:ZipkinServerConfiguration.java
示例10: ZipkinHttpCollector
import zipkin.collector.CollectorSampler; //导入依赖的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();
}
开发者ID:liaominghua,项目名称:zipkin,代码行数:7,代码来源:ZipkinHttpCollector.java
示例11: sampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean CollectorSampler sampler() {
return CollectorSampler.ALWAYS_SAMPLE;
}
开发者ID:liaominghua,项目名称:zipkin,代码行数:4,代码来源:ZipkinScribeCollectorAutoConfigurationTest.java
示例12: sampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Override
public Builder sampler(CollectorSampler collectorSampler) {
delegate.sampler(collectorSampler);
return this;
}
开发者ID:openzipkin,项目名称:zipkin-aws,代码行数:6,代码来源:KinesisCollector.java
示例13: traceIdSampler
import zipkin.collector.CollectorSampler; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean({CollectorSampler.class})
CollectorSampler traceIdSampler(@Value("${zipkin.collector.sample-rate:1.0}") float rate) {
return CollectorSampler.create(rate);
}
开发者ID:spring-cloud,项目名称:spring-cloud-cli,代码行数:6,代码来源:ZipkinServerApplication.java
注:本文中的zipkin.collector.CollectorSampler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论