MCPcopy
hub / github.com/prometheus/prometheus / IgnoreOverriddenMetadataLabelScratchBuilder

Struct IgnoreOverriddenMetadataLabelScratchBuilder

schema/labels.go:139–142  ·  view source on GitHub ↗

IgnoreOverriddenMetadataLabelScratchBuilder is a wrapper over labels.ScratchBuilder that ignores label additions that would collide with non-empty Overwrite Metadata fields.

Source from the content-addressed store, hash-verified

137// IgnoreOverriddenMetadataLabelScratchBuilder is a wrapper over labels.ScratchBuilder
138// that ignores label additions that would collide with non-empty Overwrite Metadata fields.
139type IgnoreOverriddenMetadataLabelScratchBuilder struct {
140 *labels.ScratchBuilder
141 overwrite Metadata
142}
143
144// Add a name/value pair, unless it would collide with the non-empty Overwrite Metadata
145// field. Note if you Add the same name twice you will get a duplicate label, which is invalid.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected