- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleNewSum (0.24 sec)
-
pkg/monitoring/example_sum_test.go
import "istio.io/istio/pkg/monitoring" var ( protocol = monitoring.CreateLabel("protocol") requests = monitoring.NewSum( "requests_total", "Number of requests handled, by protocol", ) ) func ExampleNewSum() { // increment on every http request requests.With(protocol.Value("http")).Increment() // count gRPC requests double requests.With(protocol.Value("grpc")).Record(2)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 17 20:25:52 UTC 2023 - 1005 bytes - Viewed (0)