Class: OpenTelemetry::Baggage::Entry
- Inherits:
-
Object
- Object
- OpenTelemetry::Baggage::Entry
- Defined in:
- lib/opentelemetry/baggage/entry.rb
Overview
Read-only representation of a baggage entry
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, metadata = nil) ⇒ Entry
constructor
A new instance of Entry.
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
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
12 13 14 |
# File 'lib/opentelemetry/baggage/entry.rb', line 12 def @metadata end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/opentelemetry/baggage/entry.rb', line 12 def value @value end |