Install
For Rails, put this in config/initializers/opentelemetry.rb:
use_all covers Rails, Rack, ActiveRecord, Net::HTTP, Redis, Sidekiq and Faraday. To pick
individually, replace it with c.use 'OpenTelemetry::Instrumentation::Rails' and friends.
Forking servers
Puma and Unicorn fork workers. The batch exporter’s background thread does not survive a
fork, so telemetry stops after boot unless you restart it in the child:
This is the usual reason a Rails app reports spans in development and nothing in
production — development runs single-process, production forks.
Custom spans