feat: added remote trace attachment
for solving https://github.com/langfuse/langfuse/issues/7838
added remote trace attachment to langchain callback handler with langfuse_trace_id is provided in the config.metadata
[!IMPORTANT] Adds remote trace attachment to
LangchainCallbackHandlerinCallbackHandler.pywhenlangfuse_trace_idis provided in metadata.
- Behavior:
- Adds remote trace attachment in
LangchainCallbackHandlerwhenlangfuse_trace_idis inmetadataandparent_run_idisNone.- Modifies
on_chain_start()to create a new observation withtrace_contextiflangfuse_trace_idis provided.- Misc:
- Addresses issue #7838 on GitHub.
This description was created by
for fcc8185c9af745d788c9f14634a5760b9c65c2e0. You can customize this summary. It will automatically update as commits are pushed.
Greptile encountered an error while reviewing this PR. Please reach out to [email protected] for assistance.
Thanks a lot for your contribution! Closing this in favor of https://github.com/langfuse/langfuse-python/pull/1419