Skip to content

Commit

Permalink
di config
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Aug 26, 2024
1 parent 7c84fe8 commit 08ed22d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/datadog/di/configuration/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ def self.add_settings!(base)
end

option :redacted_identifiers do |o|
o.env 'DD_INTERNAL_DYNAMIC_INSTRUMENTATION_REDACTED_IDENTIFIERS'
o.env_parser do |value|
if value
value.split(',').map(&:strip)
end
end

o.type :array
o.default []
end
Expand All @@ -81,6 +88,13 @@ def self.add_settings!(base)
# instances of any class whose name begins with the specified
# prefix will be redacted (example: Foo*).
option :redacted_type_names do |o|
o.env 'DD_INTERNAL_DYNAMIC_INSTRUMENTATION_REDACTED_TYPES'
o.env_parser do |value|
if value
value.split(',').map(&:strip)
end
end

o.type :array
o.default []
end
Expand Down

0 comments on commit 08ed22d

Please sign in to comment.