Class: Datadog::Tracing::Transport::Traces::Parcel

Inherits:
Core::Transport::Parcel show all
Defined in:
lib/datadog/tracing/transport/traces.rb

Overview

Data transfer object for encoded traces

Instance Attribute Summary collapse

Attributes inherited from Core::Transport::Parcel

#content_encoding, #content_type, #data

Instance Method Summary collapse

Methods inherited from Core::Transport::Parcel

#length

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_countObject (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