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.
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
Modifier and TypeFieldDescriptionstatic final int
Deprecated.The defined in zipkin's thrift definitionstatic final int
Deprecated.The type defined in zipkin's thrift definition -
Method Summary
Modifier and TypeMethodDescriptionint
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()
Deprecated.WhenstringValue()
is present, this is the same as theSpan.localEndpoint()
Otherwise, it is the same as theSpan.remoteEndpoint()
.boolean
Deprecated.int
hashCode()
Deprecated.key()
Deprecated.The same as the key of aSpan.tags()
v2 span tag}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:
-
TYPE_STRING
public static final int TYPE_STRINGDeprecated.The type defined in zipkin's thrift definition- See Also:
-
-
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>
-
Span.tags()
.