[PR #3320] [MERGED] feat: add guide for logging LLM runs outside LangChain [closes DOC-360] #3377

Closed
opened 2026-06-05 18:22:54 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3320
Author: @katmayb
Created: 3/26/2026
Status: Merged
Merged: 3/26/2026
Merged by: @katmayb

Base: mainHead: open-swe/cee4fa7e-e1a8-2188-30fe-920489df0584


📝 Commits (4)

  • 3e48d5b Add guide for logging LLM runs outside LangChain with correct token counts, cost tracking, and Playground support
  • cf6fcaf Edits
  • 22274df Apply suggestion from @katmayb
  • 6d9eadc Merge branch 'main' into open-swe/cee4fa7e-e1a8-2188-30fe-920489df0584

📊 Changes

1 file changed (+28 additions, -14 deletions)

View changed files

📝 src/langsmith/log-llm-trace.mdx (+28 -14)

📄 Description

Description

Add some additional information to the Log LLM trace page to make the content more discoverable: how to log LLM runs outside LangChain with correct metadata so that token counts, costs, and Playground integration all work properly.

Resolves DOC-360


🔄 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/docs/pull/3320 **Author:** [@katmayb](https://github.com/katmayb) **Created:** 3/26/2026 **Status:** ✅ Merged **Merged:** 3/26/2026 **Merged by:** [@katmayb](https://github.com/katmayb) **Base:** `main` ← **Head:** `open-swe/cee4fa7e-e1a8-2188-30fe-920489df0584` --- ### 📝 Commits (4) - [`3e48d5b`](https://github.com/langchain-ai/docs/commit/3e48d5b41a983136a6377ed0c6c0945ef17164df) Add guide for logging LLM runs outside LangChain with correct token counts, cost tracking, and Playground support - [`cf6fcaf`](https://github.com/langchain-ai/docs/commit/cf6fcafb0e742dc4620c9c4d9a5f52e4dc467309) Edits - [`22274df`](https://github.com/langchain-ai/docs/commit/22274df2cea0034e66d58f3892cb746cf6c9c398) Apply suggestion from @katmayb - [`6d9eadc`](https://github.com/langchain-ai/docs/commit/6d9eadce2aa5211ccb701a2158a58fc4bf729d6d) Merge branch 'main' into open-swe/cee4fa7e-e1a8-2188-30fe-920489df0584 ### 📊 Changes **1 file changed** (+28 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `src/langsmith/log-llm-trace.mdx` (+28 -14) </details> ### 📄 Description ## Description Add some additional information to the Log LLM trace page to make the content more discoverable: how to log LLM runs outside LangChain with correct metadata so that token counts, costs, and Playground integration all work properly. Resolves DOC-360 --- <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-06-05 18:22:54 -04:00
yindo closed this issue 2026-06-05 18:22:54 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3377