MCPcopy
hub / github.com/grafana/tempo / Publish

Function Publish

pkg/hedgedmetrics/metrics.go:34–36  ·  view source on GitHub ↗

Publish flushes metrics from hedged requests every tickerDur

(s *hedgedhttp.Stats, counter prometheus.Counter)

Source from the content-addressed store, hash-verified

32
33// Publish flushes metrics from hedged requests every tickerDur
34func Publish(s *hedgedhttp.Stats, counter prometheus.Counter) {
35 publishWithDuration(s, counter, hedgedMetricsPublishDuration)
36}
37
38func publishWithDuration(s statsProvider, counter prometheus.Counter, duration time.Duration) {
39 ticker := time.NewTicker(duration)

Callers 1

PublishHedgedMetricsFunction · 0.92

Calls 1

publishWithDurationFunction · 0.85

Tested by

no test coverage detected