Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/platforms/javascript/common/agent-tracing/langchain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -82,3 +91,14 @@ The automatic instrumentation supports the following LangChain provider packages
## Supported Versions

- `langchain`: `>=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.
Loading