mcpField
P
phoenix-tracing

phoenix-tracing

github.com/githubDevelopment40.6k1.0k installsUpdated 1d ago
Repository

About phoenix-tracing

phoenix-tracing is a reference skill for instrumenting LLM applications with OpenInference tracing in Phoenix. It guides Python and TypeScript developers through setup, span conventions, production deployment, and trace analysis.

Key features

  1. 01Python and TypeScript setup guidance
  2. 02Automatic and manual instrumentation
  3. 03Nine span types and attributes
  4. 04Project and session organization
  5. 05Production batching and PII masking
  6. 06Span annotations and feedback

Use cases

  1. 01Set up tracing for an LLM application
  2. 02Add custom spans to model operations
  3. 03Group traces by project or conversation
  4. 04Prepare tracing for production deployment

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/github/awesome-copilot --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-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-embedding.md
span-evaluator.md
span-guardrail.md
span-llm.md
span-reranker.md
span-retriever.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
references/attributes-*         # Attribute specifications

# 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