From 2ee96b721b5e4467ebef10185236896452e909ab Mon Sep 17 00:00:00 2001 From: "diana.shevchenko" Date: Mon, 1 Aug 2022 13:20:25 +0200 Subject: [PATCH] added a link to the public docs --- contrib/internal/httptrace/httptrace.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/internal/httptrace/httptrace.go b/contrib/internal/httptrace/httptrace.go index 756a6b74e0..4852bde731 100644 --- a/contrib/internal/httptrace/httptrace.go +++ b/contrib/internal/httptrace/httptrace.go @@ -95,6 +95,7 @@ func ippref(s string) *netaddr.IPPrefix { } // genClientIPSpanTags generates the client IP related tags that need to be added to the span. +// See https://docs.datadoghq.com/tracing/configure_data_security#configuring-a-client-ip-header for more information. func genClientIPSpanTags(r *http.Request) []ddtrace.StartSpanOption { ipHeaders := defaultIPHeaders if len(cfg.clientIPHeader) > 0 { @@ -160,6 +161,7 @@ func isGlobal(ip netaddr.IP) bool { // urlFromRequest returns the full URL from the HTTP request. If query params are collected, they are obfuscated granted // obfuscation is not disabled by the user (through DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP) +// See https://docs.datadoghq.com/tracing/configure_data_security#redacting-the-query-in-the-url for more information. func urlFromRequest(r *http.Request) string { // Quoting net/http comments about net.Request.URL on server requests: // "For most requests, fields other than Path and RawQuery will be