Method: Sentry.get_baggage

Defined in:
lib/sentry-ruby.rb

.get_baggageString?

Returns the baggage header for distributed tracing. Can be either from the currently active span or the propagation context.

Returns:

  • (String, nil)

564
565
566
567
# File 'lib/sentry-ruby.rb', line 564

def get_baggage
  return nil unless initialized?
  get_current_hub.get_baggage
end