Dan
Dan4w ago

Dan - I am using the decorator to track a custo...

I am using the decorator to track a custom function within a trace that has a generation that isn’t supported by langfuse. It’s tracking in Langfuse, but it’s showing up as a separate trace form the rest of my Langchain Chain. Is there a way to add this to the current trace instead of creating a new trace just for this step in the chain?
Solution:
Yes! I'd recommend to wrap the outer function with observe(). Have a look here for an example: https://langfuse.com/docs/integrations/langchain/tracing#interoperability
Open Source Observability for LangChain - Langfuse
Open source tracing and monitoring for your LangChain application. Python and JS/TS. Automatically capture rich traces and metrics and evaluate outputs.
Jump to solution
1 Reply
Solution
Marc
Marc4w ago
Yes! I'd recommend to wrap the outer function with observe(). Have a look here for an example: https://langfuse.com/docs/integrations/langchain/tracing#interoperability
Open Source Observability for LangChain - Langfuse
Open source tracing and monitoring for your LangChain application. Python and JS/TS. Automatically capture rich traces and metrics and evaluate outputs.