diff options
author | Christian Bruckmayer <cbruckmayer@suse.com> | 2018-12-14 13:55:30 +0100 |
---|---|---|
committer | Christian Bruckmayer <cbruckmayer@suse.com> | 2019-01-02 21:32:20 +0100 |
commit | 580ebe1322e34f51f1a39eb9b423a65dedee6922 (patch) | |
tree | c606da609c62bcc137a5131a331e44cfe96bf530 /guides/source/active_support_instrumentation.md | |
parent | b2bc4369a3f07d6f6a57a7b949b8d6654792b322 (diff) | |
download | rails-580ebe1322e34f51f1a39eb9b423a65dedee6922.tar.gz rails-580ebe1322e34f51f1a39eb9b423a65dedee6922.tar.bz2 rails-580ebe1322e34f51f1a39eb9b423a65dedee6922.zip |
Add missing keys to ActiveSupport#instrumentation guide [skip ci]
See https://github.com/rails/rails/blob/master/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb#L625.
Diffstat (limited to 'guides/source/active_support_instrumentation.md')
-rw-r--r-- | guides/source/active_support_instrumentation.md | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md index 9963125fa2..2e9d7cbec0 100644 --- a/guides/source/active_support_instrumentation.md +++ b/guides/source/active_support_instrumentation.md @@ -255,13 +255,16 @@ Active Record ### sql.active_record -| Key | Value | -| ---------------- | ---------------------------------------- | -| `:sql` | SQL statement | -| `:name` | Name of the operation | -| `:connection_id` | `self.object_id` | -| `:binds` | Bind parameters | -| `:cached` | `true` is added when cached queries used | +| Key | Value | +| -------------------- | ---------------------------------------- | +| `:sql` | SQL statement | +| `:name` | Name of the operation | +| `:connection_id` | Object ID of the connection object | +| `:connection` | Connection object | +| `:binds` | Bind parameters | +| `:type_casted_binds` | Typecasted bind parameters | +| `:statement_name` | SQL Statement name | +| `:cached` | `true` is added when cached queries used | INFO. The adapters will add their own data as well. @@ -270,7 +273,10 @@ INFO. The adapters will add their own data as well. sql: "SELECT \"posts\".* FROM \"posts\" ", name: "Post Load", connection_id: 70307250813140, - binds: [] + connection: #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x00007f9f7a838850>, + binds: [#<ActiveModel::Attribute::WithCastValue:0x00007fe19d15dc00>], + type_casted_binds: [11], + statement_name: nil } ``` |