Explicitly mark trace outcomes to improve AI agent observability and analysis
mark_success()
and mark_failure()
within instrumented functions to indicate trace outcomes:
mark_success()
and mark_failure()
within an instrumented function (decorated with @instrument
).