Class: Bitfab::Otel::RequestEnvelope

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

Overview

The invariant head and tail of an OTLP request for one export window. Key order matches what JSON.generate emits for the equivalent Hash, so a body assembled by concatenation is byte-identical to encoding that Hash.

Instance Attribute Summary collapse

Instance Attribute Details

#headObject

Returns the value of attribute head

Returns:

  • (Object)

    the current value of head



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

def head
  @head
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



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

def size
  @size
end

#tailObject

Returns the value of attribute tail

Returns:

  • (Object)

    the current value of tail



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

def tail
  @tail
end