From llm-observability
Adds OpenTelemetry-based tracing to LLM/AI-agent apps to capture prompts, tool calls, token usage, latency, and cost. Use when adding observability or debugging in production.
How this skill is triggered — by the user, by Claude, or both
Slash command
/llm-observability:instrument-llm-observabilityThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Add production-grade tracing to an LLM/agent app so every run is inspectable: prompts, tool calls, retrievals, token usage, latency, and cost per span.
Add production-grade tracing to an LLM/agent app so every run is inspectable: prompts, tool calls, retrievals, token usage, latency, and cost per span.
Emit gen_ai.* spans via an OTel instrumentation library, then point at any collector.
traceloop-sdk) or OpenInference (Arize) - both emit OTel-compatible LLM spans.OTEL_EXPORTER_OTLP_ENDPOINT).gen_ai.operation.name, tool spans).See references/opentelemetry.md for the exact span attributes to set and a copy-paste init.
Wrap the LLM client with the platform's tracer (e.g. track_openai(...), @observe, an OTel exporter to that backend). Prefer their auto-instrumentation over hand-rolled spans; add manual spans only for custom tool/retrieval steps the SDK can't see.
prompt_tokens/completion_tokens, latency.except that returns empty output hides the failure).Run one representative request and confirm the trace tree shows the full chain (parent → LLM/tool/retrieval children) with tokens + latency populated. If spans are missing, the instrumentation isn't wrapping that code path - instrument it manually.
Not sure which backend? See the sibling choose-observability-stack skill, or the curated list in this repo's README.
npx claudepluginhub contextjet-ai/awesome-llm-observabilityInstruments Python and TypeScript code with MLflow Tracing for observability. Useful when adding tracing to agents, LLM apps, or specific frameworks like LangChain, OpenAI, Gemini, DSPy, CrewAI, or AutoGen.
Exports raw OpenTelemetry traces from AI applications (LLM apps, agents, RAG pipelines, chatbots) to Confident AI's Observatory using OTLP/HTTP. Sets confident.* attributes on spans. Language-agnostic, no deepeval package required.