Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Timestamp time.Time // time the metric was started WaitLatency time.Duration // time that we had to wait before starting query execution ExecuteLatency time.Duration // time the query took to execute Err error // any error resulting from the query execution }
Metric records query metrics of backend writes that go through a sized channel. It allows us to compare the time waiting to execute the query against the time needed to run it and in a "sized channel" the wait time may be significant and is good to measure.
Click to show internal directories.
Click to hide internal directories.