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 intTYPE_BOOLEANDeprecated.The defined in zipkin's thrift definitionstatic intTYPE_STRINGDeprecated.The type defined in zipkin's thrift definition -
Method Summary
Modifier and Type Method Description intcompareTo(V1BinaryAnnotation that)Deprecated.Provides consistent iteration bykeystatic V1BinaryAnnotationcreateAddress(String address, Endpoint endpoint)Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()static V1BinaryAnnotationcreateString(String key, String value, Endpoint endpoint)Deprecated.Creates a tag annotation, which is the same asSpan.tags()except duplicating the endpoint.Endpointendpoint()Deprecated.WhenstringValue()is present, this is the same as theSpan.localEndpoint()Otherwise, it is the same as theSpan.remoteEndpoint().booleanequals(Object o)Deprecated.inthashCode()Deprecated.Stringkey()Deprecated.The same as the key of aSpan.tags()v2 span tag}StringstringValue()Deprecated.The same as the value of aSpan.tags()v2 span tag} or null if this is an addressinttype()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:
compareToin interfaceComparable<V1BinaryAnnotation>
-