feat(langfuse): 支持用户自定义attribute上报 - #295
Merged
Merged
Conversation
问题:使用langfuse插件上报时,用户在span上设置的attribute没有携带到最终上报数据中,导致用户无法观测自定义埋点 解决方案:langfuse上报时保留用户自定义的attribute,带langfuse前缀的原样透传,其他自定义字段收进metadata便于观测
Contributor
AI Code Review我已审查 发现的问题
|
raychen911
approved these changes
Aug 13, 2026
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.
问题
使用 langfuse 插件上报时,用户在 span 上设置的自定义 attribute 没有携带到最终上报数据中,导致用户无法观测自定义埋点。
解决方案
langfuse 上报时保留用户自定义的 attribute:带 langfuse 前缀的 key 原样透传,其他自定义 key 收进 metadata 便于观测。