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 useSpan.tags()
.This only supports binary annotations that map tov2 span
data. 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 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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 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(String address, Endpoint endpoint)
Deprecated.Creates an address annotation, which is the same asSpan.remoteEndpoint()
-
createString
public static V1BinaryAnnotation createString(String key, 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 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 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()
.
-
compareTo
public int compareTo(V1BinaryAnnotation that)
Deprecated.Provides consistent iteration bykey
- Specified by:
compareTo
in interfaceComparable<V1BinaryAnnotation>
-
-