Skip to content

Commit ff0c46e

Browse files
committed
remove DSPY checkpoint tracing
1 parent 883d9d7 commit ff0c46e

File tree

1 file changed

+0
-5
lines changed
  • src/langtrace_python_sdk/instrumentation/dspy

1 file changed

+0
-5
lines changed

src/langtrace_python_sdk/instrumentation/dspy/patch.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ def traced_method(wrapped, instance, args, kwargs):
120120
**get_extra_attributes(),
121121
}
122122

123-
trace_checkpoint = os.environ.get("TRACE_DSPY_CHECKPOINT", "true").lower()
124-
125123
if instance.__class__.__name__:
126124
span_attributes["dspy.signature.name"] = instance.__class__.__name__
127125
span_attributes["dspy.signature"] = str(instance.signature)
@@ -143,9 +141,6 @@ def traced_method(wrapped, instance, args, kwargs):
143141
"dspy.signature.result",
144142
json.dumps(result.toDict()),
145143
)
146-
if trace_checkpoint == "true":
147-
print(Fore.RED + "Note: DSPy checkpoint tracing is enabled in Langtrace. To disable it, set the env var, TRACE_DSPY_CHECKPOINT to false" + Fore.RESET)
148-
set_span_attribute(span, "dspy.checkpoint", ujson.dumps(instance.dump_state(False), indent=2))
149144
span.set_status(Status(StatusCode.OK))
150145

151146
span.end()

0 commit comments

Comments
 (0)