8 Replies
how did you add the names to spans? I am using LangChain Expression Language and I am only seeing gabberish like
RunnableLambda
, RunnablePassthrough
, etc...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
)Yes, I am using the latest version. Here is like my trace view looks like:
Can you help me reproduce by sharing your code or is it sensitive?
Sure! It looks more or less like this. We use LCEC components in the chain
Tracking this here: https://github.com/langfuse/langfuse/issues/481
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 = ( ...
Thanks for sharing
Feel free to add your thoughts, that's super helpful when someone from the team/contributors picks it up