feat(callbacks_langfuse): expose trace id and observation id#906
Open
kayoch1n wants to merge 3 commits into
Open
feat(callbacks_langfuse): expose trace id and observation id#906kayoch1n wants to merge 3 commits into
kayoch1n wants to merge 3 commits into
Conversation
3 tasks
kayoch1n
force-pushed
the
feat/expose-langfuse-span-id
branch
3 times, most recently
from
July 11, 2026 13:36
98249b5 to
1fa4ef7
Compare
Contributor
Author
|
@mrh997 @shentongmartin hi, 是否有时间帮忙review一下? 我们的业务场景是这样的:我们有一些用opencode写的agent,我想在eino中编排这些agent,同时也能在langfuse上追踪。目前欠缺两个事情:
实现这个之后,就可以在同一条trace里追踪eino和opencode了 |
kayoch1n
force-pushed
the
feat/expose-langfuse-span-id
branch
2 times, most recently
from
July 20, 2026 03:31
a6f3473 to
99c0e25
Compare
kayoch1n
force-pushed
the
feat/expose-langfuse-span-id
branch
from
July 22, 2026 09:39
99c0e25 to
3016a70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
feat
Check the PR title.
(Optional) Translate the PR title into Chinese.
提供暴露 langfuse trace id 和 observation id的 API
(Optional) More detailed description for this PR(en: English/zh: Chinese).
en:
I am working on agents created by different languages and frameworks. Currently, both trace id and observation id are internally managed by eino-ext. When incooperated with agents NOT managed by eino, or even not written in golang, such as opencode and claude code, there is no way to attach their traces to eino agent's. Exposing the trace id and observation id makes this binding possible, producing a more comprehensive trace graph on langfuse
zh(optional):
目前 trace id 和 observation id 都是由 eino-ext 内部创建并管理的。当我想把其他非eino框架实现的agent,比如claude code或者opencode,编排到eino的工作流里的时候,我发现实际上是无法将它们的trace和eino的trace关联起来。
通过暴露 langfuse trace id 和 observation id,就可以将这些agent的trace挂到eino的observation之下,实现在同一条trace中展示所有agent的trace
(Optional) Which issue(s) this PR fixes:
(optional) The PR that updates user documentation: