addBaggageHeaderFromSpan function

void addBaggageHeaderFromSpan(
  1. ISentrySpan span,
  2. Map<String, dynamic> headers, {
  3. SentryLogger? logger,
})

Implementation

void addBaggageHeaderFromSpan(
  ISentrySpan span,
  Map<String, dynamic> headers, {
  SentryLogger? logger,
}) {
  final baggage = span.toBaggageHeader();
  if (baggage != null) {
    addBaggageHeader(baggage, headers, logger: logger);
  }
}