Sha256: 827c903e2c52b62a8cce894c6dbcab6fe2ac93916c5565ad49ec20565e8d944a
Contents?: true
Size: 969 Bytes
Versions: 6
Compression:
Stored size: 969 Bytes
Contents
# frozen_string_literal: true # Copyright 2019 OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Trace module Propagation # Contains the keys used to index the current span, or extracted span # context in a {Context} instance module ContextKeys extend self EXTRACTED_SPAN_CONTEXT_KEY = Context.create_key('extracted-span-context') CURRENT_SPAN_KEY = Context.create_key('current-span') private_constant :EXTRACTED_SPAN_CONTEXT_KEY, :CURRENT_SPAN_KEY # Returns the context key that an extracted span context is indexed by # # @return [Context::Key] def extracted_span_context_key EXTRACTED_SPAN_CONTEXT_KEY end # Returns the context key that the current span is indexed by # # @return [Context::Key] def current_span_key CURRENT_SPAN_KEY end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems