Skip to content

Conversation

@hinthornw
Copy link
Contributor

No description provided.

@github-actions github-actions bot added langsmith For docs changes to LangSmith internal labels Dec 17, 2025
@github-actions
Copy link
Contributor

Mintlify preview ID generated: preview-wfhage-1766013107-bdcc989

Copy link
Contributor

@katmayb katmayb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a couple typos and some links, thanks!


Distributed tracing links runs across services using context propagation headers:

1. The **client** infers the trace context from the current run and sends it as HTTP headers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. The **client** infers the trace context from the current run and sends it as HTTP headers
1. The **client** infers the trace context from the current run and sends it as HTTP headers.

Distributed tracing links runs across services using context propagation headers:

1. The **client** infers the trace context from the current run and sends it as HTTP headers
2. The **server** reads the headers and adds them to the run's config and metadata as `langsmith-trace` and `langsmith-project` configurable values. You can choose to use thes to set the tracing context for a given run when your agent is used.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. The **server** reads the headers and adds them to the run's config and metadata as `langsmith-trace` and `langsmith-project` configurable values. You can choose to use thes to set the tracing context for a given run when your agent is used.
2. The **server** reads the headers and adds them to the run's config and metadata as `langsmith-trace` and `langsmith-project` configurable values. You can choose to use these to set the tracing context for a given run when your agent is used.

<Tabs>
<Tab title="RemoteGraph">

Set `distributed_tracing=True` when initializing `RemoteGraph`. This automatically propagates trace headers on all requests.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Set `distributed_tracing=True` when initializing `RemoteGraph`. This automatically propagates trace headers on all requests.
Set `distributed_tracing=True` when initializing @[`RemoteGraph`]. This automatically propagates trace headers on all requests.

description: Unify traces when calling your deployed Agent Server from another service using RemoteGraph or the SDK.
---

When you call a deployed Agent Server from another service, you can propagate trace context so that the entire request appears as a single unified trace in LangSmith. This uses LangSmith's [distributed tracing](/langsmith/distributed-tracing) capabilities, which propagate context via HTTP headers.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When you call a deployed Agent Server from another service, you can propagate trace context so that the entire request appears as a single unified trace in LangSmith. This uses LangSmith's [distributed tracing](/langsmith/distributed-tracing) capabilities, which propagate context via HTTP headers.
When you call a deployed [Agent Server](/langsmith/agent-server) from another service, you can propagate trace context so that the entire request appears as a single unified trace in LangSmith. This uses LangSmith's [distributed tracing](/langsmith/distributed-tracing) capabilities, which propagate context via HTTP headers.

</Tab>
<Tab title="SDK">

If you're using the LangGraph SDK directly, propagate trace headers manually using `run_tree.to_headers()`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If you're using the LangGraph SDK directly, propagate trace headers manually using `run_tree.to_headers()`:
If you're using the [LangGraph SDK](/langsmith/reference) directly, propagate trace headers manually using `run_tree.to_headers()`:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal langsmith For docs changes to LangSmith

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants