aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorGannon McGibbon <gannon.mcgibbon@gmail.com>2019-01-03 12:34:58 -0500
committerGitHub <noreply@github.com>2019-01-03 12:34:58 -0500
commitcc3cc6b50ff8b0ac2c566b74243ea9d82924b283 (patch)
treee2808f7584d3d26e3f790afa9181c10bce79918d /guides/source
parent6f0cda8f8e208143cbd3b39e786521c2e5cddb7a (diff)
parent580ebe1322e34f51f1a39eb9b423a65dedee6922 (diff)
downloadrails-cc3cc6b50ff8b0ac2c566b74243ea9d82924b283.tar.gz
rails-cc3cc6b50ff8b0ac2c566b74243ea9d82924b283.tar.bz2
rails-cc3cc6b50ff8b0ac2c566b74243ea9d82924b283.zip
Merge pull request #34706 from ChrisBr/instrumentation-guide
Add missing keys to ActiveSupport#instrumentation guide [skip ci]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_support_instrumentation.md22
1 files changed, 14 insertions, 8 deletions
diff --git a/guides/source/active_support_instrumentation.md b/guides/source/active_support_instrumentation.md
index f9b8f3208d..c1c3832b79 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
}
```