What is the OpenInference Specification?
mainOpenInference is a semantic convention specification for AI application observability, built on top of OpenTelemetry. It standardizes how AI-specific workloads—such as LLM calls, agent reasoning, tool invocations, and retrieval operations—are represented as distributed traces.
Because OpenTelemetry's default attribute model is generic, OpenInference provides a concrete schema and span-kind taxonomy to handle AI-specific requirements like:
- Structured inputs/outputs: Handling multi-turn messages and multimodal content.
- Token economics: Tracking prompt, completion, and reasoning token counts.
- Agentic control flow: Providing consistent identity for reasoning loops and tool calls.
- Privacy: Enabling granular masking of sensitive prompt/completion fields.
- Quality feedback: Associating scores and labels from human or LLM judges with specific operations.