mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 17:24:20 -04:00
Grpc tracing (#544)
* checkpoint * Pass context through ServeDNS, enable gRPC tracing * Fix types and make tracer available to proxy. go fmt * Fix imports * Use the DoNotStartTrace option * Change to SpanFilter from DoNotStartTrace * Use new name (IncludeSpan) * Final names * Add tests; fix possible client/conn leaks in grpc * go fmt
This commit is contained in:
@@ -20,7 +20,8 @@ func setup(c *caddy.Controller) error {
|
||||
return middleware.Error("proxy", err)
|
||||
}
|
||||
|
||||
P := &Proxy{}
|
||||
t := dnsserver.GetMiddleware(c, "trace")
|
||||
P := &Proxy{Trace: t}
|
||||
dnsserver.GetConfig(c).AddMiddleware(func(next middleware.Handler) middleware.Handler {
|
||||
P.Next = next
|
||||
P.Upstreams = &upstreams
|
||||
|
||||
Reference in New Issue
Block a user