Skip to content

Conversation

@mdrxy
Copy link
Collaborator

@mdrxy mdrxy commented Nov 3, 2025

Content is identical

Copilot AI review requested due to automatic review settings November 3, 2025 17:02
@mdrxy mdrxy requested a review from katmayb as a code owner November 3, 2025 17:02
@github-actions github-actions bot added the langsmith For docs changes to LangSmith label Nov 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Mintlify preview ID generated: preview-mdrxyl-1762189387-e321a5d

Copy link
Contributor

Copilot AI left a 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 CodeGroup sections for Python and TypeScript bash commands
  • Consolidates environment variable configuration into single bash code blocks with wrap attribute
  • 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

Comment on lines 51 to 61
<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>
Copy link

Copilot AI Nov 3, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines 240 to 250
<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>
Copy link

Copilot AI Nov 3, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines 47 to 55
<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>
Copy link

Copilot AI Nov 3, 2025

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.

Copilot uses AI. Check for mistakes.
@mdrxy mdrxy changed the title remove redundant codegroup for langamith quickstart remove redundant codegroup for langsmith quickstart Nov 3, 2025
@mdrxy mdrxy merged commit c49447b into main Nov 3, 2025
17 checks passed
@mdrxy mdrxy deleted the mdrxy/ls-redundant-cg branch November 3, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langsmith For docs changes to LangSmith

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants