Skip to content

Commit 692f80f

Browse files
committed
fix: handle scenario for langgraph no path
1 parent 2a69c46 commit 692f80f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/langtrace_python_sdk/instrumentation/langgraph/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_atrribute_key_value(method_name, args):
124124
else str(args[1])
125125
)
126126
),
127-
"path_map": args[2],
127+
"path_map": args[2] if len(args) > 2 else None,
128128
}
129129
),
130130
"langgraph.task.name": "add_conditional_edges",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.27"
1+
__version__ = "2.2.28"

0 commit comments

Comments
 (0)