Sha256: c171baf97585cfa03964489c6cdcef931d5b95d5411bc05341b3aa7d158b9f0b

Contents?: true

Size: 946 Bytes

Versions: 12

Compression:

Stored size: 946 Bytes

Contents

# typed: false

require_relative '../../../../tracing/contrib/configuration/settings'
require_relative '../ext'

module Datadog
  module CI
    module Contrib
      module RSpec
        module Configuration
          # Custom settings for the RSpec integration
          # TODO: mark as `@public_api` when GA
          class Settings < Datadog::Tracing::Contrib::Configuration::Settings
            option :enabled do |o|
              o.default { env_to_bool(Ext::ENV_ENABLED, true) }
              o.lazy
            end

            option :service_name do |o|
              o.default { Datadog.configuration.service_without_fallback || Ext::SERVICE_NAME }
              o.lazy
            end

            option :operation_name do |o|
              o.default { ENV.key?(Ext::ENV_OPERATION_NAME) ? ENV[Ext::ENV_OPERATION_NAME] : Ext::OPERATION_NAME }
              o.lazy
            end
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.8.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.7.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.6.1 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.6.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.5.2 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.5.1 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.5.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.4.2 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.4.1 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.4.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb
ddtrace-1.3.0 lib/datadog/ci/contrib/rspec/configuration/settings.rb