Sha256: bd129ad193e0c01a98861889230bcca8d179aa80e7c9004eee8590f006628387

Contents?: true

Size: 684 Bytes

Versions: 4

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

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

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

        CORRELATION_CONTEXT_KEY = Context.create_key('correlation-context')
        private_constant :CORRELATION_CONTEXT_KEY

        # Returns the context key that correlations are indexed by
        #
        # @return [Context::Key]
        def correlation_context_key
          CORRELATION_CONTEXT_KEY
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opentelemetry-api-0.5.1 lib/opentelemetry/correlation_context/propagation/context_keys.rb
opentelemetry-api-0.5.0 lib/opentelemetry/correlation_context/propagation/context_keys.rb
opentelemetry-api-0.4.0 lib/opentelemetry/correlation_context/propagation/context_keys.rb
opentelemetry-api-0.3.0 lib/opentelemetry/correlation_context/propagation/context_keys.rb