Class: Datadog::Tracing::Contrib::Faraday::Configuration::Settings

Inherits:
Configuration::Settings show all
Defined in:
lib/datadog/tracing/contrib/faraday/configuration/settings.rb

Overview

Custom settings for the Faraday integration

Constant Summary collapse

DEFAULT_ERROR_HANDLER =
lambda do |env|
  Tracing::Metadata::Ext::HTTP::ERROR_RANGE.cover?(env[:status])
end

Instance Attribute Summary collapse

Method Summary

Methods inherited from Configuration::Settings

#[], #[]=, #configure

Methods included from Core::Configuration::Base

included

Instance Attribute Details

#analytics_sample_rateObject

Returns the value of attribute analytics_sample_rate.



33
34
35
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 33

def analytics_sample_rate
  @analytics_sample_rate
end

#distributed_tracingObject

Returns the value of attribute distributed_tracing.



39
40
41
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 39

def distributed_tracing
  @distributed_tracing
end

#enabledObject

Returns the value of attribute enabled.



20
21
22
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 20

def enabled
  @enabled
end

#error_status_codesObject

Returns the value of attribute error_status_codes.



45
46
47
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 45

def error_status_codes
  @error_status_codes
end

#on_errorObject

Returns the value of attribute on_error.



41
42
43
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 41

def on_error
  @on_error
end

#peer_serviceObject

Returns the value of attribute peer_service.



68
69
70
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 68

def peer_service
  @peer_service
end

#service_nameObject

Returns the value of attribute service_name.



58
59
60
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 58

def service_name
  @service_name
end

#split_by_domainObject

Returns the value of attribute split_by_domain.



56
57
58
# File 'lib/datadog/tracing/contrib/faraday/configuration/settings.rb', line 56

def split_by_domain
  @split_by_domain
end