dbstats

package
v1.20240719.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 5 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, opts ...stats.AddListenerOption)

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