Skip to content

Commit

Permalink
added a link to the public docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dianashevchenko committed Aug 1, 2022
1 parent 22f2be9 commit 2ee96b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/internal/httptrace/httptrace.go
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2ee96b7

Please sign in to comment.