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

Function metricsSLOPostHook

modules/frontend/slos.go:94–96  ·  view source on GitHub ↗
(cfg SLOConfig)

Source from the content-addressed store, hash-verified

92}
93
94func metricsSLOPostHook(cfg SLOConfig) handlerPostHook {
95 return sloHook(metricsCounter, sloMetricsCounter, metricsThroughput, metricsInspectedBytes, cfg)
96}
97
98func sloHook(allByTenantCounter, withinSLOByTenantCounter *prometheus.CounterVec, throughputVec *prometheus.CounterVec, inspectedBytesVec *prometheus.CounterVec, cfg SLOConfig) handlerPostHook {
99 return func(resp *http.Response, tenant string, bytesProcessed uint64, latency time.Duration, err error) {

Calls 1

sloHookFunction · 0.85

Tested by

no test coverage detected