Class: Skywalking::Tracing::CarrierItem

Inherits:
Object
  • Object
show all
Defined in:
lib/skywalking/tracing/carrier_item.rb

Direct Known Subclasses

Carrier, SW8CorrelationCarrier

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key: '', value: '') ⇒ CarrierItem

Returns a new instance of CarrierItem.



21
22
23
24
# File 'lib/skywalking/tracing/carrier_item.rb', line 21

def initialize(key: '', value: '')
  @key = key
  @value = value
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



19
20
21
# File 'lib/skywalking/tracing/carrier_item.rb', line 19

def key
  @key
end

#valueObject

Returns the value of attribute value.



19
20
21
# File 'lib/skywalking/tracing/carrier_item.rb', line 19

def value
  @value
end