Skip to content

[BUG] Report trace to open source Gazeloop using Python SDK, call tree to display exceptions #84

@flyJia

Description

@flyJia

📋 CheckList

  • I have searched existing issues to avoid duplicates
  • I am using a recently maintained version of Coze Loop
  • I have provided all required information
  • I understand this is a bug report and not a feature request
  • I have submitted this report in English (otherwise it will not be processed)

🐛 Bug Description

Image

接口返回trace数据: { "code": 0, "msg": "", "spans": [ { "custom_tags": { "mode": "large_text", "node_id": "6076665", "node_process_duration": "228.6", "product_id": "123456654321", "tokens": "0", "user_id": "123456" }, "duration": "1041", "input": "", "logic_delete_date": "1754725058044", "output": "", "parent_id": "0", "span_id": "3b631e351222d2fa", "span_name": "root_span", "span_type": "main_span", "started_at": "1754465857094", "status": "success", "status_code": 0, "system_tags": { "clip_fields": "[]", "runtime": "{"language":"python","library":null,"scene":"custom","library_version":null,"loop_sdk_version":"v0.1.0"}" }, "trace_id": "3b631e357ab5d93b3b631e351222d2fa", "type": "unknwon" }, { "attr_tos": { "input_data_url": "/cozeloop-minio/7533633794566258689/3b631e357ab5d93b3b631e351222d2fa_3b631e351222d2fa_input_text_large_text?X-Amz-Algorithm=AWS4-HMAC-SHA256\u0026X-Amz-Credential=root%2F20250806%2Fus-east-1%2Fs3%2Faws4_request\u0026X-Amz-Date=20250806T074212Z\u0026X-Amz-Expires=18000\u0026X-Amz-SignedHeaders=host\u0026X-Amz-Signature=d664af812d6ce7e9e0eeebee1c9b002880fd3c647dab7ca18d0081c72415d164", "output_data_url": "" }, "custom_tags": { "input_tokens": "232", "latency_first_resp": "1028", "model_name": "gpt-4-1106-preview", "model_provider": "openai", "output_tokens": "1211", "product_id": "123456654321", "start_time_first_resp": "1754465858136", "tokens": "1443", "user_id": "123456" }, "duration": "1028", "input": "你叫什么名字AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "logic_delete_date": "1754725058044", "output": "I'm a robot. I don't have a specific name. You can give me one.", "parent_id": "3b631e351222d2fa", "span_id": "3b631e351222d2fa", "span_name": "llmCall", "span_type": "model", "started_at": "1754465857107", "status": "success", "status_code": 0, "system_tags": { "clip_fields": "[]", "runtime": "{"language":"python","library":null,"scene":"custom","library_version":null,"loop_sdk_version":"v0.1.0"}" }, "trace_id": "3b631e357ab5d93b3b631e351222d2fa", "type": "model" } ], "traces_advance_info": { "tokens": { "input": "232", "output": "1211" }, "trace_id": "3b631e357ab5d93b3b631e351222d2fa" } }

🔄 Steps to Reproduce

1

✅ Expected Behavior

1

❌ Actual Behavior

1

🚨 Severity

None

🔧 Component

None

💻 Environment

No response

🔧 Go Environment

No response

📋 Logs

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions