langchain-ai / langsmith-sdk

LangSmith Client SDK Implementations
https://docs.smith.langchain.com/
MIT License
400 stars 74 forks source link

Issue: [LangSmith Website] memory leak on firefox #624

Closed ldorigo closed 1 month ago

ldorigo commented 6 months ago

Issue you'd like to raise.

image

Langsmith is always quite heavy, but sometimes the memory consumption goes way overboard and crashes my browser/entire laptop - see screenshot.

This isn't a new issue, just didn't report before.

Suggestion:

No response

hinthornw commented 6 months ago

Thanks for raising! This is when viewing the website? Or when running tracing in the browser?

ldorigo commented 6 months ago

When tracing. Seems to be mainly after it's left open in the background.

hinthornw commented 6 months ago

Got it - do you have any example code snippet of something you're tracing? is this with the traceable HOF in js?

jacoblee93 commented 6 months ago

@ldorigo just to be clear - you're running LLM calls/code in the browser and putting your LangSmith key there? Your screenshot above makes it look like you're viewing https://langchain.com.

ldorigo commented 5 months ago

Sorry, I misunderstood - it's while looking at traces in the langsmith web app that this happens. Wasn't aware you could run tracing in-browser so I assumed this is what you meant by "running tracing".