We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f89b69 commit b283588Copy full SHA for b283588
src/langtrace_python_sdk/instrumentation/cleanlab/patch.py
@@ -63,6 +63,10 @@ def traced_method(
63
result_json = str(result)
64
65
span.set_attribute("tlm.result", str(result_json))
66
+ trustworthiness_score = result_json["trustworthiness_score"]
67
+ log = result_json["log"]
68
+ span.set_attribute("tlm.trustworthiness_score", str(trustworthiness_score))
69
+ span.set_attribute("tlm.explanation", str(log.get("explanation", "")))
70
span.set_status(Status(StatusCode.OK))
71
72
return result
0 commit comments