dbstats

package
v1.20210727.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL