Class BinaryFormat.NoopBinaryFormat

    • Constructor Detail

      • NoopBinaryFormat

        private NoopBinaryFormat()
    • Method Detail

      • toByteArray

        public byte[] toByteArray​(SpanContext spanContext)
        Description copied from class: BinaryFormat
        Serializes a SpanContext into a byte array using the binary format.
        Overrides:
        toByteArray in class BinaryFormat
        Parameters:
        spanContext - the SpanContext to serialize.
        Returns:
        the serialized binary value.
      • fromByteArray

        public SpanContext fromByteArray​(byte[] bytes)
        Description copied from class: BinaryFormat
        Parses the SpanContext from a byte array using the binary format.
        Overrides:
        fromByteArray in class BinaryFormat
        Parameters:
        bytes - a binary encoded buffer from which the SpanContext will be parsed.
        Returns:
        the parsed SpanContext.