(t *testing.T)
| 414 | } |
| 415 | |
| 416 | func TestMiddlewareAPI(t *testing.T) { |
| 417 | chain, reg := makeInstrumentedHandler(func(w http.ResponseWriter, r *http.Request) { |
| 418 | _, _ = w.Write([]byte("OK")) |
| 419 | }) |
| 420 | |
| 421 | r, _ := http.NewRequest(http.MethodGet, "www.example.com", nil) |
| 422 | w := httptest.NewRecorder() |
| 423 | chain.ServeHTTP(w, r) |
| 424 | |
| 425 | assetMetricAndExemplars(t, reg, 5, nil) |
| 426 | } |
| 427 | |
| 428 | func TestMiddlewareAPI_WithExemplars(t *testing.T) { |
| 429 | exemplar := prometheus.Labels{"traceID": "example situation observed by this metric"} |
nothing calls this directly
no test coverage detected