class OpenTracing::Carrier
Carriers are used for inject and extract operations. A carrier should be a Hash or hash-like object. At a minimum, it should implement `[]`, `[]=`, and `each` shown here.
Public Instance Methods
[](key)
click to toggle source
-
retrieves a value by the given key
@param key [String] key to retrieve the value @return [String] the desired value
# File lib/opentracing/carrier.rb, line 9 def [](key); end
[]=(key, value)
click to toggle source
[]= sets the value for the given key @param key [String] key to set @param value [String] value to set
# File lib/opentracing/carrier.rb, line 14 def []=(key, value); end
each(&block)
click to toggle source
each iterates over every key-value pair in the carrier @yield [key, value] @yieldparam key [String] the key of the tuple @yieldparam value [String] the value of the tuple
# File lib/opentracing/carrier.rb, line 20 def each(&block); end