michal-kazmierczak/opentelemetry-rails-example

18-Jul-2025 1331
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.

Free eBook download

Download all our eBooks for free from Gumroad!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these books offer thousands of essential questions and answers across multiple languages. Download the complete collection for free from our Gumroad page. Free Ultimate Job Interview Preparation eBook collection