py_zipkin/encoding/_decoders.py
def decode_spans(self, spans):
        """Decodes an encoded list of spans.

        :param spans: encoded list of spans
        :type spans: bytes
        :return: list of spans
        :rtype: list of Span
        """
        decoded_spans = []
        transport = TMemoryBuffer(spans)

        if six.byte2int(spans) == TType.STRUCT:
            _, size = read_list_begin(transport)
        else:
            size = 1

        for _ in range(size):
            span = zipkin_core.Span()
            span.read(TBinaryProtocol(transport))
            decoded_spans.append(self._decode_thrift_span(span))
        return decoded_spans
def decode_spans(self, spans):
        decoded_spans = []
        transport = TMemoryBuffer(spans)

        if six.byte2int(spans) == TType.STRUCT:
            _, size = read_list_begin(transport)
        else:
            size = 1

        for _ in range(size):
            span = zipkin_core.Span()
            span.read(TBinaryProtocol(transport))
            decoded_spans.append(self._decode_thrift_span(span))
        return decoded_spans
def decode_spans ( self , spans ) : decoded_spans = [ ] transport = TMemoryBuffer ( spans ) if six . byte2int ( spans ) == TType . STRUCT : _ , size = read_list_begin ( transport ) else : size = 1 for _ in range ( size ) : span = zipkin_core . Span ( ) span . read ( TBinaryProtocol ( transport ) ) decoded_spans . append ( self . _decode_thrift_span ( span ) ) return decoded_spans
Decodes an encoded list of spans.

        :param spans: encoded list of spans
        :type spans: bytes
        :return: list of spans
        :rtype: list of Span
Decodes an encoded list of spans .