Commit 4404ea1
fix(langchain): prefer runnable name over langgraph_node for chain step names
langgraph_node is inherited by every run nested inside a node, so preferring it
over the runnable's own name relabelled all of a node's internal LCEL runs
(RunnableSequence/Prompt/...) — and nested sub-graphs — with the parent node's
name, collapsing the trace tree. Flip the precedence to
`name or langgraph_node or id` to match the TS handler; LangGraph already sets
`name` to the node name at node boundaries, so nodes stay identifiable while the
inner structure keeps its real names.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 65f6ea7 commit 4404ea1
2 files changed
Lines changed: 32 additions & 6 deletions
File tree
- src/openlayer/lib/integrations
- tests/lib/integrations
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
758 | 758 | | |
759 | 759 | | |
760 | 760 | | |
761 | | - | |
762 | | - | |
763 | | - | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
764 | 772 | | |
765 | 773 | | |
766 | | - | |
| 774 | + | |
767 | 775 | | |
768 | 776 | | |
769 | 777 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
452 | 454 | | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
458 | | - | |
459 | 460 | | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
464 | 482 | | |
465 | 483 | | |
466 | 484 | | |
| |||
0 commit comments