We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd18e56 commit 03d1775Copy full SHA for 03d1775
tracing/req_tracer.go
@@ -2,6 +2,7 @@ package tracing
2
3
import (
4
"net/http"
5
+ "strconv"
6
"time"
7
8
opentracing "github.com/opentracing/opentracing-go"
@@ -76,7 +77,9 @@ func (rt *RequestTracer) Finish() {
76
77
fields["dur"] = dur.String()
78
fields["dur_ns"] = dur.Nanoseconds()
79
- rt.span.SetTag(ext.HTTPCode, rt.trackingWriter.status)
80
+ // Setting the status as an int doesn't propogate for use in datadog dashboards,
81
+ // so we convert to a string.
82
+ rt.span.SetTag(ext.HTTPCode, strconv.Itoa(rt.trackingWriter.status))
83
rt.span.Finish()
84
rt.WithFields(fields).Info("Completed Request")
85
}
0 commit comments