AGENT SKILL

openllmetry

Route OpenLLMetry Python SDK, GenAI instrumentation, semantic-convention, and repository-maintenance tasks.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
openllmetry
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Route OpenLLMetry Python SDK, GenAI instrumentation, semantic-convention, and repository-maintenance tasks.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

OpenLLMetry

Use this repo skill for the Python OpenLLMetry package suite: the Traceloop SDK, OpenTelemetry GenAI instrumentations, the opentelemetry.semconv_ai semantic-convention layer, and checkout-local package maintenance.

Read this skill when

  • You need to add OpenLLMetry tracing to a Python LLM, RAG, vector database, agent, MCP, or provider SDK application.
  • You need to choose between Traceloop.init(...) and direct OpenAIInstrumentor().instrument()-style setup.
  • You need exact OpenLLMetry semantic-convention constants, span attributes, event/message schemas, or legacy alias migration guidance.
  • You need to troubleshoot missing optional target libraries, no emitted spans, content tracing, metrics/logging, VCR cassette replay, or Nx/uv test commands.
  • You are editing an OpenLLMetry checkout and need package/test/source-script guidance.

Fast install/import checks

For application use, start with the SDK:

pip install traceloop-sdk

For direct wrapper use, install the instrumentation package and the target client library it wraps. Many packages declare the target library in an instruments optional extra, for example:

pip install 'opentelemetry-instrumentation-openai[instruments]'

Minimal imports:

from traceloop.sdk import Traceloop
from traceloop.sdk.decorators import workflow, task, agent, tool
from traceloop.sdk.instruments import Instruments
from opentelemetry.semconv_ai import SpanAttributes

Run scripts/check_openllmetry_env.py to check installed package metadata and safe imports without provider calls or network access.

Route by task

If the task is about... Read
SDK bootstrap, exporters/processors, decorators, manual LLM spans, association properties, content tracing, prompt/dataset/experiment/guardrail client surfaces sub-skills/sdk-and-tracing/SKILL.md
Direct provider/vector/framework/protocol instrumentors, SDK Instruments selection, optional target clients, duplicate/no-span wrapper troubleshooting sub-skills/instrumentations/SKILL.md
opentelemetry.semconv_ai, GenAI message schemas, provider names, finish reasons, LLM_* to GEN_AI_* migration, semconv compliance checks sub-skills/semantic-conventions/SKILL.md
Nx/uv package maintenance, focused test selection, VCR cassettes, source scripts, release/codegen cautions, package discovery in a checkout sub-skills/repo-development/SKILL.md

Shared references

Operating rules

  • Prefer no-network smoke checks and in-memory exporters before live provider calls.
  • Treat cloud/provider keys, VCR re-recording, vector services, local Ollama daemons, and model downloads as explicit prerequisites, not default verification steps.
  • Do not assume a missing provider client is an OpenLLMetry bug; many instrumentor modules require the target client package at import time.
  • Use TRACELOOP_TRACE_CONTENT=false to suppress prompt/completion/entity content when privacy matters.
  • In a checkout, use Nx for workspace orchestration and uv for package-local Python commands.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351