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