public abstract class AnnotationSubmitter extends Object
| Modifier and Type | Method and Description |
|---|---|
static AnnotationSubmitter |
create(SpanAndEndpoint spanAndEndpoint) |
void |
submitAnnotation(String value)
Associates an event that explains latency with the current system time.
|
void |
submitAnnotation(String value,
long timestamp)
Associates an event that explains latency with a timestamp.
|
void |
submitBinaryAnnotation(String key,
int value)
Submits a binary (key/value) annotation with int value.
|
void |
submitBinaryAnnotation(String key,
String value)
Binary annotations are tags applied to a Span to give it context.
|
public static AnnotationSubmitter create(SpanAndEndpoint spanAndEndpoint)
public void submitAnnotation(String value)
value - A short tag indicating the event, like "finagle.retry"public void submitAnnotation(String value, long timestamp)
submitAnnotation(String), when
you have a timestamp more precise or accurate than System.currentTimeMillis().value - A short tag indicating the event, like "finagle.retry"timestamp - microseconds from epochpublic void submitBinaryAnnotation(String key, String value)
key - Name used to lookup spans, such as "your_app.version"value - String value, should not be null.public void submitBinaryAnnotation(String key, int value)
key - Key, should not be blank.value - Integer value.Copyright © 2016. All rights reserved.