Skip to content

Conversation

@edwardpwtsoi
Copy link

@edwardpwtsoi edwardpwtsoi commented Oct 21, 2025

for solving langfuse/langfuse#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 LangchainCallbackHandler in CallbackHandler.py when langfuse_trace_id is provided in metadata.

  • Behavior:
    • Adds remote trace attachment in LangchainCallbackHandler when langfuse_trace_id is in metadata and parent_run_id is None.
    • Modifies on_chain_start() to create a new observation with trace_context if langfuse_trace_id is provided.
  • Misc:
    • Addresses issue #7838 on GitHub.

This description was created by Ellipsis for fcc8185. You can customize this summary. It will automatically update as commits are pushed.

@CLAassistant
Copy link

CLAassistant commented Oct 21, 2025

CLA assistant check
All committers have signed the CLA.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Oct 21, 2025

Greptile encountered an error while reviewing this PR. Please reach out to support@greptile.com for assistance.

@hassiebp hassiebp self-requested a review October 21, 2025 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants