Class: Datadog::Tracing::Transport::HTTP::Traces::Response

Inherits:
Object
  • Object
show all
Includes:
Core::Transport::HTTP::Response, Traces::Response
Defined in:
lib/datadog/tracing/transport/http/traces.rb

Overview

Response from HTTP transport for traces

Instance Attribute Summary

Attributes included from Traces::Response

#service_rates, #trace_count

Instance Method Summary collapse

Methods included from Core::Transport::HTTP::Response

#client_error?, #code, #internal_error?, #not_found?, #ok?, #payload, #server_error?, #unsupported?

Constructor Details

#initialize(http_response, options = {}) ⇒ Response

Returns a new instance of Response.



22
23
24
25
26
# File 'lib/datadog/tracing/transport/http/traces.rb', line 22

def initialize(http_response, options = {})
  super(http_response)
  @service_rates = options.fetch(:service_rates, nil)
  @trace_count = options.fetch(:trace_count, 0)
end