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

Function printValues

integration/storage/backend_scheduler_test.go:373–379  ·  view source on GitHub ↗
(t *testing.T, expected string, metric string)

Source from the content-addressed store, hash-verified

371}
372
373func printValues(t *testing.T, expected string, metric string) e2e.GetMetricValueFunc {
374 return func(m *io_prometheus_client.Metric) float64 {
375 v := e2e.DefaultMetricsOptions.GetValue(m)
376 t.Logf("metric %q: label %q: current %f, expected %s", metric, m.GetLabel()[0].GetValue(), v, expected)
377 return v
378 }
379}
380
381func printMetricValue(t *testing.T, expectedValue string, metric string) e2e.MetricsOption {
382 return func(opts *e2e.MetricsOptions) {

Callers 1

printMetricValueFunction · 0.85

Calls 1

GetValueMethod · 0.45

Tested by

no test coverage detected