Sha256: 9621a5f5083658ea8561bf93ab0596d0038381db1d865ee6923afac81ed12178
Contents?: true
Size: 824 Bytes
Versions: 7
Compression:
Stored size: 824 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Baggage # No op implementation of Baggage::Manager class Manager NOOP_BUILDER = Builder.new EMPTY_VALUES = {}.freeze private_constant(:NOOP_BUILDER, :EMPTY_VALUES) def build(context: Context.current) yield NOOP_BUILDER context end def set_value(key, value, context: Context.current) context end def value(key, context: Context.current) nil end def values(context: Context.current) EMPTY_VALUES end def remove_value(key, context: Context.current) context end def clear(context: Context.current) context end end end end
Version data entries
7 entries across 7 versions & 1 rubygems