Is ActiveRecord logs integration planned?
Context
I am discovering logging in Rails and clearly approve taming Rails logs :) However, I also woud like to track ActiveRecord queries in a queryable manner which led me to https://github.com/iMacTia/lograge-sql.
Question
I then wonder if the integration of the SQL extension, or any ActiveRecord log, is planned. The motivation of the suggestion is related to log format: configuring the log format in Lograge should also for the SQL logs. Ideally, it would be nice, for the JSON format, to have something like
{
"method": "GET",
"path": "/articles/",
"sql_queries": [
{
"name": "Articles load",
"sql": "SELECT ...",
"duration": 0.42
}
]
}
In this example, we could then track the evolution of the duration of the combination "path": "/articles" and "name": "Articles load"
Current configuration:
- Ruby 2.5.1
- Rails 5.2.1
- Lograge 0.10.0
- Lograge-sql 0.2.0
Ref https://github.com/iMacTia/lograge-sql/pull/5