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



51
52
53
# File 'lib/bitfab/otel.rb', line 51

def encoded
  @encoded
end

#refObject

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



51
52
53
# File 'lib/bitfab/otel.rb', line 51

def ref
  @ref
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



51
52
53
# File 'lib/bitfab/otel.rb', line 51

def size
  @size
end