Can't enable "LANGCHAIN_TRACING_V2" to do tracing in Hierarchical Agent Teams example #94

Closed
opened 2026-02-15 17:15:42 -05:00 by yindo · 8 comments
Owner

Originally created by @timeff on GitHub (Sep 25, 2024).

Hi, I am building the application using a hierarchical agent team. But when I enable the "LANGCHAIN_TRACING_V2" environment variable to send the data to the langsmith. I got the error

Error: Key team_members not found in channels
    at validateKeys (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/validate.cjs:84:23)
    at CompiledStateGraph._defaults (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:400:44)
    at CompiledStateGraph._streamIterator (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:517:112)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  pregelTaskId: '2aa7cc38-a59e-5593-8b06-2b6963bc24fd'

At first, I thought it might be a problem with my application. But I created a new project and try copy and paste anything from the official tutorial at https://langchain-ai.github.io/langgraphjs/tutorials/multi_agent/hierarchical_agent_teams/. It turned out the same error happened again.

I can disable tracing by putting the environment variable to false but it will lose all of the tracing capability using langsmith.

Originally created by @timeff on GitHub (Sep 25, 2024). Hi, I am building the application using a hierarchical agent team. But when I enable the "LANGCHAIN_TRACING_V2" environment variable to send the data to the langsmith. I got the error ``` Error: Key team_members not found in channels at validateKeys (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/validate.cjs:84:23) at CompiledStateGraph._defaults (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:400:44) at CompiledStateGraph._streamIterator (/Users/xxx/Lab/langchain-hierarchy-supervisor/node_modules/@langchain/langgraph/dist/pregel/index.cjs:517:112) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { pregelTaskId: '2aa7cc38-a59e-5593-8b06-2b6963bc24fd' ``` At first, I thought it might be a problem with my application. But I created a new project and try copy and paste anything from the official tutorial at https://langchain-ai.github.io/langgraphjs/tutorials/multi_agent/hierarchical_agent_teams/. It turned out the same error happened again. I can disable tracing by putting the environment variable to false but it will lose all of the tracing capability using langsmith.
yindo closed this issue 2026-02-15 17:15:42 -05:00
Author
Owner

@lemonps commented on GitHub (Sep 25, 2024):

I have the same problem. Anyone know the solution?

@lemonps commented on GitHub (Sep 25, 2024): I have the same problem. Anyone know the solution?
Author
Owner

@jacoblee93 commented on GitHub (Sep 28, 2024):

Very weird - will investigate!

@jacoblee93 commented on GitHub (Sep 28, 2024): Very weird - will investigate!
Author
Owner

@rpatel15-hue commented on GitHub (Oct 3, 2024):

same issue for me, I wonder if it has to do with the way state is defined in the subgraphs

@rpatel15-hue commented on GitHub (Oct 3, 2024): same issue for me, I wonder if it has to do with the way state is defined in the subgraphs
Author
Owner

@Pdash-exceeds commented on GitHub (Oct 9, 2024):

Same issue, works for subgraphs. Not for supergraph

@Pdash-exceeds commented on GitHub (Oct 9, 2024): Same issue, works for subgraphs. Not for supergraph
Author
Owner

@nross83 commented on GitHub (Nov 7, 2024):

I just converted my single graph into hierarchical subgraphs and ran into this bug. This is unfortunate because LangSmith tracing is important for our team, but we also really don't want to go back to a single graph again 😕

@nross83 commented on GitHub (Nov 7, 2024): I just converted my single graph into hierarchical subgraphs and ran into this bug. This is unfortunate because LangSmith tracing is important for our team, but we also really don't want to go back to a single graph again 😕
Author
Owner

@jacoblee93 commented on GitHub (Nov 7, 2024):

Hey all, sorry for the delay - will look into it

@jacoblee93 commented on GitHub (Nov 7, 2024): Hey all, sorry for the delay - will look into it
Author
Owner

@phpmac commented on GitHub (Mar 13, 2025):

hello

@phpmac commented on GitHub (Mar 13, 2025): hello
Author
Owner

@dqbd commented on GitHub (Sep 11, 2025):

Hello! We're in the process of rewriting our examples, closing this issue for staleness

@dqbd commented on GitHub (Sep 11, 2025): Hello! We're in the process of rewriting our examples, closing this issue for staleness
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#94