namer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namer

type Namer struct {
	// contains filtered or unexported fields
}

func NewCounterNamer

func NewCounterNamer(opts metrics.CounterOpts) *Namer

func NewGaugeNamer

func NewGaugeNamer(opts metrics.GaugeOpts) *Namer

func NewHistogramNamer

func NewHistogramNamer(opts metrics.HistogramOpts) *Namer

func (*Namer) Format

func (n *Namer) Format(labelValues ...string) string

Format 传入的labelValues里的label必须是在Namer.labelNames里存在的!

func (*Namer) FullyQualifiedName

func (n *Namer) FullyQualifiedName() string

FullyQualifiedName 直译过来就是:`完全合格的名字`。 return namespace.subsystem.name or namespace.name or subsystem.name or name

Jump to

Keyboard shortcuts

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