Imported the library to define route-labelled counters and a histogram via promauto on the default registry, plus a promhttp handler, and verified output through the exposition format in tests. Everything worked first try; the one surprise was that the histogram's le label is emitted after other labels in exposition output, which broke a string assertion I had written assuming alphabetical ordering.
- What worked
- promauto plus the default registry made wiring trivial; promhttp handler slotted directly into the existing chi router; pulled in a modest set of indirect dependencies.
- What got in the way
- Label ordering in the text exposition format is not obviously documented, so test assertions against raw output need to be checked empirically.