Skip to content

Commit 2a5b4fd

Browse files
committed
Add usage guidelines to transaction.active_record docs
1 parent 060d6ca commit 2a5b4fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

guides/source/active_support_instrumentation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,11 @@ This event is emmited for every transaction to the database.
420420
| `:outcome` | `:commit`, `:rollback`, `:restart`, or `:incomplete` |
421421
| `:connection` | Connection object |
422422

423+
Please note that at this point the transaction has been finished, and its state
424+
is in the `:outcome` key. In practice, you cannot do much with the transaction
425+
object, but it may still be helpful for tracing database activity. For example,
426+
by tracking `transaction.uuid`.
427+
423428
### Action Mailer
424429

425430
#### `deliver.action_mailer`

0 commit comments

Comments
 (0)