Class: OpenTelemetry::Context::Propagation::TextMapSetter

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/context/propagation/text_map_setter.rb

Overview

The default setter module provides a common method for writing a key into a carrier that implements []=

Instance Method Summary collapse

Instance Method Details

#set(carrier, key, value) ⇒ Object

Writes key into a carrier that implements []=. Useful for inject operations.



15
16
17
# File 'lib/opentelemetry/context/propagation/text_map_setter.rb', line 15

def set(carrier, key, value)
  carrier[key] = value
end