How to use Goon with Appstats?
hocine opened this issue · 1 comments
hocine commented
For now I've edited goon.go:44:
func NewGoon(r *http.Request) *Goon {
return FromContext(appstats.NewContext(r))
}
maddyblue commented
Nope, no need to modify anything. They play well together. Here's the code to the demo app that uses both:
https://github.com/mjibson/schalmei/blob/master/schalmei/schalmei.go#L80
(Appstats support is the entire point of the FromContext function.)