In #2752, I accidentally introduced a change that would use a NewRegistry for each NewPromScope, ignoring the Registry that was passed as an argument. Because this registry was not attached to any HTTP server, the results would not get exported. This fixes that, so the Registry passed into NewPromScope is respected. In the process, I noticed that stats were getting prefixed by a spurious "_". I fixed that by turning prefix into a slice of strings, and combining them with "_" only if it the slice is non-empty. Fixes #2824. |
||
|---|---|---|
| .. | ||
| measured_http | ||
| mock_metrics | ||
| auto.go | ||
| auto_test.go | ||
| scope.go | ||
| scope_test.go | ||