package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev
# Functions
Init must be called after flag.Parse, and before doing any other operations.
IsLocalContext returns true if the context is based on LocalContext.
LocalContext returns a context that's local to the process.
LogError logs panics and increments InternalErrors.
NewLogStats constructs a new LogStats with supplied Method and ctx field values, and the StartTime field set to the present time.
RecordUserQuery records the query data against the user.
VerifyConfig checks "Config" for contradicting flags.
# Constants
QuerySourceConsolidator means query result is found in consolidator.
QuerySourceMySQL means query result is returned from MySQL.
# Variables
Config contains all the current config values.
DefaultQsConfig is the default value for the query service config.
Errorf can be overridden during tests.
ErrorStats shows number of critial errors happened.
Infof can be overridden during tests.
InternalErrors shows number of errors from internal components.
KillStats shows number of connections being killed.
MySQLStats shows the time histogram for operations spent on mysql side.
QPSRates shows the qps of QueryStats.
QueryStats shows the time histogram for each type of queries.
ResultStats shows the histogram of number of rows returned.
StatsLogger is the main stream logger object.
TableaclAllowed tracks the number allows.
TableaclDenied tracks the number of denials.
TableaclPseudoDenied tracks the number of pseudo denies.
TxLogger can be used to enable logging of transactions.
Unresolved tracks unresolved items.
UserTableQueryCount shows number of queries received for each CallerID/table combination.
UserTableQueryTimesNs shows total latency for each CallerID/table combination.
UserTransactionCount shows number of transactions received for each CallerID.
UserTransactionTimesNs shows total transaction latency for each CallerID.
WaitStats shows the time histogram for wait operations.
Warningf can be overridden during tests.
Warnings shows number of warnings.
# Structs
LogStats records the stats for a single query.
TabletConfig contains all the configuration for query service.
TransactionLimitConfig captures configuration of transaction pool slots limiter configuration.