Ruby SDK

Instrument Ruby APIs.

Use automatic Rails integration or build on the shared Rack middleware and asynchronous Ruby client.

Ruby 3.1+SDK 0.1Production ready
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 apirelio
config.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.