github.com/efixler/stats (go): Stats package is used to collect in-request count and timing metrics. It's influenced by StatsD and provides a similar interface.  Attach stats to a request via the router middleware functionality. The middleware APIs are developed and tested around gorilla mux, but should work with any middleware API that accepts http.Handler implementations.  stats pushes data upstream using a background goroutine. Background processing is supported in the Appengine Standard Environment, but not in all scaling modes. See https://cloud.google.com/appengine/docs/standard/go/modules/runtime#RunInBackground for more information about background activities and scaling modes in Appengine.  Backends are pluggable. A metrics storage backend need only implement the Sink interface. There is a Sink implementation for Stackdriver at https://github.com/efixler/stats/stackdriver.  See the examples for usage info and more details.
Keywords: appengine-go|golang-package|google-cloud|metrics|stats