// NewFunc provides an HTTP HandlerFunc for injecting trace information
NewFunc provides an HTTP HandlerFunc for injecting trace information
// NewFunc provides an HTTP HandlerFunc for injecting trace information
func NewFunc(f func(w http.ResponseWriter, r *http.Request)) func(http.ResponseWriter, *http.Request) {
	return func(w http.ResponseWriter, r *http.Request) {
		r = SetRequestId(r)
		f(w, r)
	}
}
func NewFunc ( f func ( w http . ResponseWriter , r * http . Request ) ) func ( http . ResponseWriter , * http . Request ) { return func ( w http . ResponseWriter , r * http . Request ) { r = SetRequestId ( r ) f ( w , r ) } }
NewFunc provides an HTTP HandlerFunc for injecting trace information
NewFunc provides an HTTP HandlerFunc for injecting trace information
// inject the requestId to the context