Class: MetrixWire::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/metrixwire/railtie.rb

Overview

Rails integration. Loaded automatically when the gem is required inside a Rails app (Rails::Railtie is defined). It:

(a) auto-inits the SDK from ENV before initializers run,
(b) inserts the Rack middleware so one trace opens per request,
(c) wires ActiveSupport::Notifications subscribers (SQL, controller, cache).

Fully automatic: add the gem + set METRIXWIRE_KEY — no code changes.