Method: Sentry::Span#to_baggage

Defined in:
lib/sentry/span.rb

#to_baggageString?

Generates a W3C Baggage header string for distributed tracing from the incoming baggage stored on the transaction.

Returns:

  • (String, nil)


164
165
166
# File 'lib/sentry/span.rb', line 164

def to_baggage
  transaction.get_baggage&.serialize
end