From bb690a10cb9a7960cbb580ab18149303e379d256 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Tue, 22 Sep 2026 19:59:47 +0200 Subject: [PATCH 1/2] docs(javascript): Document LangChain embeddings support Co-Authored-By: GPT-6 --- .../common/agent-tracing/langchain.mdx | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/platforms/javascript/common/agent-tracing/langchain.mdx b/docs/platforms/javascript/common/agent-tracing/langchain.mdx index 213544069cbcd..031897e0ef722 100644 --- a/docs/platforms/javascript/common/agent-tracing/langchain.mdx +++ b/docs/platforms/javascript/common/agent-tracing/langchain.mdx @@ -68,6 +68,15 @@ The integration automatically instruments the following LangChain runnable metho - `stream()` - Streaming execution - `batch()` - Batch execution +### Embeddings + +The integration captures `gen_ai.embeddings` spans for `embedQuery()` and `embedDocuments()` calls from these provider packages: + +- `@langchain/openai` +- `@langchain/google-genai` +- `@langchain/mistralai` +- `@langchain/google-vertexai` + ### Providers The automatic instrumentation supports the following LangChain provider packages: @@ -82,3 +91,15 @@ The automatic instrumentation supports the following LangChain provider packages ## Supported Versions - `langchain`: `>=0.1.0 <2.0.0` +- `@langchain/core`: `>=0.1.0 <2.0.0` + +Automatic embeddings instrumentation supports these package versions: + +| Package | Supported Versions | +| -------------------------- | ------------------ | +| `@langchain/openai` | `>=0.1.0 <2.0.0` | +| `@langchain/google-genai` | `>=0.1.0 <3.0.0` | +| `@langchain/mistralai` | `>=0.1.0 <2.0.0` | +| `@langchain/google-common` | `>=0.1.0 <3.0.0` | + +For `@langchain/google-vertexai`, the version requirement applies to its `@langchain/google-common` dependency, which implements the embedding methods. From 10b6f977450c7253bc5dbd76539729a590b558a7 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Tue, 22 Sep 2026 20:05:41 +0200 Subject: [PATCH 2/2] docs(javascript): Keep LangChain version additions scoped to embeddings Co-Authored-By: GPT-6 --- docs/platforms/javascript/common/agent-tracing/langchain.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/platforms/javascript/common/agent-tracing/langchain.mdx b/docs/platforms/javascript/common/agent-tracing/langchain.mdx index 031897e0ef722..604862dc704bd 100644 --- a/docs/platforms/javascript/common/agent-tracing/langchain.mdx +++ b/docs/platforms/javascript/common/agent-tracing/langchain.mdx @@ -91,7 +91,6 @@ The automatic instrumentation supports the following LangChain provider packages ## Supported Versions - `langchain`: `>=0.1.0 <2.0.0` -- `@langchain/core`: `>=0.1.0 <2.0.0` Automatic embeddings instrumentation supports these package versions: