npm/npm-www — pull request #657 by ceejbot (2014-03-05 22:49:20+00:00)
Title: Add a Zag metrics agent to npm-www as an example

- Add zag-agent to the package deps.
- Create & configure a metrics agent & decorate each request with it.
- In the res 'finish' handler, emit a histogram recording how long it took to finish the request. Skip static assets.

You can now use res.metrics or req.metrics to emit whatever histograms or counters you desire.