Skip to main content
The openinference-semantic-conventions package provides Java constants for OpenInference semantic conventions, enabling consistent instrumentation across AI/ML applications.

Installation

Package Structure

All semantic conventions are defined in the com.arize.semconv.trace.SemanticConventions class.

Span Kinds

OpenInference defines specialized span kinds for AI operations:

LLM Attributes

Basic LLM Attributes

Token Counts

Cost Tracking

Message Attributes

Tool Call Attributes

Retrieval Attributes

Reranker Attributes

Embedding Attributes

Input/Output Attributes

Session and User Tracking

Prompt Template Attributes

Multimodal Attributes

Agent and Graph Attributes

Enums

LLMSystem

LLMProvider

MimeType

Class Reference

Main Class: com.arize.semconv.trace.SemanticConventions Related Classes:
  • com.arize.semconv.trace.SemanticResourceAttributes

Next Steps