marginalia
marginalia copied to clipboard
Attach comments to ActiveRecord's SQL queries
I have a lot of logs where I see comments for statements like `BEGIN` and `COMMIT` which I want to disable for performance reasons. e.g ``` BEGIN /*hostname:MY_APPLICATION_NAME,context:CUSTOM CONTEXT*/ ```...
This pull request surfaces a new optional configuration to format the Marginalia comments in a machine-readable manner. See the changes to the README in this PR for a summary of...
This PR adds `capistrano-bundler` gem's default bundle path to `DEFAULT_LINES_TO_IGNORE_REGEX` to show correct lines in logs. You can find the default path in the README of the gem. https://github.com/capistrano/bundler#usage
Migrating from Rails 5.2 to Rails 6.0.4.1, and I got this error when loading schema in sqlite: ``` #
Even if no one wants to use the extension as is, it makes a good example of how one may do it. Usage: in config/initializers/sidekiq.rb ```ruby Marginalia::SidekiqInstrumentation.enable!(annotate_delayed_class_extension: true) ``` optionally...
My use case might be a bit weird, but long story short I need to migrate the marginalia state from one thread to another. It led me to figure out...
From the guides https://guides.rubyonrails.org/active_record_multiple_databases.html on multiple databases, we have the following `database.yml` file: ``` production: primary: database: my_primary_database user: root adapter: mysql primary_replica: database: my_primary_database user: root_readonly adapter: mysql replica:...
Since https://github.com/rails/rails/pull/52428, Marginalia doesn't work on some queries. I think the fix is to alias `internal_exec_query` instead of `exec_query` [here](https://github.com/basecamp/marginalia/blob/226f93234b0ca58f548c5af23e229bdf3bf15ad5/lib/marginalia.rb#L16-L19). Does that sound right to you @byroot ? (Presumably same...
Fix https://github.com/basecamp/marginalia/issues/139