arize-span-routing

arize-span-routing is a skill for Claude Code from Arize-ai/arize-skills. It costs 72 tokens per session (1,709 once invoked), scanned A, original, MIT.

A Python setup for sending OpenTelemetry traces—records of what a service does—to the correct Arize space and project for each agent, team, tenant, or request. Arize is a platform for monitoring and evaluating AI applications.

In plain words
What is it for?
Use it in multi-tenant or multi-project Python services that need each operation's traces routed to its matching Arize destination.
Why use it?
It prevents traces from different customers or applications being mixed together, while avoiding guessed destinations when routing information is missing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the arize-skills plugin — 14 skills shipped together

not rated 50repo 2d ago A scan Socket: passSnyk: passSkillSpector: pass 72 tokens original MIT

Good fit Use it in multi-tenant or multi-project Python services that need each operation's traces routed to its matching Arize destination.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arize-ai/arize-skills/arize-span-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Arize-ai/arize-skills --skill arize-span-routing
Clone the repo
git clone --depth 1 https://github.com/Arize-ai/arize-skills

Made for: Claude Code.

Or install arize-skills, the plugin that ships this one along with the rest of its 14 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for arize-span-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/arize-ai/arize-skills/arize-span-routing/github.svg)](https://agentmods.dev/skills/arize-ai/arize-skills/arize-span-routing)
Your own site
<a href="https://agentmods.dev/skills/arize-ai/arize-skills/arize-span-routing"><img src="https://agentmods.dev/badge/skills/arize-ai/arize-skills/arize-span-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for arize-span-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/arize-ai/arize-skills/arize-span-routing"><img src="https://agentmods.dev/badge/skills/arize-ai/arize-skills/arize-span-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 22 Jul 2026
  • Snyk pass 22 Jul 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01709
Opus 5 $0.00036 $0.00855
Sonnet 5 $0.00014 $0.00342
Haiku 4.5 $0.00007 $0.00171

Measured 10d ago against content hash 70297cdeaca3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

arize-span-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/arize-span-routing/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Arize Span Routing Skill

Use this skill to send each traced operation from one Python service to its correct Arize space and project. Each operation must resolve to exactly one space_id and project_name before its first span starts.

Do not use this skill for ordinary single-project tracing; use arize-instrumentation. This skill does not reroute spans after export, backfill historical spans, create Arize spaces/projects, or invent a customer-specific metadata mapping.

Safety rules

  • Never guess a destination or silently use another tenant's destination.
  • Never embed API keys in code or ask users to paste keys into chat. Read ARIZE_API_KEY from the environment.
  • Preserve existing non-Arize exporters and processors. Remove or replace a fixed-destination Arize export path so routed spans are not also copied to that destination.
  • Missing, invalid, or unavailable routing metadata must leave the business operation running but its spans unexported to Arize. Run that operation under a fresh OpenTelemetry context so stale routing values cannot leak across tenants. Log a warning without including secrets or sensitive metadata values.
  • Use one API key that is authorized for every destination space. Stop and report a credential blocker if that is not true.

Phase 1: Inspect and define the contract

Read only until the routing contract is clear.

  1. Identify the exact Python service and entrypoint to change.
  2. Find current tracing initialization, provider/exporters, instrumentors, and client creation order.
  3. Find the request or agent-execution boundary that owns destination metadata.
  4. Identify the stable metadata field(s) and existing source of truth that resolve to:
    • Arize space_id
    • Arize project_name
  5. Check async tasks, thread pools, queues, or background workers that may outlive the request context.
  6. Find the app's test command and existing test style.

Inspect only the target app's configuration. Do not search unrelated repositories, sibling services, shell startup files, or arbitrary .env files for credentials.

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 165 lines · 72 tokens per session scan A 70297cdeaca3

Subscribe to this mod's changes

arize-span-routing is a skill published in the GitHub repository Arize-ai/arize-skills (50 stars, last pushed 2d ago), licensed MIT. It adds 72 tokens to every session and 1,709 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.