How we configured OpenTelemetry logs in Rails

SixPatterns shares how they added OpenTelemetry log export to a Rails app without a vendor lock-in, bypassing the OpenTelemetry Collector to send logs directly to Grafana Cloud. They detail the required gems, environment variables, and an initializer, plus two Ruby SDK bugs they found and fixed upstream: a dropped base path in the OTLP endpoint and mishandling of HTTP 204 responses.
A Collector is still the better choice if you need buffering, sampling, or scrubbing outside the app.