Class: Datadog::Tracing::Transport::HTTP::Traces::Response
- Inherits:
-
Object
- Object
- Datadog::Tracing::Transport::HTTP::Traces::Response
- 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
Instance Method Summary collapse
-
#initialize(http_response, options = {}) ⇒ Response
constructor
A new instance of Response.
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, = {}) super(http_response) @service_rates = .fetch(:service_rates, nil) @trace_count = .fetch(:trace_count, 0) end |