public class SimpleTraceExample extends Object
展示基本的 span 创建和使用,包括: - 创建 span - 设置 input/output - 设置 model 信息 - 设置 tokens 信息 - 展示 LLM 调用的完整追踪流程
使用前请先设置以下环境变量: - COZELOOP_WORKSPACE_ID: 你的工作空间 ID - COZELOOP_API_TOKEN: 你的访问令牌
| Constructor and Description |
|---|
SimpleTraceExample() |
public static void main(String[] args)
Copyright © 2026. All rights reserved.