[PR #258] [MERGED] Optimize tracing run tree #1337

Closed
opened 2026-02-20 17:44:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/258
Author: @nfcampos
Created: 4/1/2024
Status: Merged
Merged: 4/1/2024
Merged by: @nfcampos

Base: mainHead: nc/1apr/optimize-tracing-tree


📝 Commits (4)

📊 Changes

10 files changed (+290 additions, -404 deletions)

View changed files

📝 examples/branching.ipynb (+20 -40)
📝 langgraph/graph/state.py (+2 -2)
📝 langgraph/pregel/__init__.py (+135 -280)
📝 langgraph/pregel/debug.py (+3 -6)
📝 langgraph/pregel/io.py (+39 -12)
📝 langgraph/pregel/read.py (+41 -0)
langgraph/pregel/types.py (+28 -0)
📝 langgraph/pregel/write.py (+17 -9)
📝 tests/test_pregel.py (+5 -34)
📝 tests/test_pregel_async.py (+0 -21)

📄 Description

  • Do not run node if it's a passthrough
  • Do not run writers that wouldn't affect any channels
  • Combine consecutive writers when it doesn't change semantics

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/258 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 4/1/2024 **Status:** ✅ Merged **Merged:** 4/1/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/1apr/optimize-tracing-tree` --- ### 📝 Commits (4) - [`b6848c5`](https://github.com/langchain-ai/langgraph/commit/b6848c5fdfb637192e1e5b487373118cdefb5d4f) Optimize tracing run tree - [`3e4c942`](https://github.com/langchain-ai/langgraph/commit/3e4c94289ac19032e843497980b67a1888d40561) Manage run_manager directly - [`2736d72`](https://github.com/langchain-ai/langgraph/commit/2736d729896ec668dafc000457bae1e51f7f279e) Remove __start__ node from stream output - [`008301c`](https://github.com/langchain-ai/langgraph/commit/008301cf020af1860008f8a8425b5f6ed22d54b0) Lint ### 📊 Changes **10 files changed** (+290 additions, -404 deletions) <details> <summary>View changed files</summary> 📝 `examples/branching.ipynb` (+20 -40) 📝 `langgraph/graph/state.py` (+2 -2) 📝 `langgraph/pregel/__init__.py` (+135 -280) 📝 `langgraph/pregel/debug.py` (+3 -6) 📝 `langgraph/pregel/io.py` (+39 -12) 📝 `langgraph/pregel/read.py` (+41 -0) ➕ `langgraph/pregel/types.py` (+28 -0) 📝 `langgraph/pregel/write.py` (+17 -9) 📝 `tests/test_pregel.py` (+5 -34) 📝 `tests/test_pregel_async.py` (+0 -21) </details> ### 📄 Description - Do not run node if it's a passthrough - Do not run writers that wouldn't affect any channels - Combine consecutive writers when it doesn't change semantics --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:44:29 -05:00
yindo closed this issue 2026-02-20 17:44:29 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1337