Skip to content

Commit

Permalink
whole URL, DD redacts query values
Browse files Browse the repository at this point in the history
  • Loading branch information
mccutchen committed Oct 13, 2023
1 parent c11d9cc commit a686762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/datadog-logging-and-tracing/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit a686762

Please sign in to comment.