add pagination
This commit is contained in:
@ -22,7 +22,7 @@ import (
|
||||
"go.opentelemetry.io/otel/sdk/trace"
|
||||
)
|
||||
|
||||
var webtracer = otel.Tracer("kuriweb")
|
||||
var webtracer = otel.Tracer("kuriweb.http")
|
||||
|
||||
type shutdownFunc func(context.Context) error
|
||||
|
||||
@ -126,7 +126,7 @@ func newMeterProvider() (*metric.MeterProvider, error) {
|
||||
return meterProvider, nil
|
||||
}
|
||||
|
||||
func muxHandleFunc(router *mux.Router, path string, hf http.HandlerFunc) *mux.Route {
|
||||
func muxHandleFunc(router *mux.Router, name, path string, hf http.HandlerFunc) *mux.Route {
|
||||
h := otelhttp.WithRouteTag(path, hf)
|
||||
return router.Handle(path, h)
|
||||
return router.Handle(path, h).Name(name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user