Package zipkin2.v1
Class V1BinaryAnnotation
- java.lang.Object
-
- zipkin2.v1.V1BinaryAnnotation
-
- All Implemented Interfaces:
java.lang.Comparable<V1BinaryAnnotation>
@Deprecated public final class V1BinaryAnnotation extends java.lang.Object implements java.lang.Comparable<V1BinaryAnnotation>
Deprecated.new code should useSpan.tags().This only supports binary annotations that map tov2 spandata. Namely, this supportsSpan.tags(),Span.localEndpoint()andSpan.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(V1BinaryAnnotation that)Deprecated.Provides consistent iteration bykeystatic V1BinaryAnnotationcreateAddress(java.lang.String address, Endpoint endpoint)Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()static V1BinaryAnnotationcreateString(java.lang.String key, java.lang.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(java.lang.Object o)Deprecated.inthashCode()Deprecated.java.lang.Stringkey()Deprecated.The same as the key of aSpan.tags()v2 span tag}java.lang.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 Detail
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
Deprecated.The defined in zipkin's thrift definition- See Also:
- Constant Field Values
-
TYPE_STRING
public static final int TYPE_STRING
Deprecated.The type defined in zipkin's thrift definition- See Also:
- Constant Field Values
-
-
Method Detail
-
createAddress
public static V1BinaryAnnotation createAddress(java.lang.String address, Endpoint endpoint)
Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()
-
createString
public static V1BinaryAnnotation createString(java.lang.String key, java.lang.String value, Endpoint endpoint)
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
public java.lang.String 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
@Nullable public java.lang.String stringValue()
Deprecated.The same as the value of aSpan.tags()v2 span tag} or null if this is an address
-
endpoint
public Endpoint endpoint()
Deprecated.WhenstringValue()is present, this is the same as theSpan.localEndpoint()Otherwise, it is the same as theSpan.remoteEndpoint().
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(V1BinaryAnnotation that)
Deprecated.Provides consistent iteration bykey- Specified by:
compareToin interfacejava.lang.Comparable<V1BinaryAnnotation>
-
-