Skip to content

Commit dd4bc1a

Browse files
Release (#338)
* remove logs * remove requirements * Bump version * Squash * Bugfix (#335) * fix dspy issue (#337)
1 parent 4bbae44 commit dd4bc1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/langtrace_python_sdk/instrumentation/dspy/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def traced_method(wrapped, instance, args, kwargs):
3131
span_attributes["dspy.optimizer"] = instance.__class__.__name__
3232
if len(args) > 0:
3333
span_attributes["dspy.optimizer.module"] = args[0].__class__.__name__
34-
if args[0].prog:
34+
if hasattr(args[0], "prog") and args[0].prog:
3535
prog = {
3636
"name": args[0].prog.__class__.__name__,
3737
"signature": (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.3.8"
1+
__version__ = "2.3.9"

0 commit comments

Comments
 (0)