package labels
import "github.com/influxdata/influxdb/pkg/tracing/labels"
Index ¶
Types ¶
type Label ¶
type Label struct { Key, Value string }
type Labels ¶
type Labels []Label
The Labels type represents a set of labels, sorted by Key.
func New ¶
New takes an even number of strings representing key-value pairs and creates a new slice of Labels. Duplicates are removed, however, there is no guarantee which will be removed
func (*Labels) Merge ¶
Merge merges other with the current set, replacing any matching keys from other.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 2 days ago –
Tools for package owners.