Install the Ruby agent with RubyGems as a gem source
Important
The Ruby Agent is not currently being sold to new customers. Please contact our Sales team if you have any questions about our offerings and support for the Ruby language.
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 or Sinatra).
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.