$ go get github.com/sagikazarmark/ocmux
package main
import (
"github.com/gorilla/mux"
"github.com/sagikazarmark/ocmux"
)
func main() {
router := mux.NewRouter()
router.Use(ocmux.Middleware())
}
Based on the work of @basvanbeek: https://github.com/basvanbeek/opencensus-gorilla_mux-example
Removed some Zipkin specific code, added a few features.
The MIT License (MIT). Please see License File for more information.