Skip to main content
ClaudeWave
EN, English
Skill12k repo starsupdated 4d ago

phoenix-otel-development

Phoenix OTel Development provides the OpenTelemetry registration and provider lifecycle management layer for Phoenix, serving as the centralized configuration source that other packages delegate to rather than importing OpenTelemetry directly. Use this when implementing OTel provider attachment, detachment, span processor setup, or testing provider lifecycle and span export functionality within the Phoenix ecosystem.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/Arize-ai/phoenix /tmp/phoenix-otel-development && cp -r /tmp/phoenix-otel-development/js/packages/phoenix-otel/.agents/skills/phoenix-otel-development ~/.claude/skills/phoenix-otel-development
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Phoenix OTel Development

OpenTelemetry registration and provider lifecycle layer for Phoenix. Single source of truth for OTel configuration — other Phoenix packages delegate here rather than importing OTel packages directly.

Read existing code in the directory you're working in before writing new code.

## Rule Files

| Rule file                            | When to read                                                          |
| ------------------------------------ | --------------------------------------------------------------------- |
| `rules/global-provider-lifecycle.md` | Global provider attachment, detachment, snapshot/restore, mount stack |
| `rules/register-api.md`              | `register()`, span processor setup, public API surface                |
| `rules/testing.md`                   | Tests for provider lifecycle, registration, span export               |

## Build and Test

```bash
cd js/
pnpm --filter phoenix-otel test
```

Dual-module output (CJS + ESM). Tests use **vitest**.