← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Configuring OpenTelemetry Logs in Rails for Direct Export to Grafana Cloud

🔄 Updated 2h ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • OpenTelemetry Ruby SDK configured for direct log export to Grafana Cloud.
  • Bypassed OpenTelemetry Collector for simpler infrastructure.
  • Utilized OTLP for vendor-agnostic log format.
  • Requires specific OpenTelemetry gems for logging support.

Direct Export Approach

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 and Vendor Agnosticism

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.

Ruby SDK Setup for Logs

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 →

The daily brief

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.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~7 min · 6 stories · Aug 31

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

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.