Ruby on Windows
  • 1 Minute to read
  • Dark
    Light
  • PDF

Ruby on Windows

  • Dark
    Light
  • PDF

Article Summary

Prerequisites:
  • Supported Ruby Technologies
    Since Prefix and Retrace share the same modules/profiler, the supported frameworks between the two products will be the same in most cases.

1. Download and install the Prefix installation file:

Check out the Getting Started Prefix page to download and install Prefix on your workstation.

2. Get the latest Stackify Ruby Profiler for Prefix:

Modify the application Gemfile:

gem 'stackify-ruby-apm'

3. Configure the Application to use the Profiler with Prefix Enabled:

  • Add config/stackify_apm.yml to your application, modify application_name and environment_name.
  • Add prefix_enabled: trueto the stackify_apm.yml file.
application_name: 'Ruby Application'
environment_name: 'Production'
prefix_enabled: true

4. Initialize the Profiler:

Rails

Profiler will startup automatically, no additional configuration.

Non-Rails

Include StackifyRubyAPM::Middleware when starting your application:

# config.ru

require 'stackify-ruby-apm'
use StackifyRubyAPM::Middleware
StackifyRubyAPM.start

# application startup

at_exit { StackifyRubyAPM.stop }

Sinatra

# config.ru

require 'stackify-ruby-apm'
require 'sinatra/base'

class MyApp < Sinatra::Base
  use StackifyRubyAPM::Middleware

  # get '/' do ... 

end

StackifyRubyAPM.start 

run MyApp

at_exit { StackifyRubyAPM.stop }

Build and Deploy your application.

5. Verify application requests show up in Prefix


Was this article helpful?

What's Next