mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 10:13:14 -05:00
Tracing for gRPC Server (#619)
* Implements tracing in the native gRPC server * Undo some unnecessary changes * Properly revert trace/setup.go this time * Some very very basic tests * Remove warning for non-Trace middleware
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/coredns/coredns/middleware"
|
||||
_ "github.com/coredns/coredns/middleware/pkg/trace"
|
||||
"github.com/miekg/dns"
|
||||
ot "github.com/opentracing/opentracing-go"
|
||||
zipkin "github.com/openzipkin/zipkin-go-opentracing"
|
||||
@@ -14,12 +15,6 @@ import (
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// Trace holds the tracer and endpoint info
|
||||
type Trace interface {
|
||||
middleware.Handler
|
||||
Tracer() ot.Tracer
|
||||
}
|
||||
|
||||
type trace struct {
|
||||
Next middleware.Handler
|
||||
ServiceEndpoint string
|
||||
|
||||
Reference in New Issue
Block a user