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

Inherits:
Object
  • Object
show all
Includes:
Core::Transport::Parcel, Encoder
Defined in:
lib/datadog/tracing/transport/io/traces.rb

Overview

Transfer object for list of traces

Constant Summary

Constants included from Encoder

Encoder::ENCODED_IDS

Instance Attribute Summary

Attributes included from Core::Transport::Parcel

#data

Instance Method Summary collapse

Methods included from Encoder

#encode_traces

Methods included from Core::Transport::Parcel

#initialize

Instance Method Details

#countObject



86
87
88
# File 'lib/datadog/tracing/transport/io/traces.rb', line 86

def count
  data.length
end

#encode_with(encoder) ⇒ Object



90
91
92
# File 'lib/datadog/tracing/transport/io/traces.rb', line 90

def encode_with(encoder)
  encode_traces(encoder, data)
end