From a686762f998e6314a4429076cb3018c57f24f99a Mon Sep 17 00:00:00 2001 From: Will McCutchen Date: Fri, 13 Oct 2023 07:56:36 -0400 Subject: [PATCH] whole URL, DD redacts query values --- examples/datadog-logging-and-tracing/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/datadog-logging-and-tracing/main.go b/examples/datadog-logging-and-tracing/main.go index ce8d59bd..4d9a38c7 100644 --- a/examples/datadog-logging-and-tracing/main.go +++ b/examples/datadog-logging-and-tracing/main.go @@ -42,7 +42,7 @@ func main() { var handler http.Handler = httpbin.New() handler = loggingHandler(logger, handler) handler = ddhttp.WrapHandler(handler, serviceName, "", ddhttp.WithResourceNamer(func(r *http.Request) string { - return r.Method + " " + r.URL.Path + return r.Method + " " + r.URL.String() })) srv := &http.Server{