Ruby with AllStak

Add error tracking and request monitoring to your Ruby or Rails app with the AllStak gem.

Source repository:
AllStak/allstak-ruby
Source README:
README.md
SDK version:
0.3.0
Installation source:
RubyGems
Last verified:
2026-05-31

Installation

Install the gem (or add gem "allstak" to your Gemfile).

gem install allstak

Configuration

Configure with a block. On Rails this is auto-wired via a Railtie.

require "allstak"

AllStak.configure do |config|
  config.api_key = ENV["ALLSTAK_API_KEY"]
  config.environment = ENV.fetch("APP_ENV", "production")
  config.release = ENV["ALLSTAK_RELEASE"]
  config.service_name = "checkout-api"
end

Basic example

On Rails, no further wiring is needed — the Railtie inserts the middleware automatically.

Capturing errors

Capture exceptions with AllStak.capture_exception.

AllStak.capture_exception(StandardError.new("checkout failed"))

Tracking requests

Inbound requests are tracked by AllStak::Integrations::Rack::Middleware — auto-inserted on Rails. For plain Rack, add it yourself.

use AllStak::Integrations::Rack::Middleware

Best practices

  • Configure AllStak before the app boots.
  • Set release to group errors per deploy.
  • On non-Rails Rack apps, add the Rack middleware manually.