lib/ddtrace/writer.rb
# flush spans to the trace-agent, handles spans only
flush spans to the trace-agent, handles spans only
flush spans to the trace - agent handles spans only
def send_spans(traces, transport)
      return true if traces.empty?
      inject_hostname!(traces) if Datadog.configuration.report_hostname
      responses = transport.send_traces(traces)
      responses.reject { |x| x.internal_error? || x.server_error? }.each do |response|
        @traces_flushed += response.trace_count
      end
      update_priority_sampler(responses.last)
      !responses.find(&:server_error?)
    end
def send_spans ( traces , transport ) return true if traces . empty? inject_hostname! ( traces ) if Datadog . configuration . report_hostname responses = transport . send_traces ( traces ) responses . reject { | x | x . internal_error? || x . server_error? } . each do | response | @traces_flushed += response . trace_count end update_priority_sampler ( responses . last ) ! responses . find ( & :server_error? ) end
flush spans to the trace-agent, handles spans only
flush spans to the trace - agent handles spans only
# Inject hostname if configured to do so # Send traces and get responses # Tally up successful flushes # Update priority sampler # Return if server error occurred.
traces
<not_specific>
transport
<not_specific>