Sha256: 157d163aecf49665c71b566d6f05bc84213ceda01f402b4a43621c4a4604328a

Contents?: true

Size: 603 Bytes

Versions: 5

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

# Copyright 2019 OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module Baggage
    module Propagation
      # The ContextKeys module contains the keys used to index baggage
      # in a {Context} instance
      module ContextKeys
        extend self

        BAGGAGE_KEY = Context.create_key('baggage')
        private_constant :BAGGAGE_KEY

        # Returns the context key that baggage are indexed by
        #
        # @return [Context::Key]
        def baggage_key
          BAGGAGE_KEY
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opentelemetry-api-0.10.0 lib/opentelemetry/baggage/propagation/context_keys.rb
opentelemetry-api-0.9.0 lib/opentelemetry/baggage/propagation/context_keys.rb
opentelemetry-api-0.8.0 lib/opentelemetry/baggage/propagation/context_keys.rb
opentelemetry-api-0.7.0 lib/opentelemetry/baggage/propagation/context_keys.rb
opentelemetry-api-0.6.0 lib/opentelemetry/baggage/propagation/context_keys.rb