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
Rails controller runtime logging #4446
Conversation
Hi @doooby Thanks! |
sure, when i have the time, i'll do. |
|
||
protected | ||
|
||
attr_internal :mongo_runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be either "mongoid_runtime" or "mongodb_runtime"
Any chance this being merged soon? |
I'd like some documentation and tests before this is merged. Maybe @doooby has some time? |
Sorry, I hadn't had the time for this. And for more, the reasons of the previous Travis fail goes over my understanding. But here, I've polished it a bit, added some test that made sense to me and added a mention to the doc. also merged master from upstream. |
Tracking ticket: https://jira.mongodb.org/browse/MONGOID-4631 |
The diff references |
* Rails controller runtime logging * Rails instrumentation of Mongoid runtime during action processing * Tweak documentation wording * Repair the code and expand documentation
* Rails controller runtime logging * Rails instrumentation of Mongoid runtime during action processing * Tweak documentation wording * Repair the code and expand documentation
Hi there, I'm bringing back an issue about logging mongoid runtime per rails controller action.
there was #3885 that failed to get into mongoid, not sure why, but now that code is incompatible.
the log message
Completed 200 OK in 52ms (Views: 0.2ms | ActiveRecord: 0.4ms | MongoDB: 0.1ms)
is nice but marginal feature.we needed to collect some metrics about our rails application; this allows us to use standard rails notification:
and please, would it be possible to put it in older versions too? (we're currently on mongoid 5.1)