phoenix-tracing by arize-ai/phoenix
npx skills add https://github.com/arize-ai/phoenix --skill phoenix-tracing在 Phoenix 中使用 OpenInference 追踪为 LLM 应用添加插桩的全面指南。包含涵盖设置、插桩、跨度类型和生产部署的规则文件。
在以下情况下参考这些指南:
| 优先级 | 类别 | 描述 | 前缀 |
|---|---|---|---|
| 1 | 设置 | 安装和配置 | setup-* |
| 2 | 插桩 | 自动和手动追踪 | instrumentation-* |
| 3 | 跨度类型 | 9 种跨度类型及其属性 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
span-*| 4 | 组织 | 项目和会话 | projects-*, sessions-* |
| 5 | 增强 | 自定义元数据 | metadata-* |
| 6 | 生产 | 批处理、脱敏 | production-* |
| 7 | 反馈 | 标注和评估 | annotations-* |
setup-python - 安装 arize-phoenix-otel,配置端点setup-typescript - 安装 @arizeai/phoenix-otel,配置端点instrumentation-auto-python - 自动插桩 OpenAI、LangChain 等instrumentation-auto-typescript - 自动插桩支持的框架instrumentation-manual-python - 使用装饰器创建自定义跨度instrumentation-manual-typescript - 使用包装器创建自定义跨度span-llm - LLM API 调用(模型、令牌、消息、成本)span-chain - 多步骤工作流和管道span-retriever - 文档检索(文档、分数)span-tool - 函数/API 调用(名称、参数)span-agent - 多步骤推理智能体span-embedding - 向量生成span-reranker - 文档重排序span-guardrail - 安全检查span-evaluator - LLM 评估projects-python / projects-typescript - 按应用程序分组追踪sessions-python / sessions-typescript - 跟踪对话metadata-python / metadata-typescript - 自定义属性production-python / production-typescript - 批处理、PII 脱敏annotations-overview - 反馈概念annotations-python / annotations-typescript - 向跨度添加反馈fundamentals-overview - 追踪、跨度、属性基础知识fundamentals-required-attributes - 每种跨度类型所需的字段fundamentals-universal-attributes - 通用属性(user.id、session.id)fundamentals-flattening - JSON 扁平化规则attributes-messages - 聊天消息格式attributes-metadata - 自定义元数据模式attributes-graph - 智能体工作流属性attributes-exceptions - 错误追踪setup-{lang} → instrumentation-auto-{lang} → 检查 Phoenixsetup-{lang} → instrumentation-manual-{lang} → span-{type}sessions-{lang} 用于对话分组模式production-{lang} 用于批处理、脱敏和部署导航模式:
# 按类别前缀
rules/setup-* # 安装和配置
rules/instrumentation-* # 自动和手动追踪
rules/span-* # 跨度类型规范
rules/sessions-* # 会话追踪
rules/production-* # 生产部署
rules/fundamentals-* # 核心概念
rules/attributes-* # 属性规范
# 按语言
rules/*-python.md # Python 实现
rules/*-typescript.md # TypeScript 实现
阅读顺序:
setup-{lang} 开始instrumentation-auto-{lang} 或 instrumentation-manual-{lang}span-{type} 文件以了解特定操作fundamentals-* 文件以了解属性规范Phoenix 文档:
Python API 文档:
arize-phoenix-otel API 参考arize-phoenix-client API 参考TypeScript API 文档:
@arizeai/phoenix-otel、@arizeai/phoenix-client 及其他 TypeScript 包每周安装次数
107
代码仓库
GitHub 星标数
8.8K
首次出现
2026年1月26日
安全审计
安装于
gemini-cli91
github-copilot88
claude-code87
opencode87
codex85
cursor84
Comprehensive guide for instrumenting LLM applications with OpenInference tracing in Phoenix. Contains rule files covering setup, instrumentation, span types, and production deployment.
Reference these guidelines when:
| Priority | Category | Description | Prefix |
|---|---|---|---|
| 1 | Setup | Installation and configuration | setup-* |
| 2 | Instrumentation | Auto and manual tracing | instrumentation-* |
| 3 | Span Types | 9 span kinds with attributes | span-* |
| 4 | Organization | Projects and sessions | projects-*, sessions-* |
| 5 | Enrichment | Custom metadata | metadata-* |
| 6 | Production | Batch processing, masking | production-* |
| 7 | Feedback | Annotations and evaluation | annotations-* |
setup-python - Install arize-phoenix-otel, configure endpointsetup-typescript - Install @arizeai/phoenix-otel, configure endpointinstrumentation-auto-python - Auto-instrument OpenAI, LangChain, etc.instrumentation-auto-typescript - Auto-instrument supported frameworksinstrumentation-manual-python - Custom spans with decoratorsinstrumentation-manual-typescript - Custom spans with wrappersspan-llm - LLM API calls (model, tokens, messages, cost)span-chain - Multi-step workflows and pipelinesspan-retriever - Document retrieval (documents, scores)span-tool - Function/API calls (name, parameters)span-agent - Multi-step reasoning agentsspan-embedding - Vector generationspan-reranker - Document re-rankingspan-guardrail - Safety checksspan-evaluator - LLM evaluationprojects-python / projects-typescript - Group traces by applicationsessions-python / sessions-typescript - Track conversationsmetadata-python / metadata-typescript - Custom attributesproduction-python / production-typescript - Batch processing, PII maskingannotations-overview - Feedback conceptsannotations-python / annotations-typescript - Add feedback to spansfundamentals-overview - Traces, spans, attributes basicsfundamentals-required-attributes - Required fields per span typefundamentals-universal-attributes - Common attributes (user.id, session.id)fundamentals-flattening - JSON flattening rulesattributes-messages - Chat message formatattributes-metadata - Custom metadata schemaattributes-graph - Agent workflow attributesattributes-exceptions - Error trackingsetup-{lang} → instrumentation-auto-{lang} → Check Phoenixsetup-{lang} → instrumentation-manual-{lang} → span-{type}sessions-{lang} for conversation grouping patternsproduction-{lang} for batching, masking, and deploymentNavigation Patterns:
# By category prefix
rules/setup-* # Installation and configuration
rules/instrumentation-* # Auto and manual tracing
rules/span-* # Span type specifications
rules/sessions-* # Session tracking
rules/production-* # Production deployment
rules/fundamentals-* # Core concepts
rules/attributes-* # Attribute specifications
# By language
rules/*-python.md # Python implementations
rules/*-typescript.md # TypeScript implementations
Reading Order:
setup-{lang} for your languageinstrumentation-auto-{lang} OR instrumentation-manual-{lang}span-{type} files as needed for specific operationsfundamentals-* files for attribute specificationsPhoenix Documentation:
Python API Documentation:
arize-phoenix-otel API referencearize-phoenix-client API referenceTypeScript API Documentation:
@arizeai/phoenix-otel, @arizeai/phoenix-client, and other TypeScript packagesWeekly Installs
107
Repository
GitHub Stars
8.8K
First Seen
Jan 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
gemini-cli91
github-copilot88
claude-code87
opencode87
codex85
cursor84
如何创建AGENTS.md文件 - AI编码助手项目文档指南与模板
8,800 周安装
AI项目架构蓝图生成器:自动分析代码生成架构文档,支持.NET/Java/React等
8,700 周安装
Better Auth 电子邮件与密码最佳实践:安全登录、验证与密码重置配置指南
8,900 周安装
Defuddle CLI:网页内容提取工具,一键移除广告导航,节省AI令牌使用量
9,200 周安装
Penpot UI/UX 设计指南:使用 MCP 服务器和 AI 辅助工具进行专业设计
8,900 周安装
Microsoft Docs 文档搜索技能 - 一站式查询 Azure、.NET、VS Code、GitHub 等技术文档
9,000 周安装