Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { Operation Operation Parameters string types.ConnectionKey }
Key is an identifier for a group of Postgres transactions
type Operation ¶
type Operation uint8
Operation represents a postgres query operation supported by our decoder.
const ( // UnknownOP represents an unknown operation. UnknownOP Operation = iota // SelectOP represents a SELECT operation. SelectOP // InsertOP represents an INSERT operation. InsertOP // UpdateOP represents an UPDATE operation. UpdateOP // CreateTableOP represents a CREATE TABLE operation. CreateTableOP // DropTableOP represents a DROP TABLE operation. DropTableOP // DeleteTableOP represents a DELETE TABLE operation. DeleteTableOP // AlterTableOP represents an ALTER TABLE operation. AlterTableOP // TruncateTableOP represents a TRUNCATE operation. TruncateTableOP // ShowOP represents a command SHOW ShowOP )
func FromString ¶
FromString returns the Operation from a string.
type RequestStat ¶
type RequestStat struct { // this field order is intentional to help the GC pointer tracking Latencies *ddsketch.DDSketch FirstLatencySample float64 Count int StaticTags uint64 }
RequestStat represents a group of Postgres transactions that has a shared key.
func (*RequestStat) CombineWith ¶
func (r *RequestStat) CombineWith(newStats *RequestStat)
CombineWith merges the data in 2 RequestStats objects newStats is kept as it is, while the method receiver gets mutated
Click to show internal directories.
Click to hide internal directories.