public interface SpanCollector
ServerTracer and ClientTracer. We can have implementations that
simply log the collected spans or implementations that persist the spans to a database, submit them to a service,...| Modifier and Type | Method and Description |
|---|---|
void |
addDefaultAnnotation(String key,
String value)
Adds a fixed annotation that will be added to every span that is submitted to this collector.
|
void |
close()
Closes and cleans up resources.
|
void |
collect(Span span)
Collect span.
|
void collect(Span span)
span - Span, should not be null.void addDefaultAnnotation(String key, String value)
key - Annotation name/key. Should not be empty or null.value - Annotation value. Should not be null.void close()
Copyright © 2015. All rights reserved.