Class: Datadog::Tracing::Contrib::Configuration::Settings

Inherits:
Object
  • Object
show all
Includes:
Core::Configuration::Base
Defined in:
lib/datadog/tracing/contrib/configuration/settings.rb

Overview

Common settings for all integrations

Direct Known Subclasses

ActionCable::Configuration::Settings, ActionMailer::Configuration::Settings, ActionPack::Configuration::Settings, ActionView::Configuration::Settings, ActiveJob::Configuration::Settings, ActiveModelSerializers::Configuration::Settings, ActiveRecord::Configuration::Settings, ActiveSupport::Configuration::Settings, Aws::Configuration::Settings, Datadog::Tracing::Contrib::ConcurrentRuby::Configuration::Settings, Dalli::Configuration::Settings, DelayedJob::Configuration::Settings, Elasticsearch::Configuration::Settings, Ethon::Configuration::Settings, Excon::Configuration::Settings, Faraday::Configuration::Settings, GRPC::Configuration::Settings, Grape::Configuration::Settings, GraphQL::Configuration::Settings, HTTP::Configuration::Settings, Hanami::Configuration::Settings, Httpclient::Configuration::Settings, Httprb::Configuration::Settings, Kafka::Configuration::Settings, Lograge::Configuration::Settings, MongoDB::Configuration::Settings, Mysql2::Configuration::Settings, OpenSearch::Configuration::Settings, Pg::Configuration::Settings, Presto::Configuration::Settings, Qless::Configuration::Settings, Que::Configuration::Settings, Racecar::Configuration::Settings, Rack::Configuration::Settings, Rails::Configuration::Settings, Rake::Configuration::Settings, Redis::Configuration::Settings, Resque::Configuration::Settings, RestClient::Configuration::Settings, Roda::Configuration::Settings, SemanticLogger::Configuration::Settings, Sequel::Configuration::Settings, Shoryuken::Configuration::Settings, Sidekiq::Configuration::Settings, Sinatra::Configuration::Settings, Sneakers::Configuration::Settings, Stripe::Configuration::Settings, SuckerPunch::Configuration::Settings, Trilogy::Configuration::Settings

Instance Method Summary collapse

Methods included from Core::Configuration::Base

included

Instance Method Details

#[](name) ⇒ Object



28
29
30
# File 'lib/datadog/tracing/contrib/configuration/settings.rb', line 28

def [](name)
  respond_to?(name) ? send(name) : get_option(name)
end

#[]=(name, value) ⇒ Object



32
33
34
# File 'lib/datadog/tracing/contrib/configuration/settings.rb', line 32

def []=(name, value)
  respond_to?("#{name}=") ? send("#{name}=", value) : set_option(name, value)
end

#configure(options = {}) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



20
21
22
23
24
25
26
# File 'lib/datadog/tracing/contrib/configuration/settings.rb', line 20

def configure(options = {})
  self.class.options.each do |name, _value|
    self[name] = options[name] if options.key?(name)
  end

  yield(self) if block_given?
end