def test_log_span_exception(): with ray.log_span("event_type2", contents={"key": "val"}): raise Exception("This failed.")
def test_log_span(): with ray.log_span("event_type2", contents={"key": "val"}): pass