Class: Datadog::Configuration::Settings

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ddtrace/configuration/settings.rb

Overview

Global configuration settings for the trace library.

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#runtime_metrics(options = nil) ⇒ Object

Backwards compatibility for configuring runtime metrics e.g. ‘c.runtime_metrics enabled: true`



75
76
77
78
79
80
81
# File 'lib/ddtrace/configuration/settings.rb', line 75

def runtime_metrics(options = nil)
  runtime_metrics = get_option(:tracer).writer.runtime_metrics
  return runtime_metrics if options.nil?

  # TODO: Raise deprecation warning
  runtime_metrics.configure(options)
end