(cfg SLOConfig)
| 92 | } |
| 93 | |
| 94 | func metricsSLOPostHook(cfg SLOConfig) handlerPostHook { |
| 95 | return sloHook(metricsCounter, sloMetricsCounter, metricsThroughput, metricsInspectedBytes, cfg) |
| 96 | } |
| 97 | |
| 98 | func 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) { |
no test coverage detected