Generates deep links to the Arize UI for traces, spans, sessions, datasets, labeling queues, evaluators, and annotation configs. Produces clickable URLs for sha
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-arize-link-cd29ef7a11d1 ,按照其中的说明把「arize-link」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Generate deep links to the Arize UI for traces, spans, sessions, datasets, labeling queues, evaluators, and annotation configs.
Collect from the user or context (exported trace data, parsed URLs):
| Always required | Resource-specific |
|---|---|
org_id (base64) | project_id + trace_id [+ span_id] — trace/span |
space_id (base64) | project_id + session_id — session |
dataset_id — dataset | |
queue_id — specific queue (omit for list) | |
evaluator_id [+ version] — evaluator |
All path IDs must be base64-encoded (characters: A-Za-z0-9+/=). A raw numeric ID produces a valid-looking URL that 404s. If the user provides a number, ask them to copy the ID directly from their Arize browser URL (https://app.arize.com/organizations/{org_id}/spaces/{space_id}/…). If you have a raw internal ID (e.g. Organization:1:abC1), base64-encode it before inserting into the URL.
Base URL: https://app.arize.com (override for on-prem)
Trace (add &selectedSpanId={span_id} to highlight a specific span):
{base_url}/organizations/{org_id}/spaces/{space_id}/projects/{project_id}?selectedTraceId={trace_id}&queryFilterA=&selectedTab=llmTracing&timeZoneA=America%2FLos_Angeles&startA={start_ms}&endA={end_ms}&envA=tracing&modelType=generative_llm
Session:
{base_url}/organizations/{org_id}/spaces/{space_id}/projects/{project_id}?selectedSessionId={session_id}&queryFilterA=&selectedTab=llmTracing&timeZoneA=America%2FLos_Angeles&startA={start_ms}&endA={end_ms}&envA=tracing&modelType=generative_llm
Dataset (selectedTab: examples or experiments):
{base_url}/organizations/{org_id}/spaces/{space_id}/datasets/{dataset_id}?selectedTab=examples
Queue list / specific queue:
{base_url}/organizations/{org_id}/spaces/{space_id}/queues
{base_url}/organizations/{org_id}/spaces/{space_id}/queues/{queue_id}
Evaluator (omit ?version=… for latest):
{base_url}/organizations/{org_id}/spaces/{space_id}/evaluators/{evaluator_id}
{base_url}/organizations/{org_id}/spaces/{space_id}/evaluators/{evaluator_id}?version={version_url_encoded}
The version value must be URL-encoded (e.g., trailing = → %3D).
Annotation configs:
{base_url}/organizations/{org_id}/spaces/{space_id}/annotation-configs
CRITICAL: startA and endA (epoch milliseconds) are required for trace/span/session links — omitting them defaults to the last 7 days and will show "no recent data" if the trace falls outside that window.
Priority order:
startA/endA directly.start_time — pad ±1 day (or ±1 hour for a tighter window).now - 90d to now).Prefer tight windows; 90-day windows load slowly.
startA/endA using the priority order above.| Problem | Solution |
|---|---|
| "No data" / empty view | Trace outside time window — widen startA/endA (±1h → ±1d → 90d). |
| 404 | ID wrong or not base64. Re-check org_id, space_id, project_id from the browser URL. |
| Span not highlighted | span_id may belong to a different trace. Verify against exported span data. |
org_id unknown | ax CLI doesn't expose it. Ask user to copy from https://app.arize.com/organizations/{org_id}/spaces/{space_id}/…. |
trace_id, span_id, and start_time.See references/EXAMPLES.md for a complete set of concrete URLs for every link type.