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



235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/datadog/core/configuration/settings.rb', line 235

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.env Profiling::Ext::ENV_ENDPOINT_COLLECTION_ENABLED
    o.default true
    o.type :bool
  end
end