A team implemented OpenTelemetry for observability in a Rails project, opting for direct log export to Grafana Cloud using the OpenTelemetry Ruby SDK. This method avoids running a separate OpenTelemetry Collector process, which is typically used to batch and forward telemetry data.
The decision to bypass the Collector was made to simplify infrastructure, as the project's log volume is small enough for the SDK's built-in batching to suffice. The OpenTelemetry Collector remains a better choice for applications requiring buffering, sampling, or scrubbing outside the application.
OpenTelemetry generates logs, metrics, and traces in a standard, vendor-agnostic format called OTLP (OpenTelemetry Protocol). This standardization allows for future switching between backend vendors like Datadog, New Relic, or Grafana Cloud without requiring application code changes.
The modular nature of OpenTelemetry means each telemetry signal (logs, metrics, traces) can be adopted independently.
To enable OpenTelemetry logs in a Rails application, specific gems must be added to the Gemfile. These include "opentelemetry-sdk" for the core framework, "opentelemetry-logs-sdk" for logging support, "opentelemetry-exporter-otlp" and "opentelemetry-exporter-otlp-logs" for OTLP export, and "opentelemetry-instrumentation-all" and "opentelemetry-instrumentation-logger" for instrumentation and hooking into RubyLogger.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
A team configured OpenTelemetry Ruby SDK to export logs directly to Grafana Cloud from a Rails project, bypassing the OpenTelemetry Collector. This approach simplifies infrastructure for low log volumes by using the SDK's built-in batching and OTLP format.