Skip to content

AI-338: drive langsmith workflow tracing from the SDK-provided AsyncLocalStorage#2217

Open
xumaple wants to merge 1 commit into
mainfrom
maplexu/AI-338-langsmith-runtime-als
Open

AI-338: drive langsmith workflow tracing from the SDK-provided AsyncLocalStorage#2217
xumaple wants to merge 1 commit into
mainfrom
maplexu/AI-338-langsmith-runtime-als

Conversation

@xumaple

@xumaple xumaple commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Replaces the hand-rolled synchronous context provider in the LangSmith workflow interceptor with the AsyncLocalStorage the worker injects onto the workflow-sandbox global, so trace context propagates across awaits and Promise.all fan-out and stays deterministic under replay. The node:async_hooks bundle rewrite now targets a small shim that re-exports that global.

…ocalStorage

Replace the hand-rolled synchronous context provider in the workflow isolate with
the AsyncLocalStorage the worker injects onto the sandbox global, so LangSmith
trace context propagates across awaits and Promise.all fan-out and stays
deterministic under replay. The node:async_hooks bundler rewrite now targets a
small shim that re-exports that global.
@xumaple
xumaple requested a review from a team as a code owner July 15, 2026 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant