public class Collector extends Object
Callbacks passed do not propagate to the storage layer. They only return success or failures before storage is attempted. This ensures that calling threads are disconnected from storage threads.
Modifier and Type | Class and Description |
---|---|
static class |
Collector.Builder |
Modifier and Type | Method and Description |
---|---|
void |
accept(List<Span> spans,
Callback<Void> callback) |
void |
acceptSpans(byte[] serializedSpans,
BytesDecoder<Span> decoder,
Callback<Void> callback) |
void |
acceptSpans(byte[] serialized,
Callback<Void> callback) |
static Collector.Builder |
newBuilder(Class<?> loggingClass)
Needed to scope this to the correct logging category
|
public static Collector.Builder newBuilder(Class<?> loggingClass)
public void acceptSpans(byte[] serializedSpans, BytesDecoder<Span> decoder, Callback<Void> callback)
Copyright © 2015–2018 OpenZipkin. All rights reserved.