Package brave.handler

Class MutableSpanBytesEncoder


  • public abstract class MutableSpanBytesEncoder
    extends Object
    Similar to zipkin2.MutableSpan.SpanBytesEncoder except no Zipkin dependency.
    • Constructor Detail

      • MutableSpanBytesEncoder

        public MutableSpanBytesEncoder()
    • Method Detail

      • 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