querystats

package
v1.79.14 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled returns true of query stats tracking is enabled.

func RegisterQuery

func RegisterQuery(query string, timeRangeMsecs int64, startTime time.Time)

RegisterQuery registers the query on the given timeRangeMsecs, which has been started at startTime.

RegisterQuery must be called when the query is finished.

func WriteJSONQueryStats

func WriteJSONQueryStats(w io.Writer, topN int, maxLifetime time.Duration)

WriteJSONQueryStats writes query stats to given writer in json format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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