michal-kazmierczak/opentelemetry-rails-example
18-Jul-2025 12
A reference repository for instrumenting Rails apps with observability, using self-hosted, open-source tools rather than commercial observability platforms. It’s intended primarily for testing, experimentation, and debugging - not as an ultimate guidance for production setups.
It's opinionated in the way that included libraries and solutions do have alternatives. The goal is to stay aligned with Open Source and Open Standards. Suggestions and discussions around alternative approaches are welcome.
The stack is available in two forms:
as a Kamal deployment - see rails_app/config/deploy.yml
as a Docker Compose - see docker-compose.yml
The repository is being gradually updated as Open Telemetry SDK and Open Telemetry Contrib Packages for Ruby progress. (Note: as of now, the Ruby OTel instrumentation for metrics and traces is WIP.)
I recommend visiting open-telemetry/opentelemetry-demo for a complete example of instrumentation of a distributed system.
michal-kazmierczak/opentelemetry-rails-example #ruby #rubydeveloper #rubyonrails #michal-kazmierczak/opentelemetry-rails-example https://www.rubyonrails.ba/link/michal-kazmierczak-opentelemetry-rails-example