DEVELOPER DOCS

SDKs

Wire Dispatch into your stack — a feedback widget for UI apps, headless server-side error tracking for everything else — in about two lines. Install from the registry you already use.

Published on RubyGems as dispatch-rails. Works with Rails 7.1–8.

1 · Install
# Gemfile
gem "dispatch-rails", "~> 0.7"

Then bundle install.

2 · Configure
# config/initializers/dispatch.rb
Dispatch::Rails.configure do |c|
  c.api_key  = Rails.application.credentials.dig(:dispatch, :api_key)
  c.enabled_environments = %w[production staging]
  c.release  = ENV["GIT_SHA"]

  # Who's affected — read it from your own auth.
  c.user = ->(ctx) { ctx.try(:current_user)&.then { { email: _1.email, external_id: _1.id } } }
end

# API-only app (no UI)? Add headless exception tracking instead of the widget:
#   c.mode = :errors_only
PREFER RAW HTTP?

Every SDK speaks a Sentry-compatible wire format, so a stock Sentry SDK works against a Dispatch DSN too. The endpoints are documented in the API reference.

Browse the HTTP API reference →