[PR #3802] [MERGED] feat: add java traceable docs [closes DOC-1050] #3819

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3802
Author: @open-swe[bot]
Created: 4/29/2026
Status: Merged
Merged: 5/6/2026
Merged by: @npentrel

Base: mainHead: open-swe/d92bb99c-17a8-551f-48b2-e168f2cea9de


📝 Commits (10+)

  • a05f5bf Add JVM traceable examples so Java and Kotlin users can follow tracing setup docs.
  • 465a8a6 Update JVM traceable snippets to use the requested GPT-5.5 model constant.
  • f1ffd18 Add JVM RunTree examples with custom run IDs.
  • 1a7b00b Add JVM metadata and thread tracing examples.
  • 5daa00c Add JVM cost tracking examples.
  • 5df3955 make java snippets testable
  • 0529ab9 update for java
  • ef59c43 add kotlin
  • e79ee9e rest of the code samples
  • 614ebcf update

📊 Changes

59 files changed (+3547 additions, -48 deletions)

View changed files

📝 .deepagents/skills/docs-code-samples/SKILL.md (+46 -21)
📝 .github/workflows/test-code-samples.yml (+11 -2)
📝 scripts/extract_code_snippets.py (+77 -8)
📝 scripts/generate_code_snippet_mdx.py (+55 -3)
📝 scripts/test_code_samples.py (+66 -5)
src/code-samples/langsmith/RunTreeExample.java (+103 -0)
src/code-samples/langsmith/TraceablePipeline.java (+83 -0)
src/code-samples/langsmith/cost-tracking-llm-cost-direct.java (+87 -0)
src/code-samples/langsmith/cost-tracking-llm-cost-direct.kt (+75 -0)
src/code-samples/langsmith/cost-tracking-tool-cost-output.java (+60 -0)
src/code-samples/langsmith/cost-tracking-tool-cost-output.kt (+54 -0)
src/code-samples/langsmith/cost-tracking-tool-cost-run.java (+65 -0)
src/code-samples/langsmith/cost-tracking-tool-cost-run.kt (+59 -0)
src/code-samples/langsmith/cost-tracking-usage-metadata-output.java (+90 -0)
src/code-samples/langsmith/cost-tracking-usage-metadata-output.kt (+83 -0)
src/code-samples/langsmith/cost-tracking-usage-metadata-run.java (+92 -0)
src/code-samples/langsmith/cost-tracking-usage-metadata-run.kt (+78 -0)
src/code-samples/langsmith/ls-metadata-parameters-basic.java (+44 -0)
src/code-samples/langsmith/ls-metadata-parameters-basic.kt (+39 -0)
src/code-samples/langsmith/ls-metadata-parameters-configured.java (+56 -0)

...and 39 more files

📄 Description

Description

Adds Java and Kotlin traceable examples to the tracing quickstart and custom instrumentation docs so JVM users can follow the new SDK wrapper patterns. This was prepared by an AI agent and based on langsmith-java usage examples.

Test Plan

  • Review the Java and Kotlin traceable snippets against the published LangSmith Java SDK

Opened collaboratively by Jacob Lee and open-swe.


🔄 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/3802 **Author:** [@open-swe[bot]](https://github.com/apps/open-swe) **Created:** 4/29/2026 **Status:** ✅ Merged **Merged:** 5/6/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `open-swe/d92bb99c-17a8-551f-48b2-e168f2cea9de` --- ### 📝 Commits (10+) - [`a05f5bf`](https://github.com/langchain-ai/docs/commit/a05f5bfc81b0ac70bd0350ccc397b0206f297395) Add JVM traceable examples so Java and Kotlin users can follow tracing setup docs. - [`465a8a6`](https://github.com/langchain-ai/docs/commit/465a8a63c5b20cf475bb463fdad773dbc53aa3fd) Update JVM traceable snippets to use the requested GPT-5.5 model constant. - [`f1ffd18`](https://github.com/langchain-ai/docs/commit/f1ffd18fc504e6d2ed51d993b86693bc9f1fd109) Add JVM RunTree examples with custom run IDs. - [`1a7b00b`](https://github.com/langchain-ai/docs/commit/1a7b00be5328181d707f5fa0d433a03687044b8f) Add JVM metadata and thread tracing examples. - [`5daa00c`](https://github.com/langchain-ai/docs/commit/5daa00cb4377809642e1455350df57915dc85efa) Add JVM cost tracking examples. - [`5df3955`](https://github.com/langchain-ai/docs/commit/5df3955989d8c1dc59efa66b6b5adb648991284f) make java snippets testable - [`0529ab9`](https://github.com/langchain-ai/docs/commit/0529ab950021fbb0342f81e2efa7b7adc8211078) update for java - [`ef59c43`](https://github.com/langchain-ai/docs/commit/ef59c436cc700b18e3a0a7507c06eef63c4280f7) add kotlin - [`e79ee9e`](https://github.com/langchain-ai/docs/commit/e79ee9e3e41dc2bdd6c0e6b42c9b35a489c67bd9) rest of the code samples - [`614ebcf`](https://github.com/langchain-ai/docs/commit/614ebcfdc1ebfaa8ae19449b2eb55fb0b1e6da6e) update ### 📊 Changes **59 files changed** (+3547 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `.deepagents/skills/docs-code-samples/SKILL.md` (+46 -21) 📝 `.github/workflows/test-code-samples.yml` (+11 -2) 📝 `scripts/extract_code_snippets.py` (+77 -8) 📝 `scripts/generate_code_snippet_mdx.py` (+55 -3) 📝 `scripts/test_code_samples.py` (+66 -5) ➕ `src/code-samples/langsmith/RunTreeExample.java` (+103 -0) ➕ `src/code-samples/langsmith/TraceablePipeline.java` (+83 -0) ➕ `src/code-samples/langsmith/cost-tracking-llm-cost-direct.java` (+87 -0) ➕ `src/code-samples/langsmith/cost-tracking-llm-cost-direct.kt` (+75 -0) ➕ `src/code-samples/langsmith/cost-tracking-tool-cost-output.java` (+60 -0) ➕ `src/code-samples/langsmith/cost-tracking-tool-cost-output.kt` (+54 -0) ➕ `src/code-samples/langsmith/cost-tracking-tool-cost-run.java` (+65 -0) ➕ `src/code-samples/langsmith/cost-tracking-tool-cost-run.kt` (+59 -0) ➕ `src/code-samples/langsmith/cost-tracking-usage-metadata-output.java` (+90 -0) ➕ `src/code-samples/langsmith/cost-tracking-usage-metadata-output.kt` (+83 -0) ➕ `src/code-samples/langsmith/cost-tracking-usage-metadata-run.java` (+92 -0) ➕ `src/code-samples/langsmith/cost-tracking-usage-metadata-run.kt` (+78 -0) ➕ `src/code-samples/langsmith/ls-metadata-parameters-basic.java` (+44 -0) ➕ `src/code-samples/langsmith/ls-metadata-parameters-basic.kt` (+39 -0) ➕ `src/code-samples/langsmith/ls-metadata-parameters-configured.java` (+56 -0) _...and 39 more files_ </details> ### 📄 Description ## Description Adds Java and Kotlin traceable examples to the tracing quickstart and custom instrumentation docs so JVM users can follow the new SDK wrapper patterns. This was prepared by an AI agent and based on langsmith-java usage examples. ## Test Plan - [ ] Review the Java and Kotlin traceable snippets against the published LangSmith Java SDK _Opened collaboratively by Jacob Lee and open-swe._ --- <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:53:15 -04:00
yindo closed this issue 2026-06-05 18:53:15 -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#3819