Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apirelio Ruby

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
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

Privacy-safe customer-aware API analytics for Ruby and Rack applications.

bundle add apirelio
client = Apirelio::Client.new(
  api_key: ENV.fetch("APIRELIO_API_KEY", ""),
  service: "billing-api"
)

use Apirelio::Rack::Middleware,
  client: client,
  customer_resolver: ->(env) {
    account = env["current_account"]
    account && { id: account.id.to_s, name: account.name, plan: account.plan }
  }

The middleware records the final status, duration and normalized route without collecting request or response bodies, query strings, credentials, cookies or client IP addresses. Delivery uses a bounded background queue and never changes the observed response or exception.

Use apirelio-rails for automatic Rails registration.

About

Privacy-safe customer-aware API analytics for Ruby and Rack

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages