public final class HttpSpanCollector extends AbstractSpanCollector
POST /spans endpoint.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpSpanCollector.Config |
| Modifier and Type | Method and Description |
|---|---|
static HttpSpanCollector |
create(String baseUrl,
HttpSpanCollector.Config config,
SpanCollectorMetricsHandler metrics) |
static HttpSpanCollector |
create(String baseUrl,
SpanCollectorMetricsHandler metrics)
Create a new instance with default configuration.
|
protected void |
sendSpans(byte[] json) |
reportSpansaddDefaultAnnotation, close, collect, flushpublic static HttpSpanCollector create(String baseUrl, SpanCollectorMetricsHandler metrics)
baseUrl - URL of the zipkin query server instance. Like: http://localhost:9411/metrics - Gets notified when spans are accepted or dropped. If you are not interested in
these events you can use EmptySpanCollectorMetricsHandlerpublic static HttpSpanCollector create(String baseUrl, HttpSpanCollector.Config config, SpanCollectorMetricsHandler metrics)
baseUrl - URL of the zipkin query server instance. Like: http://localhost:9411/config - includes flush interval and timeoutsmetrics - Gets notified when spans are accepted or dropped. If you are not interested in
these events you can use EmptySpanCollectorMetricsHandlerprotected void sendSpans(byte[] json)
throws IOException
sendSpans in class AbstractSpanCollectorIOExceptionCopyright © 2016. All rights reserved.