Index of every page on this site: llms.txt
All skills
confident-ai avatar

/eval-trace

@1ae0870
Run it yourself

Capture and inspect a real AI application execution, or repair missing trace context before evaluation. Covers first local evidence and optional Confident AI tracing with confident-trace; not general infrastructure monitoring.

Use this Skill: https://skilld.dev/gh/confident-ai/eval-skills/eval-trace

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesintegrations.md

≈829 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Framework integrations

confident-trace instruments common SDKs and frameworks automatically once init() runs (called for you by setup_tracing() / setupTracing()). The table covers the frameworks we see most. For anything else, see the confident-trace README.

Python

Framework What to do
OpenAI, Anthropic, Google GenAI, AWS Bedrock (boto3) Nothing beyond init().
LangChain, LangGraph, Deep Agents Nothing beyond init(); the callback bridge is registered automatically.
LlamaIndex, CrewAI, Agno, smolagents Nothing beyond init(). Model calls come from the provider integration; framework steps come from the framework's own instrumentation.
OpenAI Agents SDK pip install "confident-trace[openai-agents]", then init().
Pydantic AI, Strands, Google ADK, Microsoft Agent Framework, AgentCore, LiveKit Agents, Claude Agent SDK Native OpenTelemetry; init() exports their spans. Some need the framework's own tracing switched on (check its docs).
LiteLLM, OpenRouter, Portkey Nothing beyond init(). Proxied gateways: pass litellm_proxy_urls=[...] (and similar) to init().

Limit what's instrumented with instrumentations=("openai", "langchain"). Pass instrumentations=() when another instrumentor already covers the SDK.

Node.js (22+)

Automatic mode needs both init() and the preload flag on the start command:

node --import confident-trace/register dist/index.js
node --import tsx --import confident-trace/register src/index.ts
Framework What to do
OpenAI, Anthropic, Google GenAI, Vercel AI SDK, LangChain, LangGraph, Mastra, OpenAI Agents init() + preload.
Bundled apps (Webpack, Vite, Next.js server bundles) The preload can't see bundled SDKs. Use init({ instrumentations: [] }) plus manual adapters: instrumentOpenAI(client) from confident-trace/openai, instrumentAnthropic(client) from confident-trace/anthropic.
LangChain / LangGraph (manual) new ConfidentLangChainCallbackHandler() from confident-trace/langchain, or new ConfidentLangGraphCallbackHandler() from confident-trace/langgraph, passed in callbacks.
Vercel AI SDK (manual) createVercelAITracer() from confident-trace/vercel-ai, passed to the AI SDK's OpenTelemetry integration.
OpenAI Agents (manual) setTraceProcessors([new ConfidentOpenAIAgentsProcessor()]) with the processor from confident-trace/openai-agents.
Existing OTel provider createSpanProcessor() from confident-trace/otel in the provider's spanProcessors.

runtime.getInstrumentationStatus() shows whether the preload registered and which integrations attached.

Conversations

Set the same thread_id (Python) / threadId (Node) on every turn of a conversation. In Python, ct.turn(thread_id=...) starts a fresh trace per turn; in Node, turn({ threadId }, fn) does the same.

Content capture

Content capture is on by default and truncated at 16 KiB per attribute. init(capture_content=False) / init({ captureContent: false }) records structure only. Redactors run before anything is serialized: Python takes a global redact= on init(); Node takes redact per span()/withSpan() scope, inherited by nested scopes.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The eval-trace skill provides a professional framework for capturing and inspecting AI application traces, supporting both local and managed workflows. It includes robust utilities for workspace setup, trace normalization, and historical data replaying. The skill demonstrates strong security awareness by emphasizing local-first processing, providing guidance on data redaction, and instructing agents to handle credentials securely via environment variables. Network operations and data transfers are restricted to the vendor's own documented endpoints and are integral to the skill's purpose.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 1ae0870. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago
metadata
{
  "author": "Confident AI",
  "version": "1.1.0"
}

README badge

README badge for confident-ai/eval-skills/eval-trace