The opentelemetry-api gem defines the core OpenTelemetry interfaces for Ruby applications. Using opentelemetry-api, a library or application can code against the OpenTelemetry interfaces to produce telemetry data such as distributed traces and metrics.