class OpenTelemetry::Context::Propagation::TextMapSetter

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

Public Instance Methods

set(carrier, key, value) click to toggle source

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

# File lib/opentelemetry/context/propagation/text_map_setter.rb, line 15
def set(carrier, key, value)
  carrier[key] = value
end