-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add component to comment with the database role
With multiple databases in Rails 6, it can be difficult to tell from logging if your database query is being made against the leader or follower database. This change adds a new component, `db_role`, which can be used with the database host and name to annotate the query with the current ActiveRecord role.
- Loading branch information
1 parent
adc34ad
commit 8e7998f
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters