IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Getting started with Rails
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Getting started with Rails
editSetup
editAdd the gem to your Gemfile
:
gem 'elastic-apm'
Create a file config/elastic_apm.yml
:
server_url: http://localhost:8200 secret_token: ''
Or if you prefer environment variables, skip the file and set ELASTIC_APM_SERVER_URL
and ELASTIC_APM_SECRET_TOKEN
in your local or server environment.
This automatically sets up error logging and performance tracking but of course there are knobs to turn if you’d like to. See Configuration.
On this page
Was this helpful?
Thank you for your feedback.