Chris's Wiki :: blog/programming/GoExpvarNotes Commentshttps://utcc.utoronto.ca/~cks/space/blog/programming/GoExpvarNotes?atomcommentsDWiki2016-04-08T04:19:02ZRecent comments in Chris's Wiki :: blog/programming/GoExpvarNotes.By Hugo Landau on /blog/programming/GoExpvarNotestag:CSpace:blog/programming/GoExpvarNotes:a8deb025afe697963b2f1cafc84037abbfa1e283Hugo Landauhttps://www.devever.net/~hl/<div class="wikitext"><p>I was never too fond of expvar since it purports to be what I call an integration nexus, yet only supports one output method and is not very well extensible. <a href="https://www.devever.net/~hl/nexuses">https://www.devever.net/~hl/nexuses</a></p>
<p>My own experimental solution which I currently use is to provide a facility for registering what are basically glorified `interface{}`s where all functionality is supported via interface upgrades. This is highly extensible and allows both metric registration and metric consumption/export code to be written in a generic, decoupled fashion. <a href="https://github.com/hlandau/measurable">https://github.com/hlandau/measurable</a></p>
</div>2016-04-08T04:19:02Z