py_zipkin/encoding/protobuf/__init__.py
def _convert_annotations(annotations):
    """Converts py_zipkin's annotations dict to protobuf.

    :param annotations: annotations dict.
    :type annotations: dict
    :return: corresponding protobuf's list of annotations.
    :rtype: list
    """
    pb_annotations = []
    for value, ts in annotations.items():
        pb_annotations.append(zipkin_pb2.Annotation(
            timestamp=int(ts * 1000 * 1000),
            value=value,
        ))
    return pb_annotations
def _convert_annotations(annotations):
    pb_annotations = []
    for value, ts in annotations.items():
        pb_annotations.append(zipkin_pb2.Annotation(
            timestamp=int(ts * 1000 * 1000),
            value=value,
        ))
    return pb_annotations
def _convert_annotations ( annotations ) : pb_annotations = [ ] for value , ts in annotations . items ( ) : pb_annotations . append ( zipkin_pb2 . Annotation ( timestamp = int ( ts * 1000 * 1000 ) , value = value , ) ) return pb_annotations
Converts py_zipkin's annotations dict to protobuf.

    :param annotations: annotations dict.
    :type annotations: dict
    :return: corresponding protobuf's list of annotations.
    :rtype: list
Converts py_zipkin s annotations dict to protobuf .