Class: Datadog::Transport::Traces::EncodedParcel
- Inherits:
-
Object
- Object
- Datadog::Transport::Traces::EncodedParcel
- Includes:
- Parcel
- Defined in:
- lib/ddtrace/transport/traces.rb
Overview
Data transfer object for encoded traces
Instance Attribute Summary collapse
-
#trace_count ⇒ Object
readonly
Returns the value of attribute trace_count.
Attributes included from Parcel
Instance Method Summary collapse
- #count ⇒ Object
-
#initialize(data, trace_count) ⇒ EncodedParcel
constructor
A new instance of EncodedParcel.
Methods included from Parcel
Constructor Details
#initialize(data, trace_count) ⇒ EncodedParcel
Returns a new instance of EncodedParcel.
15 16 17 18 |
# File 'lib/ddtrace/transport/traces.rb', line 15 def initialize(data, trace_count) super(data) @trace_count = trace_count end |
Instance Attribute Details
#trace_count ⇒ Object (readonly)
Returns the value of attribute trace_count.
13 14 15 |
# File 'lib/ddtrace/transport/traces.rb', line 13 def trace_count @trace_count end |
Instance Method Details
#count ⇒ Object
20 21 22 |
# File 'lib/ddtrace/transport/traces.rb', line 20 def count data.length end |