public enum SpanBytesEncoder extends Enum<SpanBytesEncoder> implements BytesEncoder<Span>
| Enum Constant and Description |
|---|
JSON_V1
Corresponds to the Zipkin v1 json format (with tags as binary annotations)
|
JSON_V2
Corresponds to the Zipkin v2 json format
|
PROTO3 |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
encodeList(List<Span> spans,
byte[] out,
int pos)
Allows you to encode a list of spans onto a specific offset.
|
static SpanBytesEncoder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpanBytesEncoder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfencode, encodeList, encoding, sizeInBytespublic static final SpanBytesEncoder JSON_V1
public static final SpanBytesEncoder JSON_V2
public static final SpanBytesEncoder PROTO3
public static SpanBytesEncoder[] values()
for (SpanBytesEncoder c : SpanBytesEncoder.values()) System.out.println(c);
public static SpanBytesEncoder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2015–2018 OpenZipkin. All rights reserved.