Skip to content

Commit a686762

Browse files
committed
whole URL, DD redacts query values
1 parent c11d9cc commit a686762

File tree

1 file changed

+1
-1
lines changed
  • examples/datadog-logging-and-tracing

1 file changed

+1
-1
lines changed

examples/datadog-logging-and-tracing/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func main() {
4242
var handler http.Handler = httpbin.New()
4343
handler = loggingHandler(logger, handler)
4444
handler = ddhttp.WrapHandler(handler, serviceName, "", ddhttp.WithResourceNamer(func(r *http.Request) string {
45-
return r.Method + " " + r.URL.Path
45+
return r.Method + " " + r.URL.String()
4646
}))
4747

4848
srv := &http.Server{

0 commit comments

Comments
 (0)