def METHOD_NAME(test_item, status, reason=None):
    span = _extract_span(test_item)
    if not span:
        return
    span.set_tag_str(test.STATUS, status)
    if status == test.Status.FAIL.value:
        exc_info = reason
        span.set_exc_info(exc_info[0], exc_info[1], exc_info[2])
    elif status == test.Status.SKIP.value:
        span.set_tag_str(test.SKIP_REASON, reason)