Module: Datadog::OpenFeature::Configuration::Settings
- Included in:
- Core::Configuration::Settings
- Defined in:
- lib/datadog/open_feature/configuration.rb
Overview
A settings class for the OpenFeature component.
Class Method Summary collapse
Class Method Details
.add_settings!(base) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/datadog/open_feature/configuration.rb', line 13 def self.add_settings!(base) base.class_eval do # Steep does not update `self` for this `class_eval` block. # @type self: Datadog::Core::Configuration::Base::_DslContext settings :open_feature do option :enabled do |o| o.type :bool o.env "DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED" o.default false end # Opt-in gate for APM feature-flag span enrichment. When enabled, # the provider attaches `ffe_*` tags to the local root APM span on # finish. Distinct from `:enabled` (the provider gate) and off by # default so it can be rolled out independently. # # TODO: benchmark the per-span-finish overhead on a high-span-count # trace with this gate on before enabling it by default. option :span_enrichment_enabled do |o| o.type :bool o.env "DD_EXPERIMENTAL_FLAGGING_PROVIDER_SPAN_ENRICHMENT_ENABLED" o.default false end # Killswitch for the EVP `flagevaluation` emission path only. Default on; when # disabled the existing OTel `feature_flag.evaluations` metric is unaffected. option :evaluation_counts_enabled do |o| o.type :bool o.env "DD_FLAGGING_EVALUATION_COUNTS_ENABLED" o.default true end end end end |
.extended(base) ⇒ Object
8 9 10 11 |
# File 'lib/datadog/open_feature/configuration.rb', line 8 def self.extended(base) base = base.singleton_class unless base.is_a?(Class) add_settings!(base) end |