Development guide for the @arizeai/phoenix-client TypeScript SDK — run and resume experiments, manage OpenTelemetry tracer providers with stack-based attach/detach, and write vitest unit and integration tests. Use when adding features to phoenix-client, debugging experiment lifecycle or provider cleanup, modifying dataset/prompt/session/span APIs, or writing tests for the js/packages/phoenix-client/ directory.
73
—
Does it follow best practices?
Impact
100%
1.00xAverage score across 1 eval scenario
Passed
No known issues
Vitest unit tests for experiment tracing lifecycle
Test file location
100%
100%
Vitest mock of phoenix-otel
100%
100%
register() returns getTracer
100%
100%
register() returns forceFlush promise
100%
100%
register() returns shutdown promise
100%
100%
attachGlobalTracerProvider mock shape
100%
100%
register called twice
100%
100%
global: false assertion
100%
100%
Task phase projectName assertion
100%
100%
Eval phase projectName assertion
100%
100%
detach called for each handle
100%
100%
27a4ecc
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.