Ruby on Windows
  • 29 Jan 2021
  • 1 Minute To Read
  • Contributors
  • Print
  • Share
  • Dark
    Light

Ruby on Windows

  • Print
  • Share
  • Dark
    Light

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?