MCPcopy
hub / github.com/prometheus/client_golang / Observe

Method Observe

prometheus/summary.go:64–64  ·  view source on GitHub ↗

Observe adds a single observation to the summary. Observations are usually positive or zero. Negative observations are accepted but prevent current versions of Prometheus from properly detecting counter resets in the sum of observations. See https://prometheus.io/docs/practices/histograms/#count-and

(float64)

Source from the content-addressed store, hash-verified

62 // https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations
63 // for details.
64 Observe(float64)
65}
66
67var errQuantileLabelNotAllowed = fmt.Errorf(

Callers 15

benchmarkSummaryObserveFunction · 0.95
benchmarkSummaryWriteFunction · 0.95
TestSummaryConcurrencyFunction · 0.95
TestSummaryDecayFunction · 0.95
ExampleSummaryFunction · 0.95
BenchmarkSummaryNoLabelsFunction · 0.95
TestTimerByOutcomeFunction · 0.65
ExampleSummaryVecFunction · 0.65
ObserveDurationMethod · 0.65

Implementers 3

histogramprometheus/histogram.go
summaryprometheus/summary.go
noObjectivesSummaryprometheus/summary.go

Calls

no outgoing calls

Tested by 15

benchmarkSummaryObserveFunction · 0.76
benchmarkSummaryWriteFunction · 0.76
TestSummaryConcurrencyFunction · 0.76
TestSummaryDecayFunction · 0.76
ExampleSummaryFunction · 0.76
BenchmarkSummaryNoLabelsFunction · 0.76
TestTimerByOutcomeFunction · 0.52
ExampleSummaryVecFunction · 0.52
handlerFunction · 0.52