Package brave.handler
Class MutableSpanBytesEncoder
java.lang.Object
brave.handler.MutableSpanBytesEncoder
public abstract class MutableSpanBytesEncoder extends Object
Similar to
zipkin2.MutableSpan.SpanBytesEncoder
except no Zipkin dependency.-
Constructor Summary
Constructors Constructor Description MutableSpanBytesEncoder()
-
Method Summary
Modifier and Type Method Description abstract byte[]
encode(MutableSpan input)
Serializes an object into its binary form.abstract byte[]
encodeList(List<MutableSpan> input)
Serializes a list of objects into their binary form.abstract int
encodeList(List<MutableSpan> spans, byte[] out, int pos)
Allows you to encode a list of spans onto a specific offset.abstract int
sizeInBytes(MutableSpan input)
static MutableSpanBytesEncoder
zipkinJsonV2(Tag<Throwable> errorTag)
-
Constructor Details
-
MutableSpanBytesEncoder
public MutableSpanBytesEncoder()
-
-
Method Details
-
zipkinJsonV2
-
sizeInBytes
-
encode
Serializes an object into its binary form. -
encodeList
Serializes a list of objects into their binary form. -
encodeList
Allows you to encode a list of spans onto a specific offset. For example, when nesting
-