Missing model information in llm span of Langfuse #5928

Closed
opened 2026-02-21 18:13:17 -05:00 by yindo · 2 comments
Owner

Originally created by @corelchen on GitHub (Oct 6, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Configure Langfuse in dify.
  2. Run the chat workflow app.
  3. View monitoring data in Langfuse, can't find model information in llm span.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @corelchen on GitHub (Oct 6, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Configure Langfuse in dify. 2. Run the chat workflow app. 3. View monitoring data in Langfuse, can't find model information in llm span. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:13:17 -05:00
yindo closed this issue 2026-02-21 18:13:17 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 6, 2024):

@corelchen Hello there! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you while we wait for a human maintainer.

I found a similar unsolved discussion titled "add self deploy llm model, add error" on the Dify GitHub discussions page. You might find it helpful to check it out for any related insights or updates [1].

Regarding your issue with missing model information in the LLM span of Langfuse, there are no specific configuration settings mentioned in the available documentation that need to be enabled for model information to be included in the LLM span data sent to Langfuse. However, Dify does provide logging and debugging information that can help trace the flow of model information to Langfuse. This includes using classes like LangfuseTrace, LangfuseSpan, and LangfuseGeneration which have fields for debugging and tracing purposes [2][3][4].

If you haven't already, you might want to check the logging and debugging information to see if there are any clues about why the model information is missing.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 6, 2024): <!-- Greeting --> @corelchen Hello there! I'm here to help you with any bugs, questions, or contributions. Let me know how I can assist you while we wait for a human maintainer. <!-- Answer --> I found a similar unsolved discussion titled "add self deploy llm model, add error" on the Dify GitHub discussions page. You might find it helpful to check it out for any related insights or updates <sup>[[1]](https://github.com/langgenius/dify/discussions/5985)</sup>. Regarding your issue with missing model information in the LLM span of Langfuse, there are no specific configuration settings mentioned in the available documentation that need to be enabled for model information to be included in the LLM span data sent to Langfuse. However, Dify does provide logging and debugging information that can help trace the flow of model information to Langfuse. This includes using classes like `LangfuseTrace`, `LangfuseSpan`, and `LangfuseGeneration` which have fields for debugging and tracing purposes <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/ops/langfuse_trace/entities/langfuse_trace_entity.py)</sup><sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/monitoring/integrate-external-ops-tools/README.md)</sup><sup>[[4]](https://github.com/langgenius/dify-docs/blob/main/en/guides/monitoring/integrate-external-ops-tools/integrate-langfuse.md)</sup>. If you haven't already, you might want to check the logging and debugging information to see if there are any clues about why the model information is missing. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@corelchen commented on GitHub (Oct 6, 2024):

I can fix this issue, I want to use field model_provider and model_name, is this ok?

@corelchen commented on GitHub (Oct 6, 2024): I can fix this issue, I want to use field `model_provider` and `model_name`, is this ok?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5928