Method: Sentry::PropagationContext#get_baggage

Defined in:
lib/sentry/propagation_context.rb

#get_baggageBaggage?

Returns the Baggage from the propagation context or populates as head SDK if empty.

Returns:



142
143
144
145
# File 'lib/sentry/propagation_context.rb', line 142

def get_baggage
  populate_head_baggage if @baggage.nil? || @baggage.mutable
  @baggage
end