Skip to content

Add Arize tracing samples - #365

Draft
DABH wants to merge 3 commits into
mainfrom
arize-tracing
Draft

Add Arize tracing samples#365
DABH wants to merge 3 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, no spans with missing parents, 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; every case was verified live against Phoenix with real model calls, and the screenshots come from those runs.

The agents scenario documents a known SDK issue (temporalio/sdk-python#1852): a worker that runs both the workflow and its activities in one process exports the temporal:startActivity spans with a missing parent. Its worker has --role workflows|activities to run them as separate processes, which avoids it.

Tests run without Phoenix, Docker, or an API key, including under the time-skipping environment.

@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