跳到正文
Skillpedia
连接器(MCP)40k · #7062

arize-instrumentation

它能做什么

这个工具可以帮你在 AI 应用中添加一套名为 Arize AX 的追踪(tracing)系统,让你看清楚应用内部是怎样运行的。

适用场景

  • ✓当你想为应用添加 Arize AX 追踪时。
  • ✓当你想从零开始搭建 LLM 可观测性时。
  • ✓当你想集成 OpenTelemetry 或 OpenInference 时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/arize-instrumentation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/arize-instrumentation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我用 Arize 在我的应用里设置追踪。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会先分析你的代码,了解它的运作方式,这一步不会修改任何内容。接着,它会提出需要做的修改并加以实现,在此之前会先征求你的确认。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Arize Instrumentation Skill

Use this skill when the user wants to add Arize AX tracing to their application. Follow the two-phase, agent-assisted flow from the Agent-Assisted Tracing Setup and the Arize AX Tracing — Agent Setup Prompt.

Quick start (for the user)

If the user asks you to "set up tracing" or "instrument my app with Arize", you can start with:

Follow the instructions from https://arize.com/docs/PROMPT.md and ask me questions as needed.

Then execute the two phases below.

Core principles

  • Prefer inspection over mutation — understand the codebase before changing it.
  • Do not change business logic — tracing is purely additive.
  • Use auto-instrumentation where available — add manual spans only for custom logic not covered by integrations.
  • Follow existing code style and project conventions.
  • Keep output concise and production-focused — do not generate extra documentation or summary files.
  • NEVER embed literal credential values in generated code — always reference environment variables (e.g., os.environ["ARIZE_API_KEY"], process.env.ARIZE_API_KEY). This includes API keys, space IDs, and any other secrets. The user sets these in their own environment; the agent must never output raw secret values.

Phase 0: Environment preflight

Before changing code:

  1. Confirm the repo/service scope is clear. For monorepos, do not assume the whole repo should be instrumented.
  2. Identify the local runtime surface you will need for verification:
    • package manager and app start command
    • whether the app is long-running, server-based, or a short-lived CLI/script
    • whether ax will be needed for post-change verification
  3. Do NOT proactively check ax installation or version. If ax is needed for verification later, just run it when the time comes. If it fails, see references/ax-profiles.md.
  4. Never silently replace a user-provided space ID, project name, or project ID. If the CLI, collector, and user input disagree, surface that mismatch as a concrete blocker.

Phase 1: Analysis (read-only)

Do not write any code or create any files during this phase.

Steps

  1. Check dependency manifests to detect stack:

    • Python: pyproject.toml, requirements.txt, setup.py, Pipfile
    • TypeScript/JavaScript: package.json
    • Java: pom.xml, build.gradle, build.gradle.kts
    • Go: go.mod
  2. Scan import statements in source files to confirm what is actually used.

  3. Check for existing tracing/OTel — look for TracerProvider, register(), opentelemetry imports, ARIZE_*, OTEL_*, OTLP_* env vars, or other observability config (Datadog, Honeycomb, etc.).

  4. Identify scope — for monorepos or multi-service projects, ask which service(s) to instrument.

What to identify

Item Examples
Language Python, TypeScript/JavaScript, Java, Go
Package manager pip/poetry/uv, npm/pnpm/yarn, maven/gradle, go modules
LLM providers OpenAI, Anthropic, LiteLLM, Bedrock, etc.
Frameworks LangChain, LangGraph, LlamaIndex, Vercel AI SDK, Mastra, etc.
Existing tracing Any OTel or vendor setup
Tool/function use LLM tool use, function calling, or custom tools the app executes (e.g. in an agent loop)

Key rule: When a framework is detected alongside an LLM provider, inspect the framework-specific tracing docs first and prefer the framework-native integration path when it already captures the model and tool spans you need. Add separate provider instrumentation only when the framework docs require it or when the framework-native integration leaves obvious gaps. If the app runs tools and the framework integration does not emit tool spans, add manual TOOL spans so each invocation appears with input/output (see Enriching traces below).

Phase 1 output

Return a concise summary:

  • Detected language, package manager, providers, frameworks
  • Proposed integration list (from the routing table in the docs)
  • Any existing OTel/tracing that needs consideration
  • If monorepo: which service(s) you propose to instrument
  • If the app uses LLM tool use / function calling: note that you will add manual CHAIN + TOOL spans so each tool call appears in the trace with input/output (avoids sparse traces).

…

常见问题

什么是追踪?

追踪就像一本详细的日志,记录你的应用经历的每一个步骤。这有助于了解运行情况、找到错误并优化性能。

什么是 Arize AX?

Arize AX 是一个平台,用于监控和理解 AI 应用的性能,并通过追踪提供洞察。

这个工具会修改我的核心代码吗?

不会。这个工具的设计目标是在不改变应用主要逻辑的前提下添加追踪,它只会加入监控相关的信息。

详情

作者的原始描述

Adds Arize AX tracing to an LLM application for the first time. Follows a two-phase agent-assisted flow to analyze the codebase then implement instrumentation after user confirmation. Use when the user wants to instrument their app, add tracing from scratch, set up LLM observability, integrate OpenTelemetry or openinference, or get started with Arize tracing.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7062
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能