01
Recommended
Use the Rails adapter.
The adapter installs Ruby Core automatically and registers customer-aware middleware through a Railtie.
02
Language foundation
Use Core for Rack and custom adapters.
apirelio owns event normalization, metadata filtering, retry, backpressure and shutdown flushing. The bundled Rack middleware works with any compatible Ruby framework.
Installbash
bundle add apirelioconfig.ruruby
require "apirelio"
client = Apirelio::Client.new(
api_key: ENV.fetch("APIRELIO_API_KEY", ""),
service: "billing-api",
environment: "production"
)
use Apirelio::Rack::Middleware,
client: client,
include_routes: ["/api/**"],
exclude_routes: ["/api/health"]03
Safe defaults
Telemetry stays outside the response path.
The queue is bounded, transient failures are retried and delivery errors never replace the application response. Bodies, credentials, cookies, query strings and client IP addresses are excluded.