Class: Bitfab::Otel::EncodedSpan

Inherits:
Struct
  • Object
show all
Defined in:
lib/bitfab/otel.rb

Overview

A span encoded exactly as it goes on the wire, carrying its byte count. Encoding once and remembering the size is what keeps request packing linear: sizing a candidate batch by re-encoding the whole request re-escapes every carrier's bitfab.payload string on every span considered.

Instance Attribute Summary collapse

Instance Attribute Details

#encodedObject

Returns the value of attribute encoded

Returns:

  • (Object)

    the current value of encoded



45
46
47
# File 'lib/bitfab/otel.rb', line 45

def encoded
  @encoded
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



45
46
47
# File 'lib/bitfab/otel.rb', line 45

def size
  @size
end