diff options
author | 2020-07-23 00:40:17 -0700 | |
---|---|---|
committer | 2020-07-23 09:40:17 +0200 | |
commit | c86be3428a2b4adc3e5d76aafe1a306ae6bb7f07 (patch) | |
tree | 47e957fc005eaf78206453062d0b6a48b304475b /plugin/trace/trace.go | |
parent | 8c6d016ad64b3e1064a269436062ab58a5257ed3 (diff) | |
download | coredns-c86be3428a2b4adc3e5d76aafe1a306ae6bb7f07.tar.gz coredns-c86be3428a2b4adc3e5d76aafe1a306ae6bb7f07.tar.zst coredns-c86be3428a2b4adc3e5d76aafe1a306ae6bb7f07.zip |
Disable debug mode for tracing - removes extra logging (#4016)
Signed-off-by: Oleg Atamanenko <oleg.atamanenko@gmail.com>
Diffstat (limited to 'plugin/trace/trace.go')
-rw-r--r-- | plugin/trace/trace.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/trace/trace.go b/plugin/trace/trace.go index 63b2248fd..84076126a 100644 --- a/plugin/trace/trace.go +++ b/plugin/trace/trace.go @@ -10,6 +10,7 @@ import ( "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin/metrics" "github.com/coredns/coredns/plugin/pkg/dnstest" + "github.com/coredns/coredns/plugin/pkg/log" "github.com/coredns/coredns/plugin/pkg/rcode" _ "github.com/coredns/coredns/plugin/pkg/trace" // Plugin the trace package. "github.com/coredns/coredns/request" @@ -52,7 +53,7 @@ func (t *trace) OnStartup() error { case "zipkin": err = t.setupZipkin() case "datadog": - tracer := opentracer.New(tracer.WithAgentAddr(t.Endpoint), tracer.WithServiceName(t.serviceName), tracer.WithDebugMode(true)) + tracer := opentracer.New(tracer.WithAgentAddr(t.Endpoint), tracer.WithServiceName(t.serviceName), tracer.WithDebugMode(log.D.Value())) t.tracer = tracer default: err = fmt.Errorf("unknown endpoint type: %s", t.EndpointType) |