Skip to content

Add Arize tracing samples - #365

Open
DABH wants to merge 2 commits into
mainfrom
arize-tracing
Open

Add Arize tracing samples#365
DABH wants to merge 2 commits into
mainfrom
arize-tracing

Conversation

@DABH

@DABH DABH commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Adds arize_tracing/, a sample that sends Temporal workflow traces to Arize Phoenix (self-hosted, one container) or Arize AX through the OpenTelemetry plugin, using the OpenInference conventions Arize renders. Companion to the Langfuse sample and to Arize's own Temporal guide.

Two scenarios share one telemetry module. ticket_triage/ keeps LLM calls in activities with the OpenInference OpenAI instrumentation, a custom span in workflow code, and a human approval via update. ticket_triage_agents/ runs the same flow on the OpenAI Agents SDK through OpenAIAgentsPlugin(use_otel_instrumentation=True). A small span processor gives Temporal's spans an OpenInference kind, sets the Arize session to the workflow ID, and records the activity attempt number.

verify_trace.py checks a trace through the Phoenix REST API: tree shape with span kinds, enrichment attributes, LLM token usage, activity attempts, and no duplicates. The README runbook reproduces replay stress, worker restart, activity retry, worker crash mid-activity, and reset; each was verified against Phoenix.

Tests run without Phoenix, Docker, or an API key, including under the time-skipping environment. Screenshots were taken with mocked LLM calls.

@DABH
DABH requested review from a team as code owners September 11, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant