Sha256: a7e7f13ff9cf8d117cd5c0a452604916b4809a76634d41de6b67c3a14ad6ef01

Contents?: true

Size: 964 Bytes

Versions: 3

Compression:

Stored size: 964 Bytes

Contents

# frozen_string_literal: true

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

module Datadog
  module CI
    module Contrib
      module Minitest
        module Configuration
          # Custom settings for the Minitest integration
          # TODO: mark as `@public_api` when GA
          class Settings < Datadog::Tracing::Contrib::Configuration::Settings
            option :enabled do |o|
              o.type :bool
              o.env Ext::ENV_ENABLED
              o.default true
            end

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

            option :operation_name do |o|
              o.type :string
              o.env Ext::ENV_OPERATION_NAME
              o.default Ext::OPERATION_NAME
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.14.0 lib/datadog/ci/contrib/minitest/configuration/settings.rb
ddtrace-1.13.1 lib/datadog/ci/contrib/minitest/configuration/settings.rb
ddtrace-1.13.0 lib/datadog/ci/contrib/minitest/configuration/settings.rb