SpanCollectorAsyncReporter and URLConnectionSender
located in the "io.zipkin.reporter2:zipkin-sender-urlconnection" dependency.@Deprecated public final class HttpSpanCollector extends AbstractSpanCollector
POST /spans endpoint.| Modifier and Type | Class | Description |
|---|---|---|
static class |
HttpSpanCollector.Config |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static HttpSpanCollector |
create(java.lang.String baseUrl,
HttpSpanCollector.Config config,
SpanCollectorMetricsHandler metrics) |
Deprecated.
|
static HttpSpanCollector |
create(java.lang.String baseUrl,
SpanCollectorMetricsHandler metrics) |
Deprecated.
Create a new instance with default configuration.
|
protected void |
sendSpans(byte[] json) |
Deprecated.
|
reportSpansaddDefaultAnnotation, close, collect, flushpublic static HttpSpanCollector create(java.lang.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(java.lang.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 java.io.IOException
sendSpans in class AbstractSpanCollectorjava.io.IOExceptionCopyright © 2018 OpenZipkin. All rights reserved.