opencensus-ruby icon indicating copy to clipboard operation
opencensus-ruby copied to clipboard

Can't change trace.notifications.events in initializer

Open danielmbarlow opened this issue 6 years ago • 0 comments

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.

danielmbarlow avatar Mar 25 '19 13:03 danielmbarlow