I’ve created a Bug Report stating that Token usage is no longer available in version 1.40.0: Token usage on Langchain nodes is no longer available in 1.40.0 · Issue #9294 · n8n-io/n8n · GitHub
Bug Description
Token usage is no longer available at logs on Langchain nodes in 1.40.0. It was working up until at least 1.37.0.
1.37.0:
1.40.0:

Please note that the output on an added langchain callback on the llm is also empty:
1.37.0:
1.40.0:
To Reproduce
Use any LLM/Langchain related node and check the logs.
Expected behavior
There should be the token usage info on LLM/Langchain nodes logs.
Information on your n8n setup
- n8n version: 1.40.0
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): own
- Running n8n via (Docker, npm, n8n cloud, desktop app): k8s
- Operating system: ubuntu