Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Can't change trace.notifications.events in initializer #96

Open
danielmbarlow opened this issue Mar 25, 2019 · 0 comments
Open

Can't change trace.notifications.events in initializer #96

danielmbarlow opened this issue Mar 25, 2019 · 0 comments

Comments

@danielmbarlow
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant