Request for Simplified Custom trace_id Implementation in CallbackHandler for LangServe
#4330
-
|
Hello everyone, I'm currently working with Here's what I've tried so far:
I am reaching out to ask if there is a simpler and more effective way to implement a custom Thank you for your assistance and looking forward to your feedback |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hi @wertycn, you could use the Langfuse Here on how to pass the trace_id using the decorator: https://langfuse.com/docs/sdk/python/decorators#set-parent-trace-id-or-parent-span-id Let me know if this would work in your case! |
Beta Was this translation helpful? Give feedback.
Hi @wertycn, you could use the Langfuse
@observe()decorator together with the callback handler to pass the trace_id name: https://langfuse.com/docs/sdk/python/decorators#langchainHere on how to pass the trace_id using the decorator: https://langfuse.com/docs/sdk/python/decorators#set-parent-trace-id-or-parent-span-id
Let me know if this would work in your case!