https://www.elastic.co/docs/reference/apm/agents/ruby/getting-started-rails
Getting started with Rails | APM Ruby agent
Add the gem to your Gemfile: Create a file config/elastic_apm.yml: Or if you prefer environment variables, skip the file and set ELASTIC_APM_SERVER_URL...
getting started with railsruby agentapm