Module: Datadog::Configuration
- Included in:
- Datadog
- Defined in:
- lib/ddtrace/configuration.rb,
lib/ddtrace/configuration/base.rb,
lib/ddtrace/configuration/option.rb,
lib/ddtrace/configuration/options.rb,
lib/ddtrace/configuration/settings.rb,
lib/ddtrace/configuration/pin_setup.rb,
lib/ddtrace/configuration/option_set.rb,
lib/ddtrace/configuration/option_definition.rb,
lib/ddtrace/configuration/dependency_resolver.rb,
lib/ddtrace/configuration/option_definition_set.rb
Overview
Configuration provides a unique access point for configurations
Defined Under Namespace
Modules: Base, Options Classes: DependencyResolver, Option, OptionDefinition, OptionDefinitionSet, OptionSet, PinSetup, Settings
Instance Attribute Summary collapse
Instance Method Summary collapse
- #configure(target = configuration, opts = {}) ⇒ Object
- #runtime_metrics ⇒ Object
-
#tracer ⇒ Object
Helper methods.
Instance Attribute Details
#configuration ⇒ Object
9 10 11 |
# File 'lib/ddtrace/configuration.rb', line 9 def configuration @configuration ||= Settings.new end |
Instance Method Details
#configure(target = configuration, opts = {}) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/ddtrace/configuration.rb', line 13 def configure(target = configuration, opts = {}) if target.is_a?(Settings) yield(target) if block_given? else PinSetup.new(target, opts).call end end |
#runtime_metrics ⇒ Object
26 27 28 |
# File 'lib/ddtrace/configuration.rb', line 26 def runtime_metrics tracer.writer.runtime_metrics end |
#tracer ⇒ Object
Helper methods
22 23 24 |
# File 'lib/ddtrace/configuration.rb', line 22 def tracer configuration.tracer end |