Span.tags().@Deprecated public final class V1BinaryAnnotation extends Object implements Comparable<V1BinaryAnnotation>
v2 span data. Namely, this
supports Span.tags(), Span.localEndpoint() and Span.remoteEndpoint().
Specifically, this maps String and Boolean binary annotations, ignoring others.
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_BOOLEAN
Deprecated.
The defined in zipkin's thrift definition
|
static int |
TYPE_STRING
Deprecated.
The type defined in zipkin's thrift definition
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(V1BinaryAnnotation that)
Deprecated.
Provides consistent iteration by
key |
static V1BinaryAnnotation |
createAddress(String address,
Endpoint endpoint)
Deprecated.
Creates an address annotation, which is the same as
Span.remoteEndpoint() |
static V1BinaryAnnotation |
createString(String key,
String value,
Endpoint endpoint)
Deprecated.
Creates a tag annotation, which is the same as
Span.tags() except duplicating the
endpoint. |
Endpoint |
endpoint()
Deprecated.
When
stringValue() is present, this is the same as the Span.localEndpoint()
Otherwise, it is the same as the Span.remoteEndpoint(). |
boolean |
equals(Object o)
Deprecated.
|
int |
hashCode()
Deprecated.
|
String |
key()
Deprecated.
The same as the key of a
Span.tags() v2 span tag} |
String |
stringValue()
Deprecated.
The same as the value of a
Span.tags() v2 span tag} or null if this is an address |
int |
type()
Deprecated.
The thrift type for the value defined in Zipkin's thrift definition.
|
public static final int TYPE_BOOLEAN
public static final int TYPE_STRING
public static V1BinaryAnnotation createAddress(String address, Endpoint endpoint)
Span.remoteEndpoint()public static V1BinaryAnnotation createString(String key, String value, Endpoint endpoint)
Span.tags() except duplicating the
endpoint.
A special case is when the key is "lc" and value is empty: This substitutes for the Span.localEndpoint().
public String key()
Span.tags() v2 span tag}public int type()
@Nullable public String stringValue()
Span.tags() v2 span tag} or null if this is an addresspublic Endpoint endpoint()
stringValue() is present, this is the same as the Span.localEndpoint()
Otherwise, it is the same as the Span.remoteEndpoint().public int compareTo(V1BinaryAnnotation that)
keycompareTo in interface Comparable<V1BinaryAnnotation>Copyright © 2015–2018 OpenZipkin. All rights reserved.