Add component to comment with the database role #104
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
, whichcan be used with the database host and name to annotate the query with
the current ActiveRecord role.
Rubies prior to 2.5 are now EOLed and Rails 6 can't be installed on Ruby 2.4,so I've swapped out Rubies 2.2-2.4 for 2.5 and 2.6 in the build matrix.
Close #102
This change requires #105 to fix an unrelated failing test case.