github.com/go-chi/chi

chi is a lightweight, idiomatic and composable router for building Go HTTP services.

Use V1 tracer middleware

Join Point
All of
Advice
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

Join Point
All of
Advice
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
}()