Skip to content

Commit

Permalink
Default to disable http.client_ip tag collection
Browse files Browse the repository at this point in the history
  • Loading branch information
lloeki committed Oct 19, 2022
1 parent 60f71fc commit 0c751bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/datadog/core/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,10 @@ def initialize(*_)
# @see https://docs.datadoghq.com/tracing/configure_data_security#configuring-a-client-ip-header
#
# @default The negated value of the `DD_TRACE_CLIENT_IP_HEADER_DISABLED` environment
# variable or `true` if it doesn't exist.
# variable or `false` if it doesn't exist.
# @return [Boolean]
option :enabled do |o|
o.default { !env_to_bool(Tracing::Configuration::Ext::ClientIp::ENV_DISABLED, false) }
o.default { !env_to_bool(Tracing::Configuration::Ext::ClientIp::ENV_DISABLED, true) }
o.lazy
end

Expand Down

0 comments on commit 0c751bf

Please sign in to comment.