maddyblue/goon

How to use Goon with Appstats?

hocine opened this issue · 1 comments

For now I've edited goon.go:44:

func NewGoon(r *http.Request) *Goon {
    return FromContext(appstats.NewContext(r))
}

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.)