Sha256: 6032034ebf19d95dbfeef916b2b31f3a789b303132d5fe83b2380bda75c08906

Contents?: true

Size: 601 Bytes

Versions: 1

Compression:

Stored size: 601 Bytes

Contents

require 'ddtrace/contrib/configuration/settings'
require 'ddtrace/contrib/rest_client/ext'

module Datadog
  module Contrib
    module RestClient
      module Configuration
        # Custom settings for the RestClient integration
        class Settings < Contrib::Configuration::Settings
          option :distributed_tracing, default: false
          option :service_name, default: Ext::SERVICE_NAME, depends_on: [:tracer] do |value|
            get_option(:tracer).set_service_info(value, Ext::APP, Datadog::Ext::AppTypes::DB)
            value
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddtrace-0.17.0 lib/ddtrace/contrib/rest_client/configuration/settings.rb