MCPcopy Create free account
hub / github.com/cortexproject/cortex / Copy

Method Copy

pkg/util/metrics_helper.go:522–526  ·  view source on GitHub ↗

Copy returns a copy of this histogram data.

()

Source from the content-addressed store, hash-verified

520
521// Copy returns a copy of this histogram data.
522func (d *HistogramData) Copy() *HistogramData {
523 cp := &HistogramData{}
524 cp.AddHistogramData(*d)
525 return cp
526}
527
528// NewHistogramDataCollector creates new histogram data collector.
529func NewHistogramDataCollector(desc *prometheus.Desc) *HistogramDataCollector {

Callers 8

CollectMethod · 0.45
CloseMethod · 0.45
setupCertificatesFunction · 0.45

Calls 1

AddHistogramDataMethod · 0.95

Tested by 2

setupCertificatesFunction · 0.36