ai-llm-telemetry
Observe LLM applications and agents from their telemetry. Reads Opik (Comet) traces and spans, LiteLLM proxy spend logs, budgets and key limits, and…
от Navinspire-ia★ 37 звёзд на GitHub
Установить ai-llm-telemetry в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
AI and LLM Telemetry
Overview
This skill turns the telemetry emitted by LLM applications (traces, spans, spend logs, GenAI metrics) into answers about cost, usage, latency, tool behaviour and privacy. It knows three sources well: Opik from Comet for traces and evaluations, the LiteLLM proxy for spend, budgets and routing, and the OpenTelemetry GenAI semantic conventions used by vendor-neutral instrumentations. The default posture is read-only and evidence-based: query and export, compute from the data, cite request ids, trace ids and timestamps, and never change a budget, a key limit, a callback or a retention setting on a target system without the user's explicit approval.
When it applies
- A bill from OpenAI, Anthropic, Bedrock or Azure OpenAI is higher than expected and the user wants to know which model, team, user, key or day is responsible.
- An agent behaves strangely: too many tool calls, repeated identical calls, long chains, high failure rate on one tool, slow time to first token.
- A team wants an observability setup for a new LLM feature: Opik project, LiteLLM callbacks, OTel collector pipeline, budgets and alerts.
- A compliance or privacy review asks what prompt content is stored, where, for how long, and whether personal data is redacted.
- Evaluation results (feedback scores, experiments on datasets) must be correlated with production traces.
Hand over to observability-agent when the problem is infrastructure latency
unrelated to model calls, and to finops-analyst when the question is cloud
spend outside LLM providers.
Engines and sources
Opik (Comet)
- Instrumentation:
@opik.trackon functions,typeinllm,tool,general,guardrail; integrations for OpenAI, Anthropic, Bedrock, LangChain, LlamaIndex, CrewAI, OpenAI Agents. Configuration throughOPIK_API_KEY,OPIK_WORKSPACE,OPIK_PROJECT_NAME,OPIK_URL_OVERRIDE. - REST:
GET /api/v1/private/traces?project_name=<p>&page=1&size=500&filters=<json>,GET /api/v1/private/spans?project_name=<p>&type=tool&trace_id=<id>,POST /api/v1/private/traces/searchand/spans/searchwithlast_retrieved_idcursor,GET /api/v1/private/traces/statsfor aggregates. Responses are{page, size, total, content: [...]}. - Key fields:
usage.prompt_tokens,usage.completion_tokens,usage.total_tokens,total_estimated_cost,model,provider,error_info,thread_id,feedback_scores[].nameand.value,tags,metadata. - Full field list, filter grammar and the Langfuse, Arize Phoenix and Helicone
equivalents:
references/opik-api.md.
LiteLLM proxy
GET /spend/logs?start_date=YYYY-MM-DD&end_date=YYYY-MM-DDwith rowsrequest_id,call_type,api_key(hashed),spend,total_tokens,prompt_tokens,completion_tokens,startTime,endTime,completionStartTime,model,user,team_id,end_user,metadata,cache_hit,request_tags.GET /global/spend/report?start_date=&end_date=&group_by=team|customer|api_key,GET /global/spend/tags,GET /spend/tags,GET /global/activity.GET /key/info?key=,GET /team/info?team_id=,GET /user/info?user_id=returnspend,max_budget,budget_duration,budget_reset_at,soft_budget,rpm_limit,tpm_limit,model_max_budget.GET /model/infoforinput_cost_per_tokenandoutput_cost_per_token.config.yaml:litellm_settings.success_callback: ["opik", "langfuse", "otel"],failure_callback,turn_off_message_logging,cache,max_budget,budget_duration;environment_variables.OPIK_API_KEY,OPIK_PROJECT_NAME.- Details:
references/litellm-spend-api.md.
OpenTelemetry GenAI conventions
- Spans
chat <model>,embeddings <model>,execute_tool <tool>,invoke_agent <agent>; attributesgen_ai.system(orgen_ai.provider.name),gen_ai.operation.name,gen_ai.request.model,gen_ai.response.model,gen_ai.usage.input_tokens,gen_ai.usage.output_tokens,gen_ai.response.finish_reasons,gen_ai.tool.name,gen_ai.tool.call.id,error.type. - Content events (
gen_ai.content.prompt,gen_ai.user.message, ...) exist only whenOTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=true. - Metrics
gen_ai.client.token.usage,gen_ai.client.operation.duration,gen_ai.server.time_to_first_token. - Query in Tempo with TraceQL, in Prometheus with PromQL, in Datadog or
Grafana through the
connectorstool when the connector is configured. - Attribute tables, PromQL and collector redaction:
references/otel-genai-conventions.md.
Navin integration
- Kubernetes or cloud CLIs (reading the proxy config map, collector logs,
secrets metadata) go through the
infratool at observe level; prepare and execute levels are reserved for changes the user approved. - Datadog, Grafana, Slack, GitHub, Notion: use the
connectorstool for dashboards, alert history and delivery of the report. - Tokens (
OPIK_API_KEY,
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- examples/opik_spans.json
- examples/otel_genai_spans.json
- examples/spend_logs.json
- references/litellm-spend-api.md
- references/opik-api.md
- references/otel-genai-conventions.md
- scripts/spend_report.py
- scripts/tool_calls_audit.py
FAQ
Что делает скилл ai-llm-telemetry?
Observe LLM applications and agents from their telemetry. Reads Opik (Comet) traces and spans, LiteLLM proxy spend logs, budgets and key limits, and OpenTelemetry GenAI spans (gen_ai.* attributes) to compute cost per model, team, user and day, token percentiles, cache hit ratio, tool call frequency, failure rate and latency, time to first token, error and retry rates, cost anomalies and runaway tool loops. Bundled scripts aggregate JSON or JSONL exports offline. Use when the user asks to "how much did our LLM calls cost", "which team burns the most tokens", "audit the agent tool calls", "find runaway loops in traces", "set up Opik with LiteLLM", "is the LLM cache working", or when an AI feature bill, latency or error rate needs an explanation. In French "cout des appels LLM", "analyser les traces Opik", "audit des tool calls de l'agent".
Как установить скилл ai-llm-telemetry?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ai-llm-telemetry запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…