github.com/go-chi/chi
chi is a lightweight, idiomatic and composable router for building Go HTTP services.
Use V1 tracer middleware
All of
- One of
- Call to
chi.NewMux
- Call to
chi.NewRouter
- Not
- One of
- Import path
github.com/
go-chi/ chi - Import path
github.com/
go-chi/ chi/ middleware
Replace the expression using the template:
// Using the following synthetic imports:
import (
chi "github.com/go-chi/chi"
chitrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-chi/chi"
)
func() *chi.Mux {
mux := {{ . }}
mux.Use(chitrace.Middleware())
return mux
}()
Use V5 tracer middleware
All of
- One of
- Call to
chi.NewMux
- Call to
chi.NewRouter
- Not
- One of
- Import path
github.com/
go-chi/ chi/ v5 - Import path
github.com/
go-chi/ chi/ v5/ middleware
Replace the expression using the template:
// Using the following synthetic imports:
import (
chi "github.com/go-chi/chi/v5"
chitrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/go-chi/chi.v5"
)
func() *chi.Mux {
mux := {{ . }}
mux.Use(chitrace.Middleware())
return mux
}()