aboutsummaryrefslogtreecommitdiff
path: root/plugin/trace/trace.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/trace/trace.go')
-rw-r--r--plugin/trace/trace.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/plugin/trace/trace.go b/plugin/trace/trace.go
index be62b63f3..b74cc5b33 100644
--- a/plugin/trace/trace.go
+++ b/plugin/trace/trace.go
@@ -25,9 +25,11 @@ import (
)
const (
- tagName = "coredns.io/name"
- tagType = "coredns.io/type"
- tagRcode = "coredns.io/rcode"
+ tagName = "coredns.io/name"
+ tagType = "coredns.io/type"
+ tagRcode = "coredns.io/rcode"
+ tagProto = "coredns.io/proto"
+ tagRemote = "coredns.io/remote"
)
type trace struct {
@@ -107,6 +109,8 @@ func (t *trace) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
span.SetTag(tagName, req.Name())
span.SetTag(tagType, req.Type())
+ span.SetTag(tagProto, req.Proto())
+ span.SetTag(tagRemote, req.IP())
span.SetTag(tagRcode, rcode.ToString(rw.Rcode))
return status, err