lib/ddtrace/tracer.rb in ddtrace-0.15.0.internaltracinfeature1 vs lib/ddtrace/tracer.rb in ddtrace-0.15.0
- old
+ new
@@ -18,11 +18,11 @@
# Even though the request may require multiple resources and machines to handle the request, all
# of these function calls and sub-requests would be encapsulated within a single trace.
# rubocop:disable Metrics/ClassLength
class Tracer
attr_reader :sampler, :services, :tags, :provider
- attr_accessor :enabled, :writer, :internal_traces
+ attr_accessor :enabled, :writer
attr_writer :default_service
ALLOWED_SPAN_OPTIONS = [:service, :resource, :span_type].freeze
DEFAULT_ON_ERROR = proc { |span, error| span.set_error(error) unless span.nil? }
@@ -100,11 +100,10 @@
@provider = options.fetch(:context_provider, Datadog::DefaultContextProvider.new)
@provider ||= Datadog::DefaultContextProvider.new # @provider should never be nil
@context_flush = options[:partial_flush] ? Datadog::ContextFlush.new(options) : nil
- @internal_traces = options[:internal_traces] || false
@mutex = Mutex.new
@services = {}
@tags = {}
end
@@ -122,10 +121,9 @@
#
def configure(options = {})
enabled = options.fetch(:enabled, nil)
hostname = options.fetch(:hostname, nil)
port = options.fetch(:port, nil)
- @internal_traces = options.fetch(:internal_traces, false)
# Those are rare "power-user" options.
sampler = options.fetch(:sampler, nil)
priority_sampling = options[:priority_sampling]
max_spans_before_partial_flush = options.fetch(:max_spans_before_partial_flush, nil)