Open cbatson opened 3 years ago
Can work around by disabling metrician:
irb(main):003:0> agent = Instrumental::Agent.new('foo', enabled: false, metrician: false)
=> #<Instrumental::Agent:0x00005646207d61f0 @api_key="foo", @host="collector.instrumentalapp.com", @port=80...
We'll take a look, but off the top of my head does it work if you load the agent earlier in the rails startup process? It looks like something during initialization is freezing the middleware array, so if the agent is loaded before that happens it might work.
Using Ruby 3.0 and Rails 6.1.1: