Documentation ¶
Overview ¶
Package dbstats provides shims for writing db logger events to a stats collector.
Index ¶
Constants ¶
View Source
const ( MetricNameDBQuery string = string(db.QueryFlag) MetricNameDBQueryElapsed string = MetricNameDBQuery + ".elapsed" MetricNameDBQueryElapsedLast string = MetricNameDBQueryElapsed + ".last" TagQuery string = "query" TagEngine string = "engine" TagDatabase string = "database" )
Metric and tag names etc.
Variables ¶
This section is empty.
Functions ¶
func AddListeners ¶
func AddListeners(log logger.Listenable, collector stats.Collector)
AddListeners adds db listeners.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.