Class: Datadog::Core::Configuration::Settings::DSL::Profiling::Advanced::Endpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/settings.rb

Instance Method Summary collapse

Instance Method Details

#collectionDatadog::Core::Configuration::Settings::DSL::Profiling::Advanced::Endpoint::Collection

Returns a configuration object.

Returns:

  • (Datadog::Core::Configuration::Settings::DSL::Profiling::Advanced::Endpoint::Collection)

    a configuration object



224
225
226
227
228
229
230
231
232
233
234
# File 'lib/datadog/core/configuration/settings.rb', line 224

settings :collection do
  # When using profiling together with tracing, this controls if endpoint names
  # are gathered and reported together with profiles.
  #
  # @default `DD_PROFILING_ENDPOINT_COLLECTION_ENABLED` environment variable, otherwise `true`
  # @return [Boolean]
  option :enabled do |o|
    o.default { env_to_bool(Profiling::Ext::ENV_ENDPOINT_COLLECTION_ENABLED, true) }
    o.lazy
  end
end