Scout Ruby Deploy Tracking Config¶
Scout can track deploys, making it easier to correlate changes in your app to performance. To enable deploy tracking, first ensure you are on the latest version of scout_apm. See our upgrade instructions.
Scout identifies deploys via the following:
- If you are using Capistrano, no extra configuration is required. Scout reads the contents of the
REVISIONand/orrevisions.logfile and parses out the SHA of the most recent release. - If you are using Heroku, enable Dyno Metadata. This adds a
HEROKU_SLUG_COMMITenvironment variable to your dynos, which Scout then associates with deploys. - If you are deploying via a custom approach, set a
SCOUT_REVISION_SHAenvironment variable equal to the SHA of your latest release. - If the app resides in a Git repo, Scout parses the output of
git rev-parse --short HEADto determine the revision SHA.