Skip to content

Commit

Permalink
Use DD_TRACE_CLIENT_IP_ENABLED as an env var
Browse files Browse the repository at this point in the history
This removes the `_HEADER` part inconsistent with the configuration
setting.
  • Loading branch information
lloeki committed Oct 26, 2022
1 parent 1c0c6ab commit 59203ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/datadog/core/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def initialize(*_)
#
# @see https://docs.datadoghq.com/tracing/configure_data_security#configuring-a-client-ip-header
#
# @default `DD_TRACE_CLIENT_IP_HEADER_ENABLED` environment variable, otherwise `false`.
# @default `DD_TRACE_CLIENT_IP_ENABLED` environment variable, otherwise `false`.
# @return [Boolean]
option :enabled do |o|
o.default do
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/tracing/configuration/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module Transport

# @public_api
module ClientIp
ENV_ENABLED = 'DD_TRACE_CLIENT_IP_HEADER_ENABLED'.freeze
ENV_ENABLED = 'DD_TRACE_CLIENT_IP_ENABLED'.freeze
ENV_DISABLED = 'DD_TRACE_CLIENT_IP_HEADER_DISABLED'.freeze # TODO: deprecated, remove later
ENV_HEADER_NAME = 'DD_TRACE_CLIENT_IP_HEADER'.freeze
end
Expand Down

0 comments on commit 59203ec

Please sign in to comment.