package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
New returns an instance of SQLStats.
NewController returns a new instance of sqlstats.Controller.
NewStatsCollector returns an instance of StatsCollector.
NewStmtStatsIterator returns a new instance of the StmtStatsIterator.
NewTempSQLStatsFromExistingStmtStats returns an instance of SQLStats populated from the provided slice of appstatspb.CollectedStatementStatistics.
NewTempSQLStatsFromExistingTxnStats returns an instance of SQLStats populated from the provided slice of CollectedTransactionStatistics.
NewTxnStatsIterator returns a new instance of the TxnStatsIterator.
# Variables
AssociateStmtWithTxnFingerprint determines whether to segment per-statment statistics by transaction fingerprint.
# Structs
Controller implements the SQL Stats subsystem control plane.
SQLStats carries per-application in-memory statistics for all applications.
StatsCollector is used to collect statistics for transactions and statements for the entire lifetime of a session.
StmtStatsIterator is an iterator that can be used to iterate over the statement statistics stored in SQLStats.
TxnStatsIterator is an iterator that can be used to iterate over the statement statistics stored in SQLStats.
# Interfaces
Sink provides clients with interfaces to send statistics data into the sink.