Skip to content

Commit 4f7f3c4

Browse files
committed
Merge branch 'development' into release
2 parents 9741a3e + 4ab5e43 commit 4f7f3c4

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)