All skills
github avatar

/phoenix-tracing

@4214189 official
by githubgithub/awesome-copilot40k stars
5,040

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

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/phoenix-tracing

This session only. Nothing lands on disk.

referencesannotations-overview.md

≈979 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Annotations Overview

Annotations allow you to add human or automated feedback to traces, spans, documents, and sessions. Annotations are essential for evaluation, quality assessment, and building training datasets.

Annotation Types

Phoenix supports four types of annotations:

Type Target Purpose Example Use Case
Span Annotation Individual span Feedback on a specific operation "This LLM response was accurate"
Document Annotation Document within a RETRIEVER span Feedback on retrieved document relevance "This document was not helpful"
Trace Annotation Entire trace Feedback on end-to-end interaction "User was satisfied with result"
Session Annotation User session Feedback on multi-turn conversation "Session ended successfully"

Annotation Fields

Every annotation has these fields:

Required Fields

Field Type Description
Entity ID String ID of the target entity (span_id, trace_id, session_id, or document_position)
name String Annotation name/label (e.g., "quality", "relevance", "helpfulness")

Result Fields (At Least One Required)

Field Type Description
label String (optional) Categorical value (e.g., "good", "bad", "relevant", "irrelevant")
score Float (optional) Numeric value (typically 0-1, but can be any range)
explanation String (optional) Free-text explanation of the annotation

At least one of label, score, or explanation must be provided.

Optional Fields

Field Type Description
annotator_kind String Who created this annotation: "HUMAN", "LLM", or "CODE" (default: "HUMAN")
identifier String Unique identifier for upsert behavior (updates existing if same name+entity+identifier)
metadata Object Custom metadata as key-value pairs

Annotator Kinds

Kind Description Example
HUMAN Manual feedback from a person User ratings, expert labels
LLM Automated feedback from an LLM GPT-4 evaluating response quality
CODE Automated feedback from code Rule-based checks, heuristics

Examples

Quality Assessment:

  • quality - Overall quality (label: good/fair/poor, score: 0-1)
  • correctness - Factual accuracy (label: correct/incorrect, score: 0-1)
  • helpfulness - User satisfaction (label: helpful/not_helpful, score: 0-1)

RAG-Specific:

  • relevance - Document relevance to query (label: relevant/irrelevant, score: 0-1)
  • faithfulness - Answer grounded in context (label: faithful/unfaithful, score: 0-1)

Safety:

  • toxicity - Contains harmful content (score: 0-1)
  • pii_detected - Contains personally identifiable information (label: yes/no)

Source: SKILL.md on GitHub

No alerts9d4 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    The phoenix-tracing skill provides comprehensive documentation and implementation guides for instrumenting LLM applications with Phoenix and OpenInference semantic conventions. It covers setup, manual and auto-instrumentation, and production best practices for both Python and TypeScript, with a strong focus on secure data handling and PII masking.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 4214189. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
Other metadata
compatibility
Requires Phoenix server. Python skills need arize-phoenix-otel; TypeScript skills need @arizeai/phoenix-otel.
metadata
{
  "author": "oss@arize.com",
  "version": "1.0.0",
  "languages": "Python, TypeScript"
}
  • Python
  • TypeScript
  • phoenix
  • tracing
  • openinference
  • llm-observability
  • instrumentation
  • otel
  • arize

README badge

README badge for github/awesome-copilot/phoenix-tracing

Instruments LLM applications with OpenInference tracing in Phoenix, supporting auto-instrumentation of frameworks like OpenAI and LangChain or custom manual spans. Covers setup, span types (LLM calls, retrievers, agents, evaluators), production deployment with PII masking, and feedback annotation in Python and TypeScript.

Generated from the current SKILL.md.

Does this skill work with both Python and TypeScript?
Yes. The skill provides separate setup, instrumentation, and production guides for both Python (arize-phoenix-otel) and TypeScript (@arizeai/phoenix-otel).
What do I need to install to use this skill?
For Python: arize-phoenix-otel package. For TypeScript: @arizeai/phoenix-otel package. Both require a running Phoenix server endpoint.
Can I auto-instrument frameworks like OpenAI or LangChain?
Yes. The skill includes instrumentation-auto-{lang} references that cover auto-instrumentation for supported frameworks in both languages.
How do I track custom spans for my own operations?
Use the instrumentation-manual-{lang} references to create custom spans with decorators (Python) or wrappers (TypeScript), then refer to span-{type} files for the appropriate attribute schema.
Does this skill cover production deployment concerns?
Yes. The production-{lang} references address batch processing, PII masking, and deployment patterns for production environments.

Generated from the current SKILL.md. These answers refresh after source changes.