Class: Datadog::Tracing::Transport::Traces::Parcel
- Inherits:
-
Core::Transport::Parcel
- Object
- Core::Transport::Parcel
- Datadog::Tracing::Transport::Traces::Parcel
- Defined in:
- lib/datadog/tracing/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 inherited from Core::Transport::Parcel
#content_encoding, #content_type, #data
Instance Method Summary collapse
-
#initialize(data, trace_count:, **opts) ⇒ Parcel
constructor
A new instance of Parcel.
Methods inherited from Core::Transport::Parcel
Constructor Details
#initialize(data, trace_count:, **opts) ⇒ Parcel
Returns a new instance of Parcel.
20 21 22 23 |
# File 'lib/datadog/tracing/transport/traces.rb', line 20 def initialize(data, trace_count:, **opts) super(data, **opts) @trace_count = trace_count end |
Instance Attribute Details
#trace_count ⇒ Object (readonly)
Returns the value of attribute trace_count.
18 19 20 |
# File 'lib/datadog/tracing/transport/traces.rb', line 18 def trace_count @trace_count end |