Skip to content

Tencent Trace is missing critical metrics and span attributes for agent-chat mode applications #28319

@minimAluminiumalism

Description

@minimAluminiumalism

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v1.10.0

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

Following metrics are missing in agent-chat mode of tencent trace.

  • gen_ai.client.operation.duration
  • gen_ai.server.time_to_first_token
  • gen_ai.streaming.time_to_generate

✔️ Expected Behavior

Agent-chat traces should have the same completeness as advanced-chat workflow traces:

  • Complete metrics collection
  • Dedicated LLM span with full attributes
  • Correct streaming detection

❌ Actual Behavior

  • Streaming requests are incorrectly marked as stream="false"
  • No LLM child span is created (unlike workflow LLM nodes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions