0.0
The project is in a healthy, maintained state
Automatic, fail-safe Apirelio request instrumentation for Rails API applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 7.1, < 9
>= 5.20, < 6
>= 13.1, < 14

Runtime

>= 0.1.0, < 0.2.0
>= 7.1, < 9
 Project Readme

Apirelio Rails

RubyGems Live demo

See the customer behind every API request

Apirelio live demo dashboard

Follow a release regression from the failing endpoint to the exact customer accounts it affects in the public, read-only workspace.

Explore the live demo →

Try it in 30 seconds

bundle add apirelio-rails
export APIRELIO_API_KEY=apr_live_your_project_key

Copy the minimal setup below or run the quickstart example. Delivery is fail-safe and no request or response payloads are captured.

Documentation · RubyGems · Apirelio

Automatic customer-aware API analytics for Rails 7.1 and 8.x.

bundle add apirelio-rails
# config/initializers/apirelio.rb
Apirelio::Rails.configure do |config|
  config.api_key = ENV.fetch("APIRELIO_API_KEY", "")
  config.service = "billing-api"
  config.customer_resolver = ->(env) {
    account = env["current_account"]
    account && { id: account.id.to_s, name: account.name, plan: account.plan }
  }
end

The Railtie registers middleware automatically. It records matched Rails routes, controller actions, status, duration and stable customer/application identity. Bodies, query strings, credentials, cookies and client IP addresses are never captured.