Skip to content

FrozenError exception raised instantiating agent in Rails 6.1.1 #68

@cbatson

Description

@cbatson

Using Ruby 3.0 and Rails 6.1.1:

root@3353f515ae84:/gwf/app# bundle exec rails c
/usr/local/bundle/bundler/gems/instrumental_agent-ruby-e6b27a2199d2/lib/instrumental/agent.rb:18: warning: Socket.gethostbyname is deprecated; use Addrinfo.getaddrinfo instead.
Loading development environment (Rails 6.1.1)
irb(main):001:0> require 'instrumental_agent'
=> false
irb(main):002:0> agent = Instrumental::Agent.new('foo', enabled: false)
Traceback (most recent call last):
        2: from (irb):2:in `<main>'
        1: from (irb):2:in `new'
FrozenError (can't modify frozen Array: [Metrician::Middleware::RequestTiming, Rack::ContentLength, ActionDispatch::HostAuthorization, Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, ActiveSupport::Cache::Strategy::LocalCache::Middleware, Rack::Runtime, ActionDispatch::RequestId, ActionDispatch::RemoteIp, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::ActionableExceptions, ActionDispatch::Reloader, ActionDispatch::Callbacks, ActiveRecord::Migration::CheckPending, Rack::Head, Rack::ConditionalGet, Rack::ETag, Metrician::Middleware::ApplicationTiming])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions