Sha256: bd4c1a23e26f715e6fb480c9490944211f6987d025acd58979c1cf6b3b1320f7

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: true
          option :service_name, default: Ext::SERVICE_NAME, depends_on: [:tracer] do |value|
            get_option(:tracer).set_service_info(value, Ext::APP, Datadog::Ext::AppTypes::WEB)
            value
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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