Install the Ruby agent manually
To install the Ruby agent manually:
Download the contrast-agent-\.gem* file to a local directory, and add the gem to the project gemfile:
gem 'contrast-agent'
Install the gem in the gemset for the current application:
bundle exec gem install ./path/to/contrast-agent-*.gem --platform ruby
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.Start and exercise your application as normal.
Verify that your server is registered in Contrast and that it reports an instance of your application.
Note
In systems using the rvm
or rbenv
, the environment of a user on the system might be different than the environment that the runtime server environment is using. If you can't find the gem after server startup, make sure that the gem is in a gemset available to the running web server environment.
In cases where the gem is not installed and the system can connect to RubyGems, Bundler will fall back to using RubyGems.