dbmetrics

package
v2.33.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: AGPL-3.0 Imports: 11 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Code generated by scripts/dbgen. Any function can be edited and will not be overwritten. New database functions are automatically generated!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBMetrics added in v2.17.0

func NewDBMetrics(s database.Store, logger slog.Logger, reg prometheus.Registerer) database.Store

NewDBMetrics returns a database.Store that registers metrics for the database but does not handle individual queries. metricsStore is intended to always be used, because queryMetrics are a bit too verbose for many use cases.

func NewQueryMetrics added in v2.17.0

func NewQueryMetrics(s database.Store, logger slog.Logger, reg prometheus.Registerer) database.Store

NewQueryMetrics returns a database.Store that registers metrics for all queries to reg.

Types

This section is empty.

Jump to

Keyboard shortcuts

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