Class: OpenTelemetry::Baggage::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/baggage/entry.rb

Overview

Read-only representation of a baggage entry

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, metadata = nil) ⇒ Entry

Returns a new instance of Entry.



14
15
16
17
# File 'lib/opentelemetry/baggage/entry.rb', line 14

def initialize(value,  = nil)
  @value = value
  @metadata = 
end

Instance Attribute Details

#metadataObject (readonly)

Returns the value of attribute metadata.



12
13
14
# File 'lib/opentelemetry/baggage/entry.rb', line 12

def 
  @metadata
end

#valueObject (readonly)

Returns the value of attribute value.



12
13
14
# File 'lib/opentelemetry/baggage/entry.rb', line 12

def value
  @value
end