attribute

package
v3.8.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Key   string
	Value string
}

Attribute represents a metric attribute key-value pair.

func Attr

func Attr(key string, value string) Attribute

Attr creates an attribute aimed to namespace a metric-set.

func (*Attribute) Namespace

func (a *Attribute) Namespace() string

Namespace generates the string value of an attribute used to namespace a metric.

type Attributes

type Attributes []Attribute

Attributes list of attributes

func (Attributes) Len

func (a Attributes) Len() int

Len ...

func (Attributes) Less

func (a Attributes) Less(i, j int) bool

Less ...

func (Attributes) Swap

func (a Attributes) Swap(i, j int)

Swap ...

Jump to

Keyboard shortcuts

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