Arize 深度链接

为 traces、spans、sessions、datasets、labeling queues、evaluators 和 annotation configs 生成指向 Arize UI 的深度链接。

  • 需要 base64 编码的组织与空间 ID(org_idspace_id)以及资源特定 ID(如 trace_iddataset_id);原始数字 ID 会生成看似有效但返回 404 的 URL。
  • 为每种资源类型提供现成的 URL 模板,包括高亮特定 span(selectedSpanId)和链接到特定 evaluator 版本的选项;annotation configs 通过列表 URL 支持。
  • 处理关键的时间范围参数(startA/endA),优先级顺序为:复用用户提供的 URL 值、按 ±1 天填充 span start_time、或回退到最近 90 天;省略时默认 7 天窗口,可能导致旧 trace 显示“无近期数据”。
  • 包含常见问题(“无数据”、404、span 未高亮)的故障排查参考,并在未知时提供从浏览器 URL 获取正确 org_id 的指导。
  • arize-trace 技能互补,后者导出 span 数据(包括 trace_idspan_idstart_time)以用于链接生成。

Arize Link

Generate deep links to the Arize UI for traces, spans, sessions, datasets, labeling queues, evaluators, and annotation configs.

When to Use

  • User wants a link to a trace, span, session, dataset, labeling queue, evaluator, or annotation config
  • You have IDs from exported data or logs and need to link back to the UI
  • User asks to "open" or "view" any of the above in Arize

Required Inputs

Collect from the user or context (exported trace data, parsed URLs):

Always requiredResource-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.

URL Templates

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

Time Range

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:

  1. User-provided URL — extract and reuse startA/endA directly.
  2. Span start_time — pad ±1 day (or ±1 hour for a tighter window).
  3. Fallback — last 90 days (now - 90d to now).

Prefer tight windows; 90-day windows load slowly.

Instructions

  1. Gather IDs from user, exported data, or URL context.
  2. Verify all path IDs are base64-encoded.
  3. Determine startA/endA using the priority order above.
  4. Substitute into the appropriate template and present as a clickable markdown link.

Troubleshooting

ProblemSolution
"No data" / empty viewTrace outside time window — widen startA/endA (±1h → ±1d → 90d).
404ID wrong or not base64. Re-check org_id, space_id, project_id from the browser URL.
Span not highlightedspan_id may belong to a different trace. Verify against exported span data.
org_id unknownax CLI doesn't expose it. Ask user to copy from https://app.arize.com/organizations/{org_id}/spaces/{space_id}/….

Related Skills

  • arize-trace: Export spans to get trace_id, span_id, and start_time.

Examples

See references/EXAMPLES.md for a complete set of concrete URLs for every link type.

只读
技能数据
作者
github
GitHub 星标
37.5k
安装次数
992
数据来源
skills.sh
安装
$ npx skills add https://github.com/github/awesome-copilot --skill arize-link

在项目目录下的终端中运行此命令。