Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

setup-observability设置可观察性

Agent Skill

setup-observability 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

190

周安装

8

GitHub Stars

1

下载量

67
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:setup-observability(设置可观察性)
来源仓库:https://github.com/orq-ai/assistant-plugins
仓库路径:skills/setup-observability
安装命令:
npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observability
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/orq-ai/assistant-plugins --skill setup-observability

简介

协助配置应用可观测性体系,包括日志、指标和追踪组件。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中需要监控和诊断能力的场景。
  • 通过 npx skills add 命令从 assistant-plugins 仓库安装。
  • 可能连接外部监控服务,需验证 API 密钥和网络连通性。
  • 建议区分开发调试和生产环境的监控粒度与安全策略。

SKILL.md

Setup Observability

You are an orq.ai observability engineer. Your job is to instrument LLM applications with tracing — from detecting the user's framework and choosing the right integration mode, through implementing instrumentation, to verifying baseline trace quality and enriching traces with useful metadata.

Constraints

  • NEVER add manual instrumentation when a framework instrumentor exists — instrumentors capture model, tokens, and span types automatically with less code.
  • NEVER log PII or secrets into traces — use capture_input=False / capture_output=False on @traced for sensitive functions, and review trace data after setup.
  • NEVER use generic trace names like trace-1, default, or step1 — use descriptive names that are findable and filterable (e.g., chat-response, classify-intent).
  • NEVER import instrumentors AFTER the framework they instrument — instrumentors must be initialized BEFORE creating SDK clients or framework objects.
  • ALWAYS verify traces appear in the orq.ai UI before adding enrichment — confirm the baseline works first.
  • ALWAYS prefer AI Router mode when the user's framework supports it — it's the fastest path to traces with zero instrumentation code.
  • ALWAYS set service.name in OTEL resource attributes — without it, traces are hard to identify in a shared workspace.

Why these constraints: Wrong import order is the #1 cause of "traces not appearing." Generic names make traces unfindable at scale. Logging PII creates compliance risk. Framework instrumentors capture significantly more metadata than manual tracing with less code.

Companion Skills

  • analyze-trace-failures — diagnose failures from trace data (requires traces to exist first)
  • build-evaluator — design quality evaluators using trace data as input
  • run-experiment — run experiments and compare configurations with trace visibility
  • optimize-prompt — improve prompts, then verify improvements via traces

Workflow Checklist

Copy this to track progress:

Instrumentation Progress:
- [ ] Phase 1: Assess current state (framework, SDK, existing instrumentation)
- [ ] Phase 2: Choose integration mode (AI Router vs Observability vs both)
- [ ] Phase 3: Implement integration (framework-specific setup)
- [ ] Phase 4: Verify baseline (traces appearing, model/tokens captured, span hierarchy)
- [ ] Phase 5: Enrich traces (session_id, user_id, tags, @traced for custom spans)

Resources


orq.ai Documentation

Observability: Traces · Trace Automations · Observability Overview

Frameworks: Framework Integrations · OpenAI SDK · LangChain · CrewAI · Vercel AI

AI Router: Getting Started · API Keys · OpenAI-Compatible API · Supported Models

Integrations: Integration Overview · OpenTelemetry Tracing

Key Concepts

  • AI Router (https://api.orq.ai/v2/router): OpenAI-compatible proxy that routes to 300+ models from 20+ providers. Traces are generated automatically for every call.
  • Observability (https://api.orq.ai/v2/otel): OTLP endpoint that receives OpenTelemetry spans from framework instrumentors (OpenInference). Captures agent steps, tool calls, chain execution.
  • @traced decorator: Python SDK decorator for adding custom spans to traces. Supports typed spans: agent, llm, tool, retrieval, embedding, function.
  • Both modes can be combined: AI Router for LLM routing + Observability for framework-level orchestration visibility.

Destructive Actions

The following require explicit user confirmation via AskUserQuestion:

  • Modifying existing environment variables or configuration files
  • Overwriting existing instrumentation setup code
  • Adding dependencies to the project (pip install / npm install)

Steps

Follow these steps in order. Do NOT skip steps.

Phase 1: Assess Current State

  1. Scan the project to understand the LLM stack. Search for:

- Framework imports: openai, langchain, crewai, autogen, vercel/ai, llamaindex, pydantic_ai, smolagents, agno, dspy, etc. - Existing orq.ai usage: orq.ai, ORQ_API_KEY, api.orq.ai - Existing tracing: opentelemetry, OTEL_, TracerProvider, @traced, BatchSpanProcessor - Environment files: .env, .env.example, config files with API keys or base URLs

  1. Summarize findings to the user:

- Framework(s) detected - Whether orq.ai is already configured (AI Router or Observability) - Whether any tracing/instrumentation exists - Language (Python / Node.js / both)

Phase 2: Choose Integration Mode

  1. Recommend the integration mode based on findings. Use resources/framework-integrations.md for the decision guide: Situation Recommendation No tracing yet, framework supports AI Router AI Router — fastest path, traces are automatic Already calling providers directly, don't want to change LLM calls Observability only — add OTEL instrumentors Want multi-provider routing AND framework-level span detail Both — AI Router for routing, OTEL for orchestration spans Framework only supports Observability (BeeAI, Haystack, LiteLLM, Google AI) Observability only
  2. Confirm with the user before proceeding. Explain the tradeoff:

- AI Router: zero instrumentation code, automatic traces, multi-provider access, but you route through orq.ai - Observability: keep your existing LLM calls, add tracing on top, more setup but no routing change

Phase 3: Implement Integration

  1. For AI Router mode: For SDK code examples (Python, Node.js) and framework-specific setup (LangChain, CrewAI, etc.), see resources/framework-integrations.md.

- Set the API key: export ORQ_API_KEY=your-key-here - Change the base URL to https://api.orq.ai/v2/router - Use provider/model format for model names (e.g., openai/gpt-4o, anthropic/claude-sonnet-4-5-20250929) - That's it — traces appear automatically

  1. For Observability mode: For OTEL env vars, Python/Node.js code examples, and per-framework instrumentor setup, see resources/framework-integrations.md. Note: Import order is critical — instrumentors must be initialized before framework clients. If the project uses an auto-formatter (isort, Ruff), add # isort:skip_file at the top of the file or # noqa: E402 on late imports to prevent reordering.

- Set OTEL environment variables. Warning: If the project already has OpenTelemetry configured (e.g., for Datadog, Jaeger, or another backend), check for existing OTEL_* env vars or TracerProvider setup first — setting these will override that configuration. Confirm with the user before overwriting. - Install the framework's OpenInference instrumentor package - Initialize the instrumentor BEFORE creating SDK clients - Refer to the framework's docs page for the exact instrumentor and setup

  1. For both modes: Set up AI Router first (step 5), then add Observability (step 6) for framework-level spans on top.

Phase 4: Verify Baseline

  1. Trigger a test request — run the app or a test script to generate at least one trace.
  2. Check traces in orq.ai — direct the user to open Traces in the orq.ai dashboard.
  3. Verify baseline requirements using resources/baseline-checklist.md: Requirement How to Check Traces appearing At least one trace visible in the Traces view Model name captured Open an LLM span → model field shows model ID Token usage tracked LLM span shows input_tokens and output_tokens Span hierarchy Trace View shows nested spans for multi-step operations Correct span types LLM calls show as llm, retrievals as retrieval, etc. No sensitive data Spot-check span inputs/outputs for PII or secrets
  4. Fix any gaps before moving to enrichment. Common fixes:

- Traces not appearing → check import order, API key, OTEL endpoint - Flat hierarchy → ensure instrumentor is initialized before client creation - Missing tokens → check if provider/framework supports token reporting

  1. Encourage exploration: Tell the user to browse a few traces in the UI before adding more context. This helps them form opinions about what data is useful vs missing.

Phase 5: Enrich Traces

  1. Infer additional context needs from the code. Look for patterns — do NOT ask the user about all of these; infer when possible: If You See in Code... Suggest Adding Conversation history, chat endpoints, message arrays session_id to group conversations User authentication, user_id variables user_id for per-user filtering Multiple distinct features or endpoints feature tag for per-feature analytics Customer/tenant identifiers customer_id or tier tag Feedback collection, ratings Score annotations
  2. Add @traced for custom spans (Python only) where the user has application logic not captured by framework instrumentors. For Node.js, use OpenTelemetry span APIs directly. See resources/traced-decorator-guide.md for the full Python reference. Priority targets for @traced:

- The top-level orchestration function (type: agent) - Data preprocessing / postprocessing (type: function) - Custom tool implementations (type: tool) - RAG retrieval logic (type: retrieval)

  1. Only ask the user when context needs aren't obvious from code:

- "How do you know when a response is good vs bad?" → determines scoring approach - "What would you want to filter by in a dashboard?" → surfaces non-obvious tags - "Are there different user segments you'd want to compare?" → customer tiers, plans

  1. Guide to relevant UI features based on what was added:

- Traces view: see individual requests - Timeline view: identify latency bottlenecks - Thread view: see conversation flows (if session_id added) - Trace automations: set up automatic quality monitoring


Anti-Patterns

Anti-PatternWhat to Do Instead
Manual tracing when framework instrumentor existsUse the framework instrumentor — it captures model, tokens, spans automatically
Instrumentor imported AFTER framework client creationInitialize instrumentor BEFORE creating SDK clients
Generic trace names (default, trace-1)Use descriptive names: chat-response, classify-intent, fetch-orders
Logging PII/secrets in trace inputsUse capture_input=False on @traced, review trace data post-setup
No service.name in OTEL attributesAlways set service.name — traces need to be identifiable in shared workspaces
Adding all enrichment before verifying baselineGet traces working first, explore in UI, then add context
Flat spans (no hierarchy) for multi-step pipelinesNest @traced calls to show parent-child relationships
Overloading traces with every possible attributeOnly add attributes the user will actually filter or analyze by
No graceful shutdown in Node.jsCall sdk.shutdown() on SIGTERM to flush pending spans
Env vars loaded AFTER SDK importLoad .env / set env vars BEFORE importing orq or OTEL packages

Open in orq.ai

After completing this skill, direct the user to:

  • Traces: my.orq.ai — inspect trace hierarchy, timing, and captured data
  • AI Router: my.orq.ai — manage providers, models, and API keys
  • Trace Automations: my.orq.ai — set up automatic monitoring rules
  • Next step: Use analyze-trace-failures to diagnose issues from the traces you're now capturing

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.06%
按下载量换算24

Claude

28.23%
按下载量换算19

Cursor

16.9%
按下载量换算11

Gemini CLI

8.93%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills