Skip to content

Commit

Permalink
Merge pull request #2967 from DataDog/fix-remote-env-var
Browse files Browse the repository at this point in the history
  • Loading branch information
marcotc authored Jul 14, 2023
2 parents 4d81d1d + fe971f4 commit 838d12a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/datadog/core/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -540,9 +540,11 @@ def initialize(*_)
end

# Tune remote configuration polling interval.
# This is a private setting. Do not use outside of Datadog. It might change at any point in time.
#
# @default `DD_REMOTE_CONFIGURATION_POLL_INTERVAL_SECONDS` environment variable, otherwise `5.0` seconds.
# @default `DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS` environment variable, otherwise `5.0` seconds.
# @return [Float]
# @!visibility private
option :poll_interval_seconds do |o|
o.default { env_to_float(Core::Remote::Ext::ENV_POLL_INTERVAL_SECONDS, 5.0) }
end
Expand Down
2 changes: 1 addition & 1 deletion lib/datadog/core/remote/ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Core
module Remote
module Ext
ENV_ENABLED = 'DD_REMOTE_CONFIGURATION_ENABLED'
ENV_POLL_INTERVAL_SECONDS = 'DD_REMOTE_CONFIGURATION_POLL_INTERVAL_SECONDS'
ENV_POLL_INTERVAL_SECONDS = 'DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS'
end
end
end
Expand Down

0 comments on commit 838d12a

Please sign in to comment.