Package zipkin2.v1
Class V1BinaryAnnotation
java.lang.Object
zipkin2.v1.V1BinaryAnnotation
- All Implemented Interfaces:
Comparable<V1BinaryAnnotation>
@Deprecated public final class V1BinaryAnnotation extends Object implements Comparable<V1BinaryAnnotation>
Deprecated.
new code should use
Span.tags()
.This only supports binary annotations that map to
v2 span
data. Namely, this
supports Span.tags()
, Span.localEndpoint()
and Span.remoteEndpoint()
.
Specifically, this maps String and Boolean binary annotations, ignoring others.
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_BOOLEAN
Deprecated.The defined in zipkin's thrift definitionstatic int
TYPE_STRING
Deprecated.The type defined in zipkin's thrift definition -
Method Summary
Modifier and Type Method Description int
compareTo(V1BinaryAnnotation that)
Deprecated.Provides consistent iteration bykey
static V1BinaryAnnotation
createAddress(String address, Endpoint endpoint)
Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()
static V1BinaryAnnotation
createString(String key, String value, Endpoint endpoint)
Deprecated.Creates a tag annotation, which is the same asSpan.tags()
except duplicating the endpoint.Endpoint
endpoint()
Deprecated.WhenstringValue()
is present, this is the same as theSpan.localEndpoint()
Otherwise, it is the same as theSpan.remoteEndpoint()
.boolean
equals(Object o)
Deprecated.int
hashCode()
Deprecated.String
key()
Deprecated.The same as the key of aSpan.tags()
v2 span tag}String
stringValue()
Deprecated.The same as the value of aSpan.tags()
v2 span tag} or null if this is an addressint
type()
Deprecated.The thrift type for the value defined in Zipkin's thrift definition.
-
Field Details
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEANDeprecated.The defined in zipkin's thrift definition- See Also:
- Constant Field Values
-
TYPE_STRING
public static final int TYPE_STRINGDeprecated.The type defined in zipkin's thrift definition- See Also:
- Constant Field Values
-
-
Method Details
-
createAddress
Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()
-
createString
Deprecated.Creates a tag annotation, which is the same asSpan.tags()
except duplicating the endpoint.A special case is when the key is "lc" and value is empty: This substitutes for the
Span.localEndpoint()
. -
key
Deprecated.The same as the key of aSpan.tags()
v2 span tag} -
type
public int type()Deprecated.The thrift type for the value defined in Zipkin's thrift definition. Note this is not the TBinaryProtocol field type! -
stringValue
Deprecated.The same as the value of aSpan.tags()
v2 span tag} or null if this is an address -
endpoint
Deprecated.WhenstringValue()
is present, this is the same as theSpan.localEndpoint()
Otherwise, it is the same as theSpan.remoteEndpoint()
. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
compareTo
Deprecated.Provides consistent iteration bykey
- Specified by:
compareTo
in interfaceComparable<V1BinaryAnnotation>
-