2024-10-25 12:14:15 -04:00
|
|
|
// Package promhelp provides helper functions for asserting Prometheus
|
|
|
|
|
// metric values in unit tests.
|
2026-10-28 09:17:10 -06:00
|
|
|
//
|
|
|
|
|
// Each value-reading helper gathers the registry on every call, so values
|
|
|
|
|
// read by separate calls are separate reads and need not agree with each
|
|
|
|
|
// other. A test that waits on one metric and then asserts another can fail
|
|
|
|
|
// intermittently. See "Wait for Full Completion before Asserting" in
|
|
|
|
|
// .claude/docs/TESTING.md.
|
2024-10-25 12:14:15 -04:00
|
|
|
package promhelp
|