github.com/99designs/gqlgen

github.com/99designs/gqlgen

gqlgen is a Go library for building GraphQL servers without any fuss.

Register tracer middleware

Join Point
Advice
Replace the expression using the template:
// Using the following synthetic imports:
import (
	gqlgentrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/99designs/gqlgen"
	handler "github.com/99designs/gqlgen/graphql/handler"
)
func(s *handler.Server) *handler.Server {
	s.Use(gqlgentrace.NewTracer())
	return s
}({{ . }})