opik
Installation
SKILL.md
Opik SDK Reference
Opik is an open-source LLM observability platform. This skill covers the SDK: tracing, integrations, span types, and how to instrument code.
Core Concepts
Traces and Spans
A trace is a complete execution path (one user request → one response). Spans are individual operations within a trace, forming a hierarchy.
Span Types
| Type | Use For | Example |
|---|---|---|
general |
Custom operations, orchestration | Data processing, agent entry point |
llm |
LLM API calls | OpenAI completion, Anthropic message |
tool |
Tool/function execution, data retrieval | Web search, vector DB query, calculator |
guardrail |
Safety/validation checks | PII detection, content moderation |