Catalog
github/phoenix-tracing

github

phoenix-tracing

OpenInference semantic conventions and instrumentation for Phoenix AI observability. Use when implementing LLM tracing, creating custom spans, or deploying to production.

globalApache-2.0Requires Phoenix server. Python skills need arize-phoenix-otel; TypeScript skills need @arizeai/phoenix-otel.
author:oss@arize.com
version:1.0.0
languages:Python, TypeScript
New~1.6k
v1.0Saved Jun 26, 2026

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

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-*

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
Files32
32 files · 79.9 KB

Select a file to preview

Overall Score

87/100

Grade

A

Excellent

Safety

88

Quality

89

Clarity

87

Completeness

82

Summary

Phoenix Tracing is a comprehensive reference skill for instrumenting LLM applications with OpenInference semantic conventions. It provides language-agnostic setup guides, span kind specifications, instrumentation patterns, and production deployment guidance for both Python and TypeScript ecosystems. The skill is organized hierarchically by category (setup, instrumentation, span types, organization, enrichment, production, feedback) with each reference file targeting specific use cases.

Static Analysis Findings

1 finding

Patterns detected by deterministic static analysis before AI scoring. Hover over any finding code for detailed information and remediation guidance.

Credential Exposure
SEC-020Direct .env File Access5x in 3 files

Direct .env file access

references/sessions-typescript.md.env2x
references/setup-typescript.md.env2x
references/projects-typescript.md.env

Detected Capabilities

file readingcode examples and reference documentationconfiguration guidanceenvironment variable documentationAPI specification reference

Trigger Keywords

Phrases that MCP clients use to match this skill to user intent.

implement llm tracingphoenix instrumentationopeninference spanscustom span creationtrace session trackingproduction tracing deploymentrag pipeline observabilityagent workflow tracing

Risk Signals

INFO

Direct .env file access

references/sessions-typescript.md
INFO

Direct .env file access

references/setup-typescript.md
INFO

Direct .env file access

references/projects-typescript.md

Referenced Domains

External domains referenced in skill content, detected by static analysis.

api.weather.comarize-ai.github.ioarize-phoenix.readthedocs.iodocs.arize.comexample.comgithub.comlocalhostopentelemetry.io

Use Cases

  • Set up Phoenix tracing in Python or TypeScript applications
  • Implement auto-instrumentation for LLM frameworks (LangChain, OpenAI SDK)
  • Create custom spans for business logic and multi-step workflows
  • Track user sessions and multi-turn conversations
  • Monitor LLM costs and token usage
  • Add PII masking and data protection in production
  • Add human and automated feedback to traces for evaluation
  • Query and analyze trace data with OpenInference attributes

Quality Notes

  • Excellent hierarchical organization with clear prefixes (setup-, instrumentation-, span-, etc.) making navigation intuitive
  • Comprehensive reference table in SKILL.md with priorities and descriptions enables quick discovery
  • Code examples in every reference file are practical and directly executable
  • Language-specific variants (Python/TypeScript) for all major workflows reduce ambiguity
  • Production guidance includes critical operational patterns (batching, shutdown handling, PII masking) with clear precedence rules
  • Clear distinction between auto-instrumentation and manual instrumentation patterns with documented trade-offs
  • Flattening convention documentation is essential for developers understanding attribute naming
  • Consistent use of JSON examples for span attributes aids clarity
  • Some files have minimal content (span-agent.md) but this is intentional for optional span kinds
  • Anti-pattern examples (e.g., span wrappers in sessions-typescript.md) guide developers away from common mistakes
Model: claude-haiku-4-5-20251001Analyzed: Jun 26, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Add github/phoenix-tracing to your library

Command Palette

Search for a command to run...