public class EmptySpanCollector extends Object implements SpanCollector
SpanCollector implementation that does nothing with collected spans.| Constructor and Description |
|---|
EmptySpanCollector() |
| 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 |
collect(Span span)
Collect span.
|
public void collect(Span span)
collect in interface SpanCollectorspan - Span, should not be null.public void addDefaultAnnotation(String key, String value)
addDefaultAnnotation in interface SpanCollectorkey - Annotation name/key. Should not be empty or null.value - Annotation value. Should not be null.Copyright © 2016. All rights reserved.