py_zipkin/encoding/protobuf/__init__.py
def encode_pb_list(pb_spans):
    """Encode list of protobuf Spans to binary.

    :param pb_spans: list of protobuf Spans.
    :type pb_spans: list of zipkin_pb2.Span
    :return: encoded list.
    :rtype: bytes
    """
    pb_list = zipkin_pb2.ListOfSpans()
    pb_list.spans.extend(pb_spans)
    return pb_list.SerializeToString()
def encode_pb_list(pb_spans):
    pb_list = zipkin_pb2.ListOfSpans()
    pb_list.spans.extend(pb_spans)
    return pb_list.SerializeToString()
def encode_pb_list ( pb_spans ) : pb_list = zipkin_pb2 . ListOfSpans ( ) pb_list . spans . extend ( pb_spans ) return pb_list . SerializeToString ( )
Encode list of protobuf Spans to binary.

    :param pb_spans: list of protobuf Spans.
    :type pb_spans: list of zipkin_pb2.Span
    :return: encoded list.
    :rtype: bytes
Encode list of protobuf Spans to binary .