forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: decrease trace verbosity for change replicas db operations
While we introduced logging of traces from replicate queue processing in cockroachdb#86007, it was noted that when collecting traces with verbose recording enabled, a significant fraction of these traces were from low-level database operations, particularly during the transaction run in `execChangeReplicasTxn(..)`. This function performs necessary bookkeeping of range descriptors when replica movement occurs, however the high verbosity on the low-level database operations within the transaction is not necessary when examining traces from higher-level operations like replicate queue processing. Hence, this change creates child tracing spans within `execChangeReplicasTxn` which can be filtered out prior to logging the traces in the replicate queue processing loop. This decreases the size of the logged trace by a factor of 10, allowing the resulting log message to be much more succinct and focused. Release justification: Low-risk, high benefit observability change. Release note: None
- Loading branch information
Showing
4 changed files
with
175 additions
and
105 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
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
Oops, something went wrong.