-
Notifications
You must be signed in to change notification settings - Fork 685
remove redundant codegroup for langsmith quickstart #1257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Mintlify preview ID generated: preview-mdrxyl-1762189387-e321a5d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR simplifies environment configuration sections by removing redundant code blocks and standardizing documentation format. The changes affect documentation for tracing with LangChain and LangGraph.
- Removes duplicate
CodeGroupsections for Python and TypeScript bash commands - Consolidates environment variable configuration into single bash code blocks with
wrapattribute - Adds indentation to content within
<Info>components
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/langsmith/trace-with-langgraph.mdx | Simplifies environment configuration sections (both "With LangChain" and "Without LangChain" sections) by removing duplicate bash code blocks and adding indentation to Info component content |
| src/langsmith/trace-with-langchain.mdx | Removes duplicate bash code blocks in environment configuration and adds indentation to Info component content |
| <Info> | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
|
|
||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
|
|
||
| See [this LangChain.js guide](https://js.langchain.com/docs/how_to/callbacks_serverless) for more information. | ||
| See [this LangChain.js guide](https://js.langchain.com/docs/how_to/callbacks_serverless) for more information. | ||
| </Info> |
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content within the <Info> component should not be indented. This is inconsistent with the established pattern used throughout the codebase (see src/langsmith/administration-overview.mdx, src/langsmith/env-var.mdx, src/langsmith/multi-turn-simulation.mdx, etc.). Remove the 4-space indentation from all lines within the <Info> tags.
| <Info> | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
|
|
||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
|
|
||
| See [this LangChain.js guide](https://js.langchain.com/docs/how_to/callbacks_serverless) for more information. | ||
| See [this LangChain.js guide](https://js.langchain.com/docs/how_to/callbacks_serverless) for more information. | ||
| </Info> |
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content within the <Info> component should not be indented. This is inconsistent with the established pattern used throughout the codebase. Remove the 4-space indentation from all lines within the <Info> tags.
| <Info> | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
| If you are using LangChain.js with LangSmith and are not in a serverless environment, we also recommend setting the following explicitly to reduce latency: | ||
|
|
||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=true` | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
| If you are in a serverless environment, we recommend setting the reverse to allow tracing to finish before your function ends: | ||
|
|
||
| `export LANGCHAIN_CALLBACKS_BACKGROUND=false` | ||
| </Info> |
Copilot
AI
Nov 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The content within the <Info> component should not be indented. This is inconsistent with the established pattern used throughout the codebase. Remove the 4-space indentation from all lines within the <Info> tags.
Content is identical