Package brave.handler
Class MutableSpanBytesEncoder
- java.lang.Object
-
- brave.handler.MutableSpanBytesEncoder
-
public abstract class MutableSpanBytesEncoder extends Object
Similar tozipkin2.MutableSpan.SpanBytesEncoderexcept no Zipkin dependency.
-
-
Constructor Summary
Constructors Constructor Description MutableSpanBytesEncoder()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 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 intencodeList(List<MutableSpan> spans, byte[] out, int pos)Allows you to encode a list of spans onto a specific offset.abstract intsizeInBytes(MutableSpan input)static MutableSpanBytesEncoderzipkinJsonV2(Tag<Throwable> errorTag)
-
-
-
Method Detail
-
zipkinJsonV2
public static MutableSpanBytesEncoder zipkinJsonV2(Tag<Throwable> errorTag)
-
sizeInBytes
public abstract int sizeInBytes(MutableSpan input)
-
encode
public abstract byte[] encode(MutableSpan input)
Serializes an object into its binary form.
-
encodeList
public abstract byte[] encodeList(List<MutableSpan> input)
Serializes a list of objects into their binary form.
-
encodeList
public abstract int encodeList(List<MutableSpan> spans, byte[] out, int pos)
Allows you to encode a list of spans onto a specific offset. For example, when nesting
-
-