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.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle