• filipe oliveira's avatar
    Add errorstats info section, Add failed_calls and rejected_calls to commandstats (#8217) · 90b9f08e
    filipe oliveira authored
    This Commit pushes forward the observability on overall error statistics and command statistics within redis-server:
    
    It extends INFO COMMANDSTATS to have
    - failed_calls in - so we can keep track of errors that happen from the command itself, broken by command.
    - rejected_calls - so we can keep track of errors that were triggered outside the commmand processing per se
    
    Adds a new section to INFO, named ERRORSTATS that enables keeping track of the different errors that
    occur within redis ( within processCommand and call ) based on the reply Error Prefix ( The first word
    after the "-", up to the first space ).
    
    This commit also fixes RM_ReplyWithError so that it can be correctly identified as an error reply.
    90b9f08e
config.c 106 KB