def METHOD_NAME(name, trace_id, span_id, parent_id,
               annotations, bannotations):
    return ttypes.Span(
        name=name,
        trace_id=trace_id,
        id=span_id,
        parent_id=parent_id,
        annotations=annotations,
        binary_annotations=bannotations
    )