Sha256: 621082d15a3d99e0a0c941c7a2fce0491b265b4bf02764db41797e81df563b71

Contents?: true

Size: 843 Bytes

Versions: 9

Compression:

Stored size: 843 Bytes

Contents

# frozen_string_literal: true

module Jaeger
  module Client
    # 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
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
jaeger-client-0.9.0 lib/jaeger/client/carrier.rb
jaeger-client-0.8.0 lib/jaeger/client/carrier.rb
jaeger-client-0.7.1 lib/jaeger/client/carrier.rb
jaeger-client-0.7.0 lib/jaeger/client/carrier.rb
jaeger-client-0.6.1 lib/jaeger/client/carrier.rb
boost-jaeger-client-0.7.1 lib/jaeger/client/carrier.rb
boost-jaeger-client-0.7.0 lib/jaeger/client/carrier.rb
jaeger-client-0.6.0 lib/jaeger/client/carrier.rb
jaeger-client-0.5.0 lib/jaeger/client/carrier.rb