Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add more stats into the value? #3

Open
PikachuEXE opened this issue Mar 27, 2017 · 2 comments
Open

How to add more stats into the value? #3

PikachuEXE opened this issue Mar 27, 2017 · 2 comments

Comments

@PikachuEXE
Copy link

Thanks for writing this gem

I only see db & view on the new header now
And I want to know if there is a way to add more stats to it (like caching or other stuff)

@dpogue
Copy link
Owner

dpogue commented Mar 27, 2017

It uses the values returned by the ActiveSupport::Notifications Instrumentation API. I think the best overview of that is still Instrument Anything in Rails.

In particular, anything in the ActionController event payload that ends with _runtime will be returned in the header.

@PikachuEXE
Copy link
Author

Thanks
Maybe worth putting this info in README?

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

No branches or pull requests

2 participants