Install the Ruby agent with RubyGems as a gem source
To download the Ruby agent from RubyGems:
Add this to your application's gemfile:
gem 'contrast-agent'
Run an install:
bundle install
or an update:
bundle update contrast-agent
Configure middleware (Rails, Sinatra, or Grape).
Verify that
autoconf
is installed on the system where you will run the agent.Verify that you can see your application in Contrast.
Note
If installing in Alpine, you may need to run the command bundle config force_ruby_platform true
prior to installation.
Note
If you only want to run with Contrast in certain environments, you can do so using the Bundler's Group function.