rcrowley / go-tigertonic

A Go framework for building JSON web services inspired by Dropwizard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-metrics wrappers that inspect the URL

rcrowley opened this issue · comments

It's verbose to have to define a timer for every route when they're all the same except for the metric which can be determined from the request itself.

This should be part of TrieServeMux, otherwise it's going to be very locky.

See also rcrowley/go-metrics#25.

#51 has part of this with CountedByStatus and CountedByStatusXX.