langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://smith.langchain.com/
MIT License
346 stars 59 forks source link

js[patch]: Store local storage instance on globalThis #793

Open jacoblee93 opened 2 weeks ago

jacoblee93 commented 2 weeks ago

Matches LangChain.js, lays groundwork for easier trace handoffs since both can now reference the same AsyncLocalStorage instance.

https://github.com/langchain-ai/langchainjs/blob/main/langchain-core/src/singletons/index.ts#L24

jacoblee93 commented 2 weeks ago

Wait, no we don't want to do this yet, sorry. Needs to be after a potential new JS tracer that uses a RunTree