querymetrics

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const AgentVersionAttribute = "qc_agent_version"
View Source
const DefaultLimit = 250

Variables

This section is empty.

Functions

func AddAgentVersion added in v0.1.2

func AddAgentVersion(metrics pmetric.Metrics, version string) pmetric.Metrics

AddAgentVersion adds the collector build version to every emitted resource.

func SQLSignature

func SQLSignature(normalizedQuery string) string

SQLSignature returns a stable 128-bit identifier for normalized SQL text.

Types

type Config

type Config struct {
	Enabled bool `mapstructure:"enabled"`
	Limit   int  `mapstructure:"limit"`
}

func DefaultConfig

func DefaultConfig() Config

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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