Marc
Marc12mo ago

good idea, done

good idea, done
No description
8 Replies
denis56
denis5610mo ago
how did you add the names to spans? I am using LangChain Expression Language and I am only seeing gabberish like RunnableLambda, RunnablePassthrough, etc...
Marc
Marc10mo ago
Are you on the latest version of the Python SDK? We once shipped an improvement for LCEL to fix this for some chains (this would then take the name of the chain/agent/tool, eg ConversationalRetrievalChain)
denis56
denis5610mo ago
Yes, I am using the latest version. Here is like my trace view looks like:
No description
Marc
Marc10mo ago
Can you help me reproduce by sharing your code or is it sensitive?
denis56
denis5610mo ago
Sure! It looks more or less like this. We use LCEC components in the chain
Marc
Marc10mo ago
GitHub
feat: Improvement of callback handler in LCEL (customization & read...
Describe the feature you'd like to request When using the the callback handler in Langchains LCEL chain.invoke(input, config={"callbacks":[handler]}) on a simple chain like chain = ( ...
Marc
Marc10mo ago
Thanks for sharing Feel free to add your thoughts, that's super helpful when someone from the team/contributors picks it up