mcpField
P
phoenix-tracing

phoenix-tracing

github.com/arize-aiDevelopment12.0k1.7k installsUpdated today
Repository

About phoenix-tracing

phoenix-tracing is a reference skill for instrumenting LLM applications with OpenInference tracing in Phoenix. It helps developers configure tracing, define spans, and prepare trace data for production analysis across Python and TypeScript.

Key features

  1. 01Python and TypeScript setup guidance
  2. 02Automatic and manual instrumentation
  3. 03Span types and attribute schemas
  4. 04Projects, sessions, and metadata
  5. 05Production batching and PII masking
  6. 06Span annotations and feedback

Use cases

  1. 01Adding tracing to a Python or TypeScript LLM application
  2. 02Creating custom spans for LLM operations
  3. 03Grouping traces by project or conversation
  4. 04Preparing trace collection for production

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/arize-ai/phoenix --skill phoenix-tracing

After installing, type/phoenix-tracingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
annotations-overview.md
annotations-python.md
annotations-typescript.md
fundamentals-flattening.md
fundamentals-overview.md
fundamentals-required-attributes.md
fundamentals-universal-attributes.md
instrumentation-atif-python.md
instrumentation-auto-python.md
instrumentation-auto-typescript.md
instrumentation-manual-python.md
instrumentation-manual-typescript.md
metadata-python.md
metadata-typescript.md
production-python.md
production-typescript.md
projects-python.md
projects-typescript.md
sessions-python.md
sessions-typescript.md
setup-python.md
setup-typescript.md
span-agent.md
span-chain.md
span-decision.md
span-embedding.md
span-evaluator.md
span-guardrail.md
span-llm.md

Details

From the project README

Phoenix Tracing

Comprehensive guide for instrumenting LLM applications with OpenInference tracing in Phoenix. Contains reference files covering setup, instrumentation, span types, and production deployment.

When to Apply

Reference these guidelines when:

  • Setting up Phoenix tracing (Python or TypeScript)
  • Creating custom spans for LLM operations
  • Adding attributes following OpenInference conventions
  • Deploying tracing to production
  • Querying and analyzing trace data

Reference Categories

PriorityCategoryDescriptionPrefix
1SetupInstallation and configurationsetup-*
2InstrumentationAuto and manual tracinginstrumentation-*
3Span Types9 span kinds with attributesspan-*
4OrganizationProjects and sessionsprojects-*, sessions-*
5EnrichmentCustom metadatametadata-*
6ProductionBatch processing, maskingproduction-*
7FeedbackAnnotations and evaluationannotations-*

Quick Reference

1. Setup (START HERE)
2. Instrumentation
3. Span Types (with full attribute schemas)
4. Organization
5. Enrichment
6. Production (CRITICAL)
7. Feedback
Reference Files

Common Workflows

  • Quick Start: setup-{lang} → instrumentation-auto-{lang} → Check Phoenix
  • Custom Spans: setup-{lang} → instrumentation-manual-{lang} → span-{type}
  • Session Tracking: sessions-{lang} for conversation grouping patterns
  • Production: production-{lang} for batching, masking, and deployment

How to Use This Skill

Navigation Patterns:

# By category prefix
references/setup-*              # Installation and configuration
references/instrumentation-*    # Auto and manual tracing
references/span-*               # Span type specifications
references/sessions-*           # Session tracking
references/production-*         # Production deployment
references/fundamentals-*       # Core concepts

# By language
references/*-python.md          # Python implementations
references/*-typescript.md      # TypeScript implementations

Reading Order:

  1. Start with setup-{lang} for your language
  2. Choose instrumentation-auto-{lang} OR instrumentation-manual-{lang}
  3. Reference span-{type} files as needed for specific operations
  4. See fundamentals-* files for attribute specifications

References

Phoenix Documentation:

Python API Documentation:

TypeScript API Documentation:

  • TypeScript Packages - @arizeai/phoenix-otel, @arizeai/phoenix-client, and other TypeScript packages

Comments

Markdown supported