mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add instantiation.active_record
hook to instrumentation guide [ci skip]
the hook was added in 2a0d97bc89
This commit is contained in:
parent
ee372bdceb
commit
eb9f42b291
1 changed files with 14 additions and 0 deletions
|
@ -252,6 +252,20 @@ INFO. The adapters will add their own data as well.
|
||||||
| `:name` | Record's class |
|
| `:name` | Record's class |
|
||||||
| `:connection_id` | `self.object_id` |
|
| `:connection_id` | `self.object_id` |
|
||||||
|
|
||||||
|
### instantiation.active_record
|
||||||
|
|
||||||
|
| Key | Value |
|
||||||
|
| ---------------- | ----------------------------------------- |
|
||||||
|
| `:record_count` | Number of records that instantiated |
|
||||||
|
| `:class_name` | Record's class |
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
{
|
||||||
|
record_count: 1,
|
||||||
|
class_name: "User"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Action Mailer
|
Action Mailer
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue