opencensus-ruby
opencensus-ruby copied to clipboard
Can't change trace.notifications.events in initializer
Currently you can't use files in config/initializers/ change the Active Support events that are reported in the trace. Only the defaults will be used.
This is because ActiveSupport::Notifications.subscribe is called in the Rails integration Railtie initializer block.
It will probably work if you set it in config/application.rb, but that means cluttering application.rb. In any case perhaps there should be a note about that in the documentation.