mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -06:00
More documentation
This commit is contained in:
parent
7de0fab340
commit
43854b02ab
|
|
@ -21,8 +21,20 @@ var calculateStateDurations = prometheus.NewSummaryVec(
|
||||||
// Takes two labels:
|
// Takes two labels:
|
||||||
// algorithm:
|
// algorithm:
|
||||||
// The algorithm used to calculate the state or the step it failed on if it failed.
|
// The algorithm used to calculate the state or the step it failed on if it failed.
|
||||||
|
// Labels starting with "_" are used to indicate when the algorithm fails halfway.
|
||||||
// outcome:
|
// outcome:
|
||||||
// Whether the state was successfully calculated.
|
// Whether the state was successfully calculated.
|
||||||
|
//
|
||||||
|
// The possible values for algorithm are:
|
||||||
|
// empty_state -> The list of events was empty so the state is empty.
|
||||||
|
// no_change -> The state hasn't changed.
|
||||||
|
// single_delta -> There was a single event added to the state in a way that can be encoded as a single delta
|
||||||
|
// full_state_no_conflicts -> We created a new copy of the full room state, but didn't enounter any conflicts
|
||||||
|
// while doing so.
|
||||||
|
// full_state_with_conflicts -> We created a new copy of the full room state and had to resolve conflicts to do so.
|
||||||
|
// _load_state_block_nids -> Failed loading the state block nids for a single previous state.
|
||||||
|
// _load_combined_state -> Failed to load the combined state.
|
||||||
|
// _resolve_conflicts -> Failed to resolve conflicts.
|
||||||
[]string{"algorithm", "outcome"},
|
[]string{"algorithm", "outcome"},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue