io.jaegertracing.internal.reporters.RemoteReporter Java Examples
The following examples show how to use
io.jaegertracing.internal.reporters.RemoteReporter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractSenderSpringTest.java From java-spring-jaeger with Apache License 2.0 | 6 votes |
protected void assertSenderClass(Class senderClass) { assertThat(getTracer()) .extracting("reporter") .extracting("class") .containsExactly(CompositeReporter.class); assertThat(getTracer()) .extracting("reporter") .flatExtracting("reporters") .filteredOn(new Condition<Object>() { @Override public boolean matches(Object value) { return value.getClass().equals(RemoteReporter.class); } }) .extracting("sender") .extracting("class") .containsExactly(senderClass); }
Example #2
Source File: JaegerAllInOne.java From jaeger-analytics-java with Apache License 2.0 | 5 votes |
public JaegerTracer createTracer(String serviceName) { String endpoint = String.format("http://localhost:%d/api/traces", getCollectorThriftPort()); Sender sender = new HttpSender.Builder(endpoint) .build(); Reporter reporter = new RemoteReporter.Builder() .withSender(sender) .build(); Builder tracerBuilder = new Builder(serviceName) .withSampler(new ConstSampler(true)) .withReporter(reporter); return tracerBuilder.build(); }
Example #3
Source File: JaegerTraceFactory.java From joyrpc with Apache License 2.0 | 5 votes |
/** * 构造报告配置 * * @param parametric 参数 * @return 报告配置 */ protected ReporterConfiguration buildReporterConfiguration(final Parametric parametric) { return new ReporterConfiguration() .withSender(buildSenderConfiguration(parametric)) .withFlushInterval(parametric.getPositive("JAEGER_REPORTER_FLUSH_INTERVAL", RemoteReporter.DEFAULT_FLUSH_INTERVAL_MS)) .withMaxQueueSize(parametric.getPositive("JAEGER_REPORTER_MAX_QUEUE_SIZE", RemoteReporter.DEFAULT_MAX_QUEUE_SIZE)) .withLogSpans(parametric.getBoolean("JAEGER_REPORTER_LOG_SPANS", true)); }