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

Function ToTransactionalGatherer

prometheus/registry.go:1064–1066  ·  view source on GitHub ↗

ToTransactionalGatherer transforms Gatherer to transactional one with noop as done function.

(g Gatherer)

Source from the content-addressed store, hash-verified

1062
1063// ToTransactionalGatherer transforms Gatherer to transactional one with noop as done function.
1064func ToTransactionalGatherer(g Gatherer) TransactionalGatherer {
1065 return &noTransactionGatherer{g: g}
1066}
1067
1068type noTransactionGatherer struct {
1069 g Gatherer

Callers 3

TestNewMultiTRegistryFunction · 0.92
HandlerForFunction · 0.92
GatherAndCompareFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewMultiTRegistryFunction · 0.74