Sha256: 0c80f65f1a312609aa474d0f689a76f7818c9cf69b59b9318fe8b3c72eae8986
Contents?: true
Size: 754 Bytes
Versions: 3
Compression:
Stored size: 754 Bytes
Contents
module Zipkin # 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. class Carrier # [] retrieves a value by the given key # @param key [String] key to retrieve the value # @return [String] the desired value def [](key); end # []= sets the value for the given key # @param key [String] key to set # @param value [String] value to set def []=(key, value); end # 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 def each(&block); end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zipkin-1.3.0 | lib/zipkin/carrier.rb |
zipkin-1.2.0 | lib/zipkin/carrier.rb |
zipkin-1.1.0 | lib/zipkin/carrier.rb |